Hi Gary,
I checked your hint regarding MQTT version:
First time, I installed step by step the instruction of the mentioned link
a list in weewx control tells me:
weectl extension list
Using configuration file /etc/weewx/weewx.conf
Extension Name Version Description
MQTT 0.2.0 Extension for uploading LOOP data to an MQTT broker
So I checked the installed packages regarding mqtt:
apt list | grep mqtt
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
golang-github-eclipse-paho.mqtt.golang-dev/stable 1.1.1-1.1 all
kamailio-mqtt-modules/stable 5.6.3-2+rpi1+b1 armhf
libmqtt-client-java/stable 1.16-1 all
libpaho-mqtt-dev/stable 1.3.12-1 armhf
libpaho-mqtt1.3/stable 1.3.12-1 armhf
libpaho-mqttpp-dev/stable 1.2.0-2 armhf
libpaho-mqttpp3-1/stable 1.2.0-2 armhf
node-mqtt-connection/stable 4.1.0-4 all
node-mqtt-packet/stable 8.1.2-2 all
node-mqtt/stable 4.3.7-2 all
paho.mqtt.c-examples/stable 1.3.12-1 armhf
prometheus-mqtt-exporter/stable 0.1.7-1 armhf
python3-asyncio-mqtt/stable 0.16.1-3 all
python3-hbmqtt/stable 0.9.6-1.2 all
python3-paho-mqtt/stable,now 1.6.1-1 all [installiert]
To repeat the install process, I removed MQTT in weewx and removed paho-mqtt in apt
Reinstall according the instruction:
wget -O weewx-mqtt.zip
https://github.com/matthewwall/weewx-mqtt/archive/master.zipsudo pip install paho-mqtt==1.6.1
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
For more information visit
http://rptl.io/venvnote: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
=> This error occured also at primary installation, so I installed the paho-mqtt with apt.
Maybe thats the key, why weewx mapped to a complete other version of mqtt?
Finally the list in apt reveals also other mqtt
So, what to do?
br
Alex