doctormord / Responsive_LED_Control

Responsive Led Control based on McLightning & Grisworld-Led-Controller with FastLED
GNU Lesser General Public License v3.0
67 stars 13 forks source link

Control via http GET requests? #8

Open m00st opened 6 years ago

m00st commented 6 years ago

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?

doctormord commented 6 years ago

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

thundergreen commented 6 years ago

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

thundergreen commented 6 years ago

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

JulianD267 commented 3 years ago

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.

doctormord commented 3 years ago

Thanks for that.

Regards

Christian

Am 19.02.2021 um 19:51 schrieb JulianD267 notifications@github.com:

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:///fire To set a solid color like RGB FF00FF (Purple sort of) just issue the following GET request via curl for example: http:///all?rgb=FF00FF The code which gets executed can be found in "request_handlers.h", as @doctormord https://github.com/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.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/doctormord/Responsive_LED_Control/issues/8#issuecomment-782270686, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEVK22U7KAHPY5FJNBWDJGDS72XJXANCNFSM4ECJQQ7A.