ich hab gerade mqtt so eingerichtet, das weewx die Daten auch an einen mqtt Server weitergibt - bzw. geben soll.
Ich hab dieses Projekt installiert und eingerichtet: https://github.com/matthewwall/weewx-mqtt
Beim mqtt kommt nix an und im weewx Log steht dies:
Code: Alles auswählen
Aug 15 21:23:09 weewx weewx[294309] ERROR user.mqtt: Failed to connect to MQTT server (mqtt://iot:xxx@localhost:1883/): [Errno 111] Connection refused
Aug 15 21:23:09 weewx weewx[294309] ERROR weewx.restx: MQTT: Failed to publish record 2023-08-15 21:23:09 UTC (1692134589): MQTT client not available
Code: Alles auswählen
/usr/bin/python3 /home/weewx/bin/weewxd --daemon --pidfile=/var/run/weewx.pid /home/weewx/weewx.confCode: Alles auswählen
pip3 list
Package                Version    
---------------------- -----------
bcrypt                 4.0.1      
cffi                   1.15.1     
Cheetah3               3.2.4      
command-not-found      0.3        
configobj              5.0.6      
cryptography           39.0.0     
dbus-python            1.2.16     
distro-info            0.23ubuntu1
ephem                  3.7.7.1    
language-selector      0.1        
netifaces              0.10.4     
olefile                0.46       
paho-mqtt              1.6.1      
paramiko               3.0.0      
Pillow                 7.0.0      
pip                    20.0.2     
pycparser              2.21       
PyGObject              3.36.0     
pymacaroons            0.13.0     
PyNaCl                 1.5.0      
pyserial               3.4        
pysftp                 0.2.9      
python-apt             2.0.1      
pyusb                  1.0.2      
PyYAML                 5.3.1      
setuptools             45.2.0     
six                    1.14.0     
ubuntu-advantage-tools 8001       
ufw                    0.36       
wheel                  0.34.2