matthewwall / weewx-wh23xx

weewx driver for fine offset wh23xx hardware (tycon tp2700)
GNU General Public License v3.0
10 stars 9 forks source link

Error on weewx v4.0 #9

Open walek75 opened 4 years ago

walek75 commented 4 years ago

Weewx version 4.0 was refactored and the log_trackback method was moved from the weeutil module to log module. Line 255: from weeutil.weeutil import timestamp_to_string, log_traceback causes an fatal error and weewx daemon closes. should be: from weeutil.weeutil import timestamp_to_string from weeutil.log import log_traceback instead of: from weeutil.weeutil import timestamp_to_string, log_traceback

eilmi commented 4 years ago

Thanks so much!

Orbit4l commented 4 years ago

With Buster / weewx python3 it stopped working. Getting following errors (attached). Any idea how to fix it? Thanks. wh23xx_weewx-python3.txt

walek75 commented 4 years ago

The syntax except clause has changed in python3. Try changing in line 429 in wh23xx.py file except IndexError, e: to except (IndexError, e): I'm not sure if these are the only changes that need to be made. Check and in case of failure, write comment.

Orbit4l commented 4 years ago

The syntax except clause has changed in python3. Try changing in line 429 in wh23xx.py file except IndexError, e: to except (IndexError, e): I'm not sure if these are the only changes that need to be made. Check and in case of failure, write comment.

Thanks! Downgraded to python2 version since but will try again soon and give an update.

infinityab commented 4 years ago

@Orbit4l @matthewwall - I'm also having same problem with Buster and weewx 4.0 and 3.6 What do you see when you do an sudo tail -f /var/log/syslog ? On my series 1 Pi (2 x USB) I am not seeing the weather station data stream coming in via USB at all. On the Jessie Debian version with either Weewx 4.0 or 3.6.2 it works fine and I can see the weather data stream being received every 15 seconds. If I pull the USB plug on the Jessie Debian version it gives this message:- Jul 24 10:31:31 weewx kernel: [82569.631091] usb 1-1.3: USB disconnect, device number 5 On the Buster version I get this:- Jul 23 11:32:15 bfb kernel: [ 515.589791] usb 1-1.3: USB disconnect, device number 4 I don't know whether this means anything? On the surface this looks like there may be a USB port issue?

infinityab commented 4 years ago

Syslog attached for Weewx 4.1 with Buster Debian on a Pi Series1 (2xUSB) - no Weather Station feed observed.

SysLog-Buster-Debian-Weewx-4.1-Pi-Series1.txt