mqtt-exec
mqtt-exec copied to clipboard
Execute shell command on MQTT messages
Hello, When executing the command: `mqtt-exec -c /usr/lib/node_modules/mqtt-exec/config-example.json -h mqtt://localhost:1883` I get the next error on the line bellow: /usr/lib/node_modules/mqtt-exec/mqtt-exec.js:49 var c = mqtt.createClient(mqtt_url.port, mqtt_url.hostname, { ``` TypeError: mqtt.createClient is...
Hello - found an error on up to date raspberry pi (buster) when installing. $ node -v v10.24.1 $ npm -v 6.14.12 Thanks a lot ``` pi@raspberrypi:~ $ sudo npm...
Hi, thanks for this library. Trying the example, when I run `mosquitto_pub` I get: ``` /usr/local/lib/node_modules/mqtt-exec/mqtt-exec.js:59 var message = message.replace(/"/g, "\\\""); ^ TypeError: Object true has no method 'replace' ```...
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...