runs a configurable command when received a message as trigger
2.0K
Use a MQTT topic as a trigger to execute command.sh. Payload from MQTT message will be transfered as Parameter $1 in that script.
create a command.sh file with the command you want to run. Then run
docker run -it -v path/to/local/command.sh:/app/command.sh oliverlorenz/mqtt-executer ./mqtt-executer.sh -h <HOST> -p <PORT> -t "<MQTT_TOPIC>" -u <USERNAME> -P <PASSWORD> --capath /etc/ssl/certs/
Content type
Image
Digest
Size
56 MB
Last updated
about 8 years ago
docker pull oliverlorenz/mqtt-executer