Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control via http GET requests? #8

Open
m00st opened this issue Nov 5, 2017 · 5 comments
Open

Control via http GET requests? #8

m00st opened this issue Nov 5, 2017 · 5 comments

Comments

@m00st
Copy link

m00st commented Nov 5, 2017

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
Copy link
Owner

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
Copy link

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

@thundergreen
Copy link

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

@JulianD267
Copy link

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
Copy link
Owner

doctormord commented Mar 9, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants