mqtt-exec icon indicating copy to clipboard operation
mqtt-exec copied to clipboard

Using MQTT payload with commands?

Open bjornhallberg opened this issue 10 years ago • 2 comments

Is it possible to read and use the actual payload with shell commands?

Like if you're reading a temperature sensor or some such and want to pass its data on to some other script: curl -s "http://url/?value=[payload]" &

bjornhallberg avatar Sep 22 '14 09:09 bjornhallberg

At the moment it's not possible. I would prefer to publish the temperature to MQTT with retained messages like in this project: https://github.com/denschu/mqtt-temperature

denschu avatar Sep 24 '14 11:09 denschu

Ok I understand. I wanted to see if I could use the script to push all sorts of sensor data (switches, temp, humidity, motion etc etc) from MySensors.org's MQTT Gateway to Domoticz and their JSON API. It's not an ideal situation, I know.

bjornhallberg avatar Sep 24 '14 16:09 bjornhallberg