OctoPrint-WLED
OctoPrint-WLED copied to clipboard
[Request]: Accept strings for segment selection
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.
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 :)