OctoPrint-WLED icon indicating copy to clipboard operation
OctoPrint-WLED copied to clipboard

[Request]: Accept strings for segment selection

Open fimmezwansch opened this issue 2 years ago • 1 comments

Accept strings for segment selection

For a better overview I renamed the WLED segments in the WLED UI with a speaking name. WLED connection accepts only numeric entries for the segment selection. So it would be great, if WLED Connection would accept strings to match the correct segment.

fimmezwansch avatar Jan 12 '23 15:01 fimmezwansch

This might be possible, if JSON API is used to poll for available segment names ( /json/state )

{ ... "seg": [ { ... "n": "Segment Name", ...

it would take to load this info every time, build a dict containing pairs of id:name and then internally store just that id, so this would be just a visual aid without affecting core functionality... not impossible :)

deltaflyer4747 avatar Jan 13 '23 07:01 deltaflyer4747