Weewx 4.1.1 + Python3: MQTT not working

67 views
Skip to first unread message

joh....@googlemail.com

unread,
Sep 13, 2020, 2:34:06 AM9/13/20
to weewx-user
Hi,

I am setting up a new Weewx Installation based on the latest release of Python3 and Weewx.

Unfortunatly I am not able to get MQTT running.

This is how I have it installed:

wget -qO - http://weewx.com/keys.html | sudo apt-key add -
wget -qO - http://weewx.com/apt/weewx-python3.list | sudo tee /etc/apt/sources.list.d/weewx.list
sudo apt install python3-configobj python3-pil python3-serial python3-usb python3-pip python3-cheetah python3-ephem python3-paho-mqtt sqlite nginx
sudo apt install weewx
sudo wee_extension --install weewx-mqtt-0.19.tgz

I am getting this error when starting weewx

Sep 13 08:29:56 weewx-test python3[693]: weewx[693] CRITICAL __main__:     ****      self.loadServices(config_dict)
Sep 13 08:29:56 weewx-test python3[693]: weewx[693] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 138, in loadServices
Sep 13 08:29:56 weewx-test python3[693]: weewx[693] CRITICAL __main__:     ****      obj = weeutil.weeutil.get_object(svc)(self,config_dict)
Sep 13 08:29:56 weewx-test python3[693]: weewx[693] CRITICAL __main__:     ****    File "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object
Sep 13 08:29:56 weewx-test python3[693]: weewx[693] CRITICAL __main__:     ****      mod = __import__(module)
Sep 13 08:29:56 weewx-test python3[693]: weewx[693] CRITICAL __main__:     ****    File "/usr/share/weewx/user/mqtt.py", line 197
Sep 13 08:29:56 weewx-test python3[693]: weewx[693] CRITICAL __main__:     ****      except KeyError, e:
Sep 13 08:29:56 weewx-test python3[693]: weewx[693] CRITICAL __main__:     ****                     ^
Sep 13 08:29:56 weewx-test python3[693]: weewx[693] CRITICAL __main__:     ****  SyntaxError: invalid syntax
Sep 13 08:29:56 weewx-test python3[693]: weewx[693] CRITICAL __main__:     ****  Exiting.

Any Ideas?

Br,
Johannes


joh....@googlemail.com

unread,
Sep 13, 2020, 3:35:52 AM9/13/20
to weewx-user
I was able to find the issue.

I am using now this MQTT driver and this is working
Reply all
Reply to author
Forward
0 new messages