Error in http_ecowitt.py driver with current GW 3000 firmware.

48 views
Skip to first unread message

neu...@bnjpro.dk

unread,
Apr 28, 2026, 2:46:49 AM (4 days ago) Apr 28
to weewx-user
I have added a rain gauge WH40 ti my system and exposed an error in GW3000 that has taken me several days to find. I startet with the aid of Gemini and then had to change to Claude.ai, because Gemini was circling around the same solutions to no avail.

Bottom line is GW3000 reports rainRate as mm and not mm_per_hour.

the driver expects it to be in mm_per_hour, which is absolutely the right interpretation.

But the only place to change it for me by now, is to adapt the driver to the current GW3000 firmware.

The suggested change for now could be:

Line 9515 block (linje 9528-9529) should be changed from:
_item['val'] = weewx.units.convert(rainrate_vt,
                                               weewx.units.std_groups[self.unit_system]['group_rainrate']).value

to:
 # GW3000 sender rain rate som 'mm' i stedet for 'mm/hr' - ret enheden
            if rainrate_vt.unit == 'mm':
                rainrate_vt = weewx.units.ValueTuple(rainrate_vt.value, 'mm_per_hour', 'group_rainrate')
            _item['val'] = weewx.units.convert(rainrate_vt,
                                               weewx.units.std_groups[self.unit_system]['group_rainrate']).value


This works for me now.
You are welcome to comment if you have any ideas or other suggestions.

R

unread,
Apr 28, 2026, 9:56:21 PM (3 days ago) Apr 28
to weewx-user
I am always wary of fixes that involve direct comparisons to a string; makes me think a problem is being papered over rather than being fixed.

Would be good to know exactly what version of the driver you are using/referring to. There are at least three sources I am aware of, four if you count the original, and I cannot reconcile any of them with the line numbers you refer to. Also, what do you mean by 'Bottom line is GW3000 reports rainRate as mm and not mm_per_hour'? Is the driver throwing an exception? Or are you seeing something else?

R
Reply all
Reply to author
Forward
0 new messages