hyperion-project / hyperion.ng

The successor to Hyperion aka Hyperion Next Generation
https://hyperion-project.org/
MIT License
3.04k stars 377 forks source link

[Feature request] Allowing to manually set the serial path. #1293

Closed philibertc closed 3 years ago

philibertc commented 3 years ago

Feature request

What problem does this feature solve?

When a serial device changes from /dev/ttyUSB0 to /dev/ttyUSB1 for example, and you have to open the configuration to change the path.

How should this be implemented in your opinion?

Just by letting users manually write the path to the serial device.

Are you willing to work on this yourself?

I would like to but do not understand Hyperion enough to do so.

Lord-Grey commented 3 years ago

@philibertc I assume you are reposting this in context of alpha10. What is not clear for me is the difference of manually updating a path versus selecting it from a top down? If the path would have changed, the drop-down reflects this, given that hyperion looks for feasible configurations in the background. This helps to avoid "wrong" manual configurations.

What I guess is you are looking for is a "stable" path which does not change over time. Here the answer is not manual configuration, but to use a udev configuration under unix. That is already supported out-of the box by alpha10.

see https://github.com/hyperion-project/hyperion.ng/pull/1246

In case I missed you point, maybe you outline your problem and not a potential solution...

philibertc commented 3 years ago

Hello, The problem is when you connect the adalight device and the port /dev/ttyUSB0 is already in use, you have to open the configuration to change the port to /dev/ttyUSB1, and it is annoying.

philibertc commented 3 years ago

I created a link /dev/ttyUSB-Adalight which works. But I can't select it via the hyperion web interface. Edit: I restarted a second time hyperion and it works.