GW1100 with FW 2.0.4 produces critical error with GW1000.py 0.3.1

84 views
Skip to first unread message

Rainer Lang

unread,
Sep 25, 2021, 7:20:58 PM9/25/21
to weewx-user, Gary Roderick

@Gary fyi:
I updated my GW1100 to the newly released firmware 2.0.4 and it now produces the following error (including refusing to archive data)
Looks like the internal sensor map has been enlarged.
FW 2.0.3 still ran without such problems.

Sep 26 01:08:07 raspberrypi weewx-GW1000[24829] INFO user.gw1000: driver version is 0.3.1
Sep 26 01:08:07 raspberrypi weewx-GW1000[24829] INFO user.gw1000: GW1000 address is 192.168.1.53:45000
Sep 26 01:08:07 raspberrypi weewx-GW1000[24829] INFO user.gw1000: poll interval is 10 seconds
Sep 26 01:08:07 raspberrypi weewx-GW1000[24829] INFO weewx.engine: StdConvert target unit is 0x1
Sep 26 01:08:07 raspberrypi weewx-GW1000[24829] CRITICAL user.gw1000:     ****  Traceback (most recent call last):
Sep 26 01:08:07 raspberrypi weewx-GW1000[24829] CRITICAL user.gw1000:     ****    File "/usr/share/weewx/user/gw1000.py", line 2827, in run
Sep 26 01:08:07 raspberrypi weewx-GW1000[24829] CRITICAL user.gw1000:     ****      self.client.collect_sensor_data()
Sep 26 01:08:07 raspberrypi weewx-GW1000[24829] CRITICAL user.gw1000:     ****    File "/usr/share/weewx/user/gw1000.py", line 2282, in collect_sensor_data
Sep 26 01:08:07 raspberrypi weewx-GW1000[24829] CRITICAL user.gw1000:     ****      queue_data = self.get_live_sensor_data()
Sep 26 01:08:07 raspberrypi weewx-GW1000[24829] CRITICAL user.gw1000:     ****    File "/usr/share/weewx/user/gw1000.py", line 2329, in get_live_sensor_data
Sep 26 01:08:07 raspberrypi weewx-GW1000[24829] CRITICAL user.gw1000:     ****      self.update_sensor_id_data()
Sep 26 01:08:07 raspberrypi weewx-GW1000[24829] CRITICAL user.gw1000:     ****    File "/usr/share/weewx/user/gw1000.py", line 2344, in update_sensor_id_data
Sep 26 01:08:07 raspberrypi weewx-GW1000[24829] CRITICAL user.gw1000:     ****      self.sensors_obj.set_sensor_id_data(sensor_id_data)
Sep 26 01:08:07 raspberrypi weewx-GW1000[24829] CRITICAL user.gw1000:     ****    File "/usr/share/weewx/user/gw1000.py", line 4108, in set_sensor_id_data
Sep 26 01:08:07 raspberrypi weewx-GW1000[24829] CRITICAL user.gw1000:     ****      batt_fn = Gw1000Collector.sensor_ids[data[index:index + 1]]['batt_fn']
Sep 26 01:08:07 raspberrypi weewx-GW1000[24829] CRITICAL user.gw1000:     ****  KeyError: b'0'

I switched to an older GW1000 1.6.8 not to lose data.

best regards

Rainer

gjr80

unread,
Sep 25, 2021, 7:50:49 PM9/25/21
to weewx-user
Thank you Rainer, that was the problem identified in this thread. It has been fixed in v0.3.2. I will properly release v0.3.2 later today.

Gary

gjr80

unread,
Sep 27, 2021, 2:23:22 AM9/27/21
to weewx-user
I have now released v0.4.0 of the GW1000 driver, it can be found on the releases tab of the GW1000 driver GitHub page. It fixes, among other things, the GW1100 firmware v2.0.4 issue. I decided to roll in a number of other enhancements I had developed and decided it was appropriate to release as v0.4.0 rather than v0.3.2. There will be no official v0.3.2 release. Changes are as per the notes on the releases tab for the v0.4.0 release.

Gary
Reply all
Reply to author
Forward
0 new messages