Weewx stops working: WH2320 using weewx-wh23xx driver and Sofaskin

90 views
Skip to first unread message

Nicky G

unread,
Dec 7, 2016, 1:09:50 PM12/7/16
to weewx-user
Hello, my Weewx installation has failed a couple of times in the last few days. I only have logs from the last crash after turning on debugging. I hope this is the correct place to post and that you may be able to help resolve these problems? This group has been very useful in getting Weewx working, it has been running for just over a couple of weeks in total.

As per the subject line I am using a WH2320 station with the driver from here: https://github.com/matthewwall/weewx-wh23xx 
Using Sofaskin.
Raspberry Pi.

From my logs - let me know if more information is needed:

Dec  7 13:30:18 raspberrypi weewx[660]: wh23xx: in_temp: {'value': 22.0} (0x01 0x01)
Dec  7 13:30:18 raspberrypi weewx[660]: wh23xx: out_temp: {'value': 14.200000000000003} (0x02 0x02)
Dec  7 13:30:18 raspberrypi weewx[660]: wh23xx: dewpoint: {'value': 9.799999999999997} (0x03 0x03)
Dec  7 13:30:18 raspberrypi weewx[660]: wh23xx: windchill: {'value': 14.200000000000003} (0x04 0x04)
Dec  7 13:30:18 raspberrypi weewx[660]: wh23xx: heatindex: {'value': 14.200000000000003} (0x05 0x05)
Dec  7 13:30:18 raspberrypi weewx[660]: wh23xx: in_humidity: {'value': 52} (0x06 0x06)
Dec  7 13:30:18 raspberrypi weewx[660]: wh23xx: out_humidity: {'value': 75} (0x07 0x07)
Dec  7 13:30:18 raspberrypi weewx[660]: wh23xx: abs_baro: {'value': 1000.6} (0x08 0x08)
Dec  7 13:30:18 raspberrypi weewx[660]: wh23xx: rel_baro: {'value': 1046.6} (0x09 0x09)
Dec  7 13:30:18 raspberrypi weewx[660]: wh23xx: wind_dir: {'value': 135} (0x0a 0x0a)
Dec  7 13:30:18 raspberrypi weewx[660]: wh23xx: wind_speed: {'value': 1.7} (0x0b 0x0b)
Dec  7 13:30:18 raspberrypi weewx[660]: wh23xx: gust_speed: {'value': 3.3} (0x0c 0x0c)
Dec  7 13:30:18 raspberrypi weewx[660]: wh23xx: rain_rate: {'value': 0.0} (0x0e 0x0e)
Dec  7 13:30:18 raspberrypi weewx[660]: wh23xx: rain_day: {'value': 0.0} (0x10 0x10)
Dec  7 13:30:18 raspberrypi weewx[660]: wh23xx: rain_week: {'value': 0.0} (0x11 0x11)
Dec  7 13:30:18 raspberrypi weewx[660]: wh23xx: rain_month: {'value': 0.3} (0x12 0x12)
Dec  7 13:30:18 raspberrypi weewx[660]: wh23xx: rain_year: {'value': 66.0} (0x13 0x13)
Dec  7 13:30:18 raspberrypi weewx[660]: wh23xx: rain_totals: {'value': 66.0} (0x14 0x14)
Dec  7 13:30:18 raspberrypi weewx[660]: wh23xx: light: {'value': 6824.6} (0x15 0x15)
Dec  7 13:30:18 raspberrypi weewx[660]: engine: Main loop exiting. Shutting engine down.
Dec  7 13:30:18 raspberrypi weewx[660]: engine: Shutting down StdReport thread

Dec  7 13:30:23 raspberrypi weewx[660]: engine: StdReport thread has been terminated
Dec  7 13:30:23 raspberrypi weewx[660]: restx: Shut down StationRegistry thread.
Dec  7 13:30:23 raspberrypi weewx[660]: engine: Caught unrecoverable exception in engine:
Dec  7 13:30:23 raspberrypi weewx[660]:     ****  list index out of range
Dec  7 13:30:23 raspberrypi weewx[660]:     ****  Traceback (most recent call last):
Dec  7 13:30:23 raspberrypi weewx[660]:     ****    File "/usr/share/weewx/weewx/engine.py", line 847, in main
Dec  7 13:30:23 raspberrypi weewx[660]:     ****      engine.run()
Dec  7 13:30:23 raspberrypi weewx[660]:     ****    File "/usr/share/weewx/weewx/engine.py", line 186, in run
Dec  7 13:30:23 raspberrypi weewx[660]:     ****      for packet in self.console.genLoopPackets():
Dec  7 13:30:23 raspberrypi weewx[660]:     ****    File "/usr/share/weewx/user/wh23xx.py", line 317, in genLoopPackets
Dec  7 13:30:23 raspberrypi weewx[660]:     ****      decoded = WH23xxStation.decode_weather_data(raw)
Dec  7 13:30:23 raspberrypi weewx[660]:     ****    File "/usr/share/weewx/user/wh23xx.py", line 711, in decode_weather_data
Dec  7 13:30:23 raspberrypi weewx[660]:     ****      2000 + raw[i], raw[i+1], raw[i+2])
Dec  7 13:30:23 raspberrypi weewx[660]:     ****  IndexError: list index out of range
Dec  7 13:30:23 raspberrypi weewx[660]:     ****  Exiting.

Thanks, Nicky

mwall

unread,
Dec 7, 2016, 5:37:36 PM12/7/16
to weewx-user
On Wednesday, December 7, 2016 at 1:09:50 PM UTC-5, Nicky G wrote:
Hello, my Weewx installation has failed a couple of times in the last few days. I only have logs from the last crash after turning on debugging. I hope this is the correct place to post and that you may be able to help resolve these problems? This group has been very useful in getting Weewx working, it has been running for just over a couple of weeks in total.

nicky,

thanks for posting.  please try driver version 0.7 (commit c0727c2)

this will let weewx continue to run when index errors show up.  most likely these are due to corrupt memory in the weather station.

if you see a bunch of 'decode failed' messages in the log, please post them so we can see if there is a pattern to the bogus bytes.

m

Nicky G

unread,
Dec 8, 2016, 7:30:34 AM12/8/16
to weewx-user
Thank you very much! I will give it a try and let you know how I go on and will check through the logs for decode failed messages.

Thanks,
Nicky

Nicky G

unread,
Dec 15, 2016, 2:38:08 PM12/15/16
to weewx-user
Hello, just to update you I have not had any further crashes, I have checked the logs and cannot see any decode failed messages.

Thanks,
Nicky
Reply all
Reply to author
Forward
0 new messages