-
elcipse-mosquitto (mqtt) server
-
- https://github.com/flyte/pi-mqtt-gpio
- pip install pi-mqtt-gpio
MQTT - Docker:
- On any linux server running Docker
- sudo su -
- docker run -dit -p 1883:1883 -p 9001:9001 --name=mqtt --restart=always -v /mosquitto/config:/mqtt/config:ro -v /mosquitto/data:/mqtt/data -v /mosquitto/log:/mqtt/log eclipse-mosquitto
MQTT - Standard:
- follow instuctions for your linux distro here
PI-MQTT-GPIO:
- on raspberrypi
- sudo su -
- pip install pi-mqtt-gpio
- copy gpio_mqtt.service to "/etc/systemd/system/"
- copy mqtt_config.yaml to "/home/pi/"
- update GPIO pins, mqtt.host
- if wanted/needed mqtt.change topic_prefix, and/or digital_inputs/outputs values
- run "systemctl enable gpio_mqtt.service"
- run "systemctl start gpio_mqtt.service"