Sign inSign up

oliverlorenz/mqtt-executer

By oliverlorenz

•Updated about 8 years ago

runs a configurable command when received a message as trigger

Image
0

2.0K

oliverlorenz/mqtt-executer repository overview

⁠MQTT executer

Use a MQTT topic as a trigger to execute command.sh. Payload from MQTT message will be transfered as Parameter $1 in that script.

⁠Usage

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/

Tag summary

Content type

Image

Digest

Size

56 MB

Last updated

about 8 years ago

docker pull oliverlorenz/mqtt-executer