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

upload data to mqtt broker

mqtt - weewx extension that sends data to an MQTT broker Copyright 2014-2020 Matthew Wall Distributed under the terms of the GNU Public License (GPLv3)

=============================================================================== Pre-Requisites

Install the MQTT python bindings

For python3:

sudo pip3 install paho-mqtt

For python2:

sudo pip install paho-mqtt

=============================================================================== Installation instructions:

  1. download

wget -O weewx-mqtt.zip https://github.com/matthewwall/weewx-mqtt/archive/master.zip

  1. run the installer:

wee_extension --install weewx-mqtt.zip

  1. modify weewx.conf:

[StdRESTful] [[MQTT]] server_url = mqtt://username:[email protected]:1883

  1. restart weewx

sudo /etc/init.d/weewx stop sudo /etc/init.d/weewx start

=============================================================================== Options

For configuration options and details, see the comments in mqtt.py