Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How could I access via the internet instead of the local network? #26

Open
rodriguesfas opened this issue May 14, 2024 · 6 comments
Open
Labels
question Further information is requested

Comments

@rodriguesfas
Copy link

I need to access remotely via the internet to change the media. How could I access via the internet instead of the local network?

@hapishyguy
Copy link

I had the same issue. It ia not built to control/update remotely..

@litrik
Copy link
Owner

litrik commented May 14, 2024

@hapishyguy is correct. You typically configure Displayer to go and retrieve content from the internet. You do not push content from the internet to Displayer.

For example: In our sports club there's a Displayer set up to load a remote display file (JSON) from a Github repository. Whenever I want to update the content, I push an update to the JSON file in the github repo and Displayer will pick it up within a couple of minutes and start playing the new content.

Of course you could also enable port-forwarding on your router to allow remote access to the device running Displayer but I would strongly discourage that.

@litrik
Copy link
Owner

litrik commented May 14, 2024

If you're interested... here is the displayer file we use at our sports club: https://github.com/kcbj/kcbj-displayer/blob/main/kantine.json

@litrik litrik added the question Further information is requested label May 14, 2024
@rodriguesfas
Copy link
Author

Got it, thanks for getting back to me.

@rodriguesfas
Copy link
Author

I don't understand much about kotlin.
I would like to know if in this part of the code:

val displayUrl: String? =null,

I could add a url base
when the app starts, it displays a modal requesting a code,
When entering the code 0111.json it completes the url and loads the json data.

It's a way to add a dynamic url to the schedules without having to use the adb commands.

@litrik
Copy link
Owner

litrik commented May 17, 2024

That sounds like a very specific use case.
It is technically possible but would still require other (big) changes implement the UI that requests the code.
I'm not sure that this is the best approach in general.

There are 2 separate requests:

  • Provide a way to change the URL without having to use adb of type in a full URL.
  • Allow Displayer to request a (part of a) URL when the app starts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants