-
Notifications
You must be signed in to change notification settings - Fork 13
Installing paho‐mqtt package
I am not an expert on packaging, corrections and clarifications welcome!
Performing pip install paho-mqtt
or any of its variants, pip3
, python3 -m pip
, etc. performs a 'local install'.
If WeeWX was installed via the OS package manager, sudo
is required to install MQTTSubscribe.
When sudo
is used, the local installation of paho-mqtt will not be found.
One way to get around this is to use sudo pip install paho-mqtt
.
This is discouraged because installing python packages this way may break system dependencies.
The preferred way appears to be, installing paho-mqtt with the OS package manager.
The package python3-paho-mqtt
seems to be widely available.
So for exampke on debian flavors of linux it would be sudo apt install python3-paho-mqtt
.
Because you are in a virtual environment, pip install paho-mqtt
installs into that environment and the OS is protected.
Getting Help
Feel free to open an issue, start a discussion in github, or post on WeeWX google group. When doing so, see Help! Posting to weewx user for information on capturing the log.
Getting Started
Prerequisites
Required MQTT information
Required WeeWX information
Installing MQTTSubscribe
Configuring MQTTSubscribe
Running MQTTSubscribe with WeeWX
Debugging
Common Options
Main section
The [[topics]]
section
The [[[message]]]
section
The [[[topic-name]]]
section
The [[[[field-name]]]]
section
Additional Options
Main section
The [[tls]]
section
The [[topics]]
section
The [[[topic-name]]]
section
The [[[[field-name]]]]
section
Example individual Configuration
Example Configuration with multiple types