doctormord / Responsive_LED_Control

Responsive Led Control based on McLightning & Grisworld-Led-Controller with FastLED

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Control via http GET requests?

m00st opened this issue · comments

commented

Is it somehow possible to control via HTTP GET requests? I remixed some other code (mostly sparkfun samples) to have trigger actions using Domoticz, but your Responsive LED Control is has way nicer functionality. However.. I don't see how I could send commands via GET (or POST) requests. Is this possible? If not, is this something you're considering?

There are some commands available for remote control via http, jsut have a look into the request-handler file. As i haven't tested them, they might need some fixing.

Best regards,

Christian

please add mqtt.. like this wen can add your amazing work into home assistant

unfortunaltely this thread is dead. could we have an example how to control it via http request please. as MQTT is not available

I don't know whether there is anyone still interested in this, but i am using this Code on a daily basis. Calling the different modes via HTTP GET is mostly straight forward. In my case, i use it to start a custom lighting animation at a different daytime. E.g. in winter i start the "fire" animation at 5 p.m. using the following request:
http://<your device ip>/fire
To set a solid color like RGB FF00FF (Purple sort of) just issue the following GET request via curl for example:
http://<your device ip>/all?rgb=FF00FF
The code which gets executed can be found in "request_handlers.h", as @doctormord mentioned. I hope this helps out some of you, since i had the same problem in the beginning and couldn't find a documentation of it.