Weewx sending to MQTT

121 views
Skip to first unread message

bjorn....@gmail.com

unread,
Mar 22, 2021, 11:25:47 AM3/22/21
to weewx-user
I had a CHIP-machine running Weewx sending data to a MQTT-broker on a separate server. The CHIP went down, and I had to reinstall weewx on a RPI Zero. I copied the old weewx.conf I had on the CHIP, and now weewx reports that there is no mqtt module.
Traceback (most recent call last):
  File "/usr/share/weewx/weewxd", line 264, in <module>
    main()
  File "/usr/share/weewx/weewxd", line 151, in main
    engine = weewx.engine.StdEngine(config_dict)
  File "/usr/share/weewx/weewx/engine.py", line 93, in __init__
    self.loadServices(config_dict)
  File "/usr/share/weewx/weewx/engine.py", line 161, in loadServices
    obj = weeutil.weeutil.get_object(svc)(self, config_dict)
  File "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object
    mod = __import__(module)
ImportError: No module named mqtt

What do I need to do to get it working again?

michael.k...@gmx.at

unread,
Mar 22, 2021, 12:01:21 PM3/22/21
to weewx-user
You probably need to install the python module(s): https://github.com/matthewwall/weewx-mqtt/blob/master/readme.txt => section " Pre-Requisites"

bjorn....@gmail.com

unread,
Mar 22, 2021, 2:02:09 PM3/22/21
to weewx-user
Nice! Thanks, it's working now. 
Reply all
Reply to author
Forward
0 new messages