Open Giaitzoglou opened 4 years ago
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. (https://github.com/raumzeitlabor/esp-mqtt-dmx/blob/5c1a10d22626b50bbcdbe275b2b79d19a3d676fa/esp-mqtt-dmx.ino#L265)
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 . Is this has something to do with the esp ?
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