GW1000 causing critical errors

103 views
Skip to first unread message

Chris Eidem

unread,
Jun 14, 2022, 9:38:06 PM6/14/22
to weewx-user
Hello all,

I noticed that my web pages have stopped working and I've looked into the logs and I see this:

Jun 14 19:58:46 rocky1 journal[42479]: weewx[42479] CRITICAL user.gw1000:     ****  Traceback (most recent call last):
Jun 14 19:58:47 rocky1 journal[42479]: weewx[42479] CRITICAL user.gw1000:     ****    File "/usr/share/weewx/user/gw1000.py", line 2827, in run
Jun 14 19:58:47 rocky1 journal[42479]: weewx[42479] CRITICAL user.gw1000:     ****      self.client.collect_sensor_data()
Jun 14 19:58:47 rocky1 journal[42479]: weewx[42479] CRITICAL user.gw1000:     ****    File "/usr/share/weewx/user/gw1000.py", line 2282, in collect_sensor_data
Jun 14 19:58:47 rocky1 journal[42479]: weewx[42479] CRITICAL user.gw1000:     ****      queue_data = self.get_live_sensor_data()
Jun 14 19:58:47 rocky1 journal[42479]: weewx[42479] CRITICAL user.gw1000:     ****    File "/usr/share/weewx/user/gw1000.py", line 2329, in get_live_sensor_data
Jun 14 19:58:47 rocky1 journal[42479]: weewx[42479] CRITICAL user.gw1000:     ****      self.update_sensor_id_data()
Jun 14 19:58:47 rocky1 journal[42479]: weewx[42479] CRITICAL user.gw1000:     ****    File "/usr/share/weewx/user/gw1000.py", line 2344, in update_sensor_id_data
Jun 14 19:58:47 rocky1 journal[42479]: weewx[42479] CRITICAL user.gw1000:     ****      self.sensors_obj.set_sensor_id_data(sensor_id_data)
Jun 14 19:58:47 rocky1 journal[42479]: weewx[42479] CRITICAL user.gw1000:     ****    File "/usr/share/weewx/user/gw1000.py", line 4108, in set_sensor_id_data
Jun 14 19:58:47 rocky1 journal[42479]: weewx[42479] CRITICAL user.gw1000:     ****      batt_fn = Gw1000Collector.sensor_ids[data[index:index + 1]]['batt_fn']
Jun 14 19:58:47 rocky1 journal[42479]: weewx[42479] CRITICAL user.gw1000:     ****  KeyError: b'0'

I recently upgraded the firmware, so I wonder if that is what is causing this error. The firmware version is GW1000B_V1.7.3 connected to an Ambient Weather WS-5000.

I've found this error mentioned in web searches, but I'm not sure of what I can do. I did a wee_config --reconfigure --driver=user.gw1000, but I still get the error on startup (starting from a command line: sudo weewxd /etc/weewx/weewx.conf).

I'm happy to provide any information requested and thank you for your kind attention.

 - chris

gjr80

unread,
Jun 15, 2022, 5:24:00 AM6/15/22
to weewx-user
Hi Chris,

What version of the GW1000 (now Ecowitt Gateway) driver are you using? It appears from the code in error trace you provided that you have v0.3.1, the last release was v0.4.2 and we are testing v0.5.0b5 now. There have been substantial changes by Ecowitt to battery state handling since v0.3.1 was released. I suggest you upgrade to v0.5.0b5 which can be found on GitHub here.

Gary.

Chris Eidem

unread,
Jun 21, 2022, 9:37:47 PM6/21/22
to weewx-user
That was it. Sorry for not responding sooner, I didn't get notified that any had responded. Thank you for the advice and the quick response!

 - chris
Reply all
Reply to author
Forward
0 new messages