fablab-luenen / McLighting

The ESP8266 based multi-client lighting gadget
MIT License
215 stars 30 forks source link

Controlling Segments from the REST API #116

Closed ryancasler closed 3 years ago

ryancasler commented 3 years ago

I don't see anything in the documentation of the Wiki how to request command for a specific segment of the strip. I know you can from the web UI but it's not clear how to do that from the API. I'm sure it's just another parameter I'm missing but I can't figure it out. I tried sending the "seg" argument and the mode changed for the selected segment but the colors changed for the other segment.

bpohvoodoo commented 3 years ago

seg is the right argument http://ip_of_device/set?seg= 0...9, but you have to use it stand alone, as it is processed last.

ryancasler commented 3 years ago

Thank you! That was what I was looking for. I was trying "segment" and couldn't get it to work. Thanks!!!