-
Notifications
You must be signed in to change notification settings - Fork 4
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
help with mqtt commands #5
Comments
Hi, this stuff here is not fancy and pretty "hacked together". Basically the ESP connects to a MQTT-broker and subscribes to a topic called "esp-mqtt-dmx" (see line 10-13 of esp-mqtt-dmx.ino). After that you use another client to push any of the commands from the README (like "blackout") to that topic and the esp will act accordingly. Please note, that the commands provided in the readme are specific to the setup in our hackerspace, so "fadealltored" is specific to the PAR-Lights defined in the header of the .ino file. If you want to set channel 1 to value 10 you should push the string "setchannel 1 10" to the topic "esp-mqtt-dmx" See line 265 on how this method is implemented. ( Line 265 in 5c1a10d
|
thanks for your help @s1lvester i made everything work. For now I use it as a dmx dimmer but after 1 hour or 45 minutes of setting the channel say to 255 , the lights turn off but nothing shows at the web sockets debugging and I have to set the light again to 255 and goes on . |
Hmmm. I don‘t think so. Our ESP runs 24/7 but they are very sensitive to power fluctuations. Does the esp reset? |
hi yes it resets any ideas ? |
hi i am new with this i have compiled the code and uploaded to an arduino .
My question is how to format the commands say i have nodered and i want to dim the 1 channel how am i going to do that i have the mqqt node at dmx/push but after that ? the parameter is the topic ?
also can you please help me and also how to use the websocket server ?
thanks in advace
chris giaitzoglou
The text was updated successfully, but these errors were encountered: