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

help with mqtt commands #5

Open
Giaitzoglou opened this issue Nov 23, 2019 · 4 comments
Open

help with mqtt commands #5

Giaitzoglou opened this issue Nov 23, 2019 · 4 comments

Comments

@Giaitzoglou
Copy link

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

@s1lvester
Copy link
Member

s1lvester commented Nov 26, 2019

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. (

if (strncmp("setchannel",(char*)payload, 10) == 0) {
)

@Giaitzoglou
Copy link
Author

Giaitzoglou commented Nov 27, 2019

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 ?

@s1lvester
Copy link
Member

Hmmm. I don‘t think so. Our ESP runs 24/7 but they are very sensitive to power fluctuations. Does the esp reset?

@Giaitzoglou
Copy link
Author

hi yes it resets any ideas ?

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

No branches or pull requests

2 participants