Use hostname instead of ip
NicoHood opened this issue · 0 comments
NicoHood commented
I wanted to stream the led data to my pi but I had to use an ip. Since most networks use dhcp (and my setup is very flexible) using hostnames would be the best idea.
I could imagine something like "raspberrypi" or "raspberrypi.local" as hostname.
Edit:
I do not know much python, but I did a quick search and the relevant lines are those:
- https://github.com/hyperion-project/script.service.hyperion/blob/master/resources/lib/state.py#L84
- https://github.com/hyperion-project/script.service.hyperion/blob/master/resources/lib/settings.py#L77
- https://github.com/hyperion-project/script.service.hyperion/blob/master/resources/lib/hyperion/Hyperion.py#L54
- https://docs.python.org/2/library/socket.html#socket.gethostbyname
If you change server
to 'raspberrypi'
it is still able to connect. Using something invalid makes it not work. So the issue can be solved by fixing the settings menu, which is limited to an ip address input and not a full keyboard.