Wlink driver not compatible with Python3?

100 views
Skip to first unread message

Maarten van der Hoeven

unread,
Jun 20, 2020, 1:49:42 PM6/20/20
to weewx-user
Hi,

I tried to connect to weatherlink.com, and used the wlink driver (https://github.com/weewx/weewx/wiki/wlink). I am running the latest weewx 4.1.1, Python3.

I got this error. Does this mean the driver is not ready for Python3? I did some digging, httplib is not available, and should be replaced by http.client.

Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:     ****      engine = weewx.engine.StdEngine(config_dict)
Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 69, in __init__
Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:     ****      self.setupStation(config_dict)
Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 92, in setupStation
Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:     ****      __import__(driver)
Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:     ****    File "/usr/share/weewx/user/wlink.py", line 181
Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:     ****      httplib.BadStatusLine, httplib.IncompleteRead), e:
Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:     ****                                                    ^
Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:     ****  SyntaxError: invalid syntax
Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:     ****  Exiting.

Tom Keffer

unread,
Jun 20, 2020, 6:14:46 PM6/20/20
to weewx-user
Yes. It looks like this driver has not been ported to Python 3. You would have to use Python 2.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/d6c7448f-7389-4f78-8fa8-0cd7a2a32004o%40googlegroups.com.

Joel Öhman

unread,
Sep 3, 2020, 3:36:02 PM9/3/20
to weewx-user
Hello,

Is there any solution to get the Wlink working with the loop data?

Brgds: Joel

Reply all
Reply to author
Forward
0 new messages