fablab-luenen / McLighting

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

HTTP Rest API V3? #40

Closed ryancasler closed 5 years ago

ryancasler commented 5 years ago

Noticed that there was a new version of the HTTP Rest API in the wiki. Does that mean that the commands have changed again? I noticed that /all is no longer listed. Did that change back to set_mode?

bpohvoodoo commented 5 years ago

Yes the all command ist replace by /set?m=0 which was the same. The /setmode and all other set* commands are replaced by set, because they didn't made sense. Now they are the commands: /config to manipulate all hole strip and esp specific settings. /set to manipulate all segment specific settings.

ryancasler commented 5 years ago

okay. But you can still set multiple parameters in one request, correct? So, currently I am using:

http://192.168.1.142/all?m=15&rgb=FF0000&rgb2=000000&s=180&c=100

I would just change "/all" to "/set" and leave the rest as is?

bpohvoodoo commented 5 years ago

Yes.

ryancasler commented 5 years ago

Thanks!