Ecowitt Gateway (formerly GW1000) driver v0.5.0b2 release

740 views
Skip to first unread message

gjr80

unread,
May 1, 2022, 7:50:22 AM5/1/22
to weewx-user
I've released v0.5.0b2 of the Ecowitt Gateway driver (formerly the GW1000 driver). The extension package can be downloaded from the driver GitHub releases page. The driver should support any of the GW1000, GW1100, GW2000, WH2650, WH2680 and WN1900 devices (though I have only tested against the GW devices). The main feature of v0.5.0 is support for the GW2000/WS90 'Wittboy' station. There are many other changes in v0.5.0, these changes are summarised in the notes on the GitHub v0.5.0 release page as well as in the change log. Some of these changes will affect some WeeWX installations and I strongly urge everyone upgrading to v0.5.0 to read through the driver Upgrade Guide, in particular the section Upgrading to v0.5.0 before undertaking the upgrade as some changes have the potential to result in lost data and broken reports. Particular areas that may require user action involve changes to rainfall field names, redesignation of WH34 and WH35 sensors as WN34 and WN35 respectively as well as changes to WH40 and WH51 sensor battery state data.

I also strong recommend that users run the driver directly with the --test-driver command line option to verify the driver is correctly configured and producing the expected data before restarting WeeWX.

You will notice that I have started renaming the driver the Ecowitt Gateway driver rather than the GW1000 driver. The GW1000 driver intitially focussed on supporting the GW1000 though the API used by the GW1000 was common to other devices such as the WH2650 and WH2680. Subsequently, Ecowitt has released the GW1100, GW2000 and WN1900 devices which all use a common API. Ecowitt refers to the API as the Ecowitt Gateway LAN/Wi-Fi Gateway API. For these reasons I have started the process of changing the name of the GW1000 driver to the Ecowitt Gateway driver. In v0.5.0 the changes are largely cosmetic and internal, mostly centring on removing references to GW1000 or GW1100 and replacing them with 'gateway device' or 'gateway devices'. However, the driver filename is still gw1000.py and wee_extensionstill lists the driver as GW1000. I intend to change these names in a future release.

A word about the driver wiki. I have updated most of the pages to reflect the changes introduced in v0.5.0 but there are still a few that need more work. I will be updating those over the coming days so please bear with me. 

Finally, whilst I have a variety of Ecowitt devices the only sensor suite or rain gauge I have is the WS90, so there are many sensor combinations that I have been unable to test against v0.5.0. I fully expect there will be issues with v0.5.0, though I expect these will be minor. I would welcome feedback via weewx-user on any issues identified/irregularities noticed.

Gary

Stephen Hocking

unread,
May 1, 2022, 8:04:33 AM5/1/22
to weewx...@googlegroups.com
Hi Gary,

Thanks for this - it's just after 10pm here, so I'll attend to the upgrade tomorrow. I'm one of those people with both types of rainfall gauges, so this will be interesting.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/e55ced7f-911c-4a25-8d16-48947608155bn%40googlegroups.com.


--
  "I and the public know
  what all schoolchildren learn
  Those to whom evil is done
  Do evil in return"		W.H. Auden, "September 1, 1939"

Jon Fear

unread,
May 1, 2022, 8:43:50 AM5/1/22
to weewx-user
Hi Gary

Many thanks for the release. I will be updating my system later in the day, It is lunch time now in the UK and have to visit a sick relative in hospital this afternoon. I will be able to read to update instructions in peace this evening.

Best wishes

Jon

Rainer Lang

unread,
May 1, 2022, 9:56:36 AM5/1/22
to weewx...@googlegroups.com

Hi Gary

just had a test run (driver only) - and the rain doesn't seem to be handled properly yet
I have both, a WH40 and a WS90 connected to my GW2000.

The live data view both in the WebUI (2.1.4) and WS View Plus (2.0.31) shows both rain totals

The driver however claims that there are no piezo data and for the traditional doesn't show the yearly numbers
(as we have 01-May and beginning of the week and no rain everything else should be zero, but not the yearly rain)
that comes with the --get-all-rain-data option; in the --live-data option (or --test-driver) the t_rainyearyear is properly shown as 30.89 cm but no piezo data at all.
The WS90 battery and signal are shown though.

see below

any idea what is wrong - maybe also with my config ?? - the connected sensors are all properly recognized with --sensors

cheers

Rainer

--------------

Using configuration file /etc/weewx/weewx.conf

Interrogating GW2000 at 192.168.1.46:45000

    Traditional rain data:
                     Rain rate: 0.0mm/hr (0.0in/hr))
                    Event rain: ---mm (---in)
                    Daily rain: 0.0mm (0.0in)
                   Weekly rain: ---mm (---in)
                  Monthly rain: ---mm (---in)
                   Yearly rain: ---mm (---in)

    No piezo rain data available

    No rainfall reset time data available
Using configuration file /etc/weewx/weewx.conf

Interrogating GW2000 at 192.168.1.46:45000

GW2000 live sensor data (2022-05-01 15:44:05 CEST (1651412645)):
absbarometer: 990.1 mbar, co2: 1094, co2_24h_avg: 908, daymaxwind: 20 kph, gustspeed: 2 kph, humid1: 48%, humid17: 52%,
humid2: 54%, humid3: 50%, humid4: 53%, humid6: 46%, humid7: 53%, inhumid: 52%, intemp: 20.9°C, leak2: 0, light: 35688 lx,
lightningcount: 0, lightningdettime: 25-Apr-2022 15:01, lightningdist: 34.0 km, outhumid: 49%, outtemp: 15.0°C,
pm10: 5.100µg/m³, pm10_24h_avg: 12.900µg/m³, pm251: 10.000µg/m³, pm251_24h_avg: 16.700µg/m³, pm252: 10.000µg/m³,
pm252_24h_avg: 18.500µg/m³, pm255: 4.300µg/m³, pm255_24h_avg: 12.400µg/m³, relbarometer: 1019.2 mbar,
soilmoist1: 14%, soilmoist2: 35%, soilmoist3: 76%, soilmoist4: 25%,
t_rainday: 0.00 cm, t_rainevent: 0.00 cm, t_rainmonth: 0.00 cm, t_rainrate: 0.00 cm/h, t_rainweek: 0.00 cm, t_rainyear: 30.89 cm,
temp1: 16.8°C, temp17: 21.5°C, temp2: 21.0°C, temp3: 15.9°C, temp4: 17.1°C, temp5: -18.5°C, temp6: 25.5°C, temp7: 3.4°C,
uv: 10 W/m², uvi: 1.0, wh31_ch1_batt: 0, wh31_ch1_sig: 4, wh31_ch2_batt: 0, wh31_ch2_sig: 4, wh31_ch3_batt: 0,
wh31_ch3_sig: 4, wh31_ch4_batt: 0, wh31_ch4_sig: 4, wh31_ch5_batt: 0, wh31_ch5_sig: 4, wh31_ch6_batt: 0, wh31_ch6_sig: 4,
wh31_ch7_batt: 0, wh31_ch7_sig: 4, wh40_batt: 1.60 V, wh40_sig: 4, wh41_ch1_batt: 5, wh41_ch1_sig: 4, wh41_ch2_batt: 5,
wh41_ch2_sig: 4, wh45_batt: 6, wh45_sig: 4, wh51_ch1_batt: 1.30 V, wh51_ch1_sig: 4, wh51_ch2_batt: 1.40 V, wh51_ch2_sig: 4,
wh51_ch3_batt: 1.40 V, wh51_ch3_sig: 4, wh51_ch4_batt: 1.40 V, wh51_ch4_sig: 4, wh51_ch5_batt: None, wh51_ch5_sig: 0,
wh55_ch2_batt: 4, wh55_ch2_sig: 4, wh57_batt: 5, wh57_sig: 4, winddir: 263°, windspeed: 0 kph, ws90_batt: 2.98 V, ws90_sig: 4

gjr80

unread,
May 1, 2022, 4:19:44 PM5/1/22
to weewx-user
Rainer,

Can you run the driver directly again with the --live-data and --get-all-rain-data command line options but this time add debug=3 to each command. This should generate a number of log entries that include the raw data being sent to and received from the GW2000. Can you post the log output from each command please.
 
Gary

Rainer Lang

unread,
May 1, 2022, 4:26:05 PM5/1/22
to weewx...@googlegroups.com

Gary,
I can't see much more with debug=3, maybe you can 😎 - but here you go:

Using configuration file /etc/weewx/weewx.conf
debug level is '3'

IP address obtained from station config
Port number set to default port number
Battery state filtering ('False') using the default



Interrogating GW2000 at 192.168.1.46:45000

GW2000 live sensor data (2022-05-01 22:21:08 CEST (1651436468)): absbarometer: 989.7 mbar, co2: 642, co2_24h_avg: 842,
daymaxwind: 21 kph, gustspeed: 2 kph, humid1: 78%, humid17: 50%, humid2: 69%, humid3: 80%, humid4: 72%, humid6: 53%,
humid7: 45%, inhumid: 48%, intemp: 20.1°C, leak2: 0, light: 0 lx, lightningcount: 0, lightningdettime: 25-Apr-2022 15:01,
lightningdist: 34.0 km, outhumid: 81%, outtemp: 9.9°C, pm10: 3.400µg/m³, pm10_24h_avg: 10.000µg/m³, pm251: 11.000µg/m³,
pm251_24h_avg: 15.000µg/m³, pm252: 16.000µg/m³, pm252_24h_avg: 18.000µg/m³, pm255: 3.300µg/m³, pm255_24h_avg: 9.600µg/m³,
relbarometer: 1018.8 mbar, soilmoist1: 13%, soilmoist2: 33%, soilmoist3: 75%, soilmoist4: 26%, t_rainday: 0.00 cm,
_rainevent: 0.00 cm, t_rainmonth: 0.00 cm, t_rainrate: 0.00 cm/h, t_rainweek: 0.00 cm, t_rainyear: 30.89 cm, temp1: 10.5°C,
temp17: 20.4°C, temp2: 12.9°C, temp3: 10.3°C, temp4: 12.5°C, temp5: -25.7°C, temp6: 12.4°C, temp7: 3.0°C, uv: 0 W/m², uvi: 0.0,

wh31_ch1_batt: 0, wh31_ch1_sig: 4, wh31_ch2_batt: 0, wh31_ch2_sig: 4, wh31_ch3_batt: 0, wh31_ch3_sig: 4, wh31_ch4_batt: 0,
wh31_ch4_sig: 4, wh31_ch5_batt: 0, wh31_ch5_sig: 4, wh31_ch6_batt: 0, wh31_ch6_sig: 4, wh31_ch7_batt: 0, wh31_ch7_sig: 4,

wh40_batt: 1.60 V, wh40_sig: 4, wh41_ch1_batt: 4, wh41_ch1_sig: 4, wh41_ch2_batt: 5, wh41_ch2_sig: 4, wh45_batt: 6,

wh45_sig: 4, wh51_ch1_batt: 1.30 V, wh51_ch1_sig: 4, wh51_ch2_batt: 1.40 V, wh51_ch2_sig: 4, wh51_ch3_batt: 1.40 V,

wh51_ch3_sig: 4, wh51_ch4_batt: 1.40 V, wh51_ch4_sig: 3, wh51_ch5_batt: None, wh51_ch5_sig: 0, wh55_ch2_batt: 4,
wh55_ch2_sig: 4, wh57_batt: 5, wh57_sig: 4, winddir: 75°, windspeed: 0 kph, ws90_batt: 2.98 V, ws90_sig: 4


Using configuration file /etc/weewx/weewx.conf
debug level is '3'

IP address obtained from station config
Port number set to default port number
Battery state filtering ('False') using the default



Interrogating GW2000 at 192.168.1.46:45000

    Traditional rain data:
                     Rain rate: 0.0mm/hr (0.0in/hr))
                    Event rain: ---mm (---in)
                    Daily rain: 0.0mm (0.0in)
                   Weekly rain: ---mm (---in)
                  Monthly rain: ---mm (---in)
                   Yearly rain: ---mm (---in)

    No piezo rain data available

    No rainfall reset time data available

gjr80

unread,
May 1, 2022, 4:29:41 PM5/1/22
to weewx-user
Rainer, it is the WeeWX log output I am after not the console output.

Gary

Rainer Lang

unread,
May 1, 2022, 4:55:37 PM5/1/22
to weewx...@googlegroups.com

Here you go

May  1 22:21:07 raspberrypi weewx[29246] DEBUG __main__: Sending packet 'FF FF 26 03 29' to '192.168.1.46:45000'
May  1 22:21:07 raspberrypi weewx[29246] DEBUG __main__: Received response 'FF FF 26 09 94 3C C6 44 B5 EF AD'
May  1 22:21:07 raspberrypi weewx[29246] DEBUG __main__: Sending packet 'FF FF 50 03 53' to '192.168.1.46:45000'
May  1 22:21:07 raspberrypi weewx[29246] DEBUG __main__: Received response 'FF FF 50 12 0E 47 57 32 30 30 30 41 5F 56 32 2E 31 2E 34 B9'
May  1 22:21:07 raspberrypi weewx[29246] DEBUG __main__: Sending packet 'FF FF 30 03 33' to '192.168.1.46:45000'
May  1 22:21:07 raspberrypi weewx[29246] DEBUG __main__: Received response 'FF FF 30 0B 01 01 62 6F 07 D2 27 01 0F'
May  1 22:21:07 raspberrypi weewx[29246] DEBUG __main__: Sending packet 'FF FF 27 03 2A' to '192.168.1.46:45000'
May  1 22:21:07 raspberrypi weewx[29246] DEBUG __main__: Received response 'FF FF 27 00 94 01 00 C9 06 30 08 26 A9 09 27 CC 02 00 63 07 51 0A 00 4B 0B 00 00 0C 00 05 15 00 00 00 00 16 00 00 17 00 2A 00 6E 4D 00 96 51 00 A0 4E 00 B4 2C 0D 2E 21 30 4B 32 1A 1A 00 69 22 4E 1B 00 81 23 45 1C 00 67 24 50 1D 00 7D 25 48 1E FE FF 1F 00 7C 27 35 20 00 1E 28 2D 59 00 62 00 00 00 00 61 62 66 9B AE 60 22 19 00 39 0E 00 00 10 00 00 11 00 00 12 00 00 00 00 13 00 00 0C 11 0D 00 00 70 00 CC 32 00 22 00 64 00 21 00 60 02 82 03 4A 06 20'
May  1 22:21:07 raspberrypi weewx[29246] DEBUG __main__: Sending packet 'FF FF 57 03 5A' to '192.168.1.46:45000'
May  1 22:21:08 raspberrypi weewx[29246] DEBUG __main__: Received response 'FF FF 57 00 54 0E 00 00 10 00 00 00 00 11 00 00 00 00 12 00 00 00 00 13 00 00 0C 11 0D 00 00 0F 00 64 80 00 00 83 00 00 00 00 84 00 00 00 00 85 00 00 00 00 86 00 00 0C 72 81 00 00 87 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 88 00 00 00 24'
May  1 22:21:08 raspberrypi weewx[29246] DEBUG __main__: Unknown field address '00' detected. Remaining data '00 11 00 00 00 00 12 00 00 00 00 13 00 00 0C 11 0D 00 00 0F 00 64 80 00 00 83 00 00 00 00 84 00 00 00 00 85 00 00 00 00 86 00 00 0C 72 81 00 00 87 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 88 00 00 00' ignored.
May  1 22:21:08 raspberrypi weewx[29246] DEBUG __main__: Parsed data: {'intemp': 20.1, 'inhumid': 48, 'absbarometer': 989.7, 'relbarometer': 1018.8, 'outtemp': 9.9, 'outhumid': 81, 'winddir': 75, 'windspeed': 0.0, 'gustspeed': 0.5, 'light': 0.0, 'uv': 0.0, 'uvi': 0, 'pm251': 11.0, 'pm251_24h_avg': 15.0, 'pm252': 16.0, 'pm252_24h_avg': 18.0, 'soilmoist1': 13, 'soilmoist2': 33, 'soilmoist3': 75, 'soilmoist4': 26, 'temp1': 10.5, 'humid1': 78, 'temp2': 12.9, 'humid2': 69, 'temp3': 10.3, 'humid3': 80, 'temp4': 12.5, 'humid4': 72, 'temp5': -25.7, 'temp6': 12.4, 'humid6': 53, 'temp7': 3.0, 'humid7': 45, 'leak2': 0, 'lightningcount': 0, 'lightningdettime': 1650891694, 'lightningdist': 34, 'daymaxwind': 5.7, 't_rainrate': 0.0, 't_rainday': 0.0, 't_rainweek': 0.0, 't_rainmonth': 0.0, 't_rainyear': 308.9, 't_rainevent': 0.0, 'temp17': 20.4, 'humid17': 50, 'pm10': 3.4, 'pm10_24h_avg': 10.0, 'pm255': 3.3, 'pm255_24h_avg': 9.6, 'co2': 642, 'co2_24h_avg': 842, 'datetime': 1651436468}
May  1 22:21:08 raspberrypi weewx[29246] DEBUG __main__: Sending packet 'FF FF 3C 03 3F' to '192.168.1.46:45000'
May  1 22:21:08 raspberrypi weewx[29246] DEBUG __main__: Received response 'FF FF 3C 01 5B 00 FF FF FF FE FF 00 01 FF FF FF FE FF 00 02 FF FF FF FE FF 00 03 00 00 C8 DD 10 04 04 FF FF FF FF 00 00 05 FF FF FF FE 00 00 06 00 00 00 5D 00 04 07 00 00 00 0E 00 04 08 00 00 00 CA 00 04 09 00 00 00 6C 00 04 0A 00 00 00 07 00 04 0B 00 00 00 F3 00 04 0C 00 00 00 74 00 04 0D FF FF FF FE 00 00 0E 00 00 C5 E0 0D 04 0F 00 00 C8 14 0E 04 10 00 00 C6 D0 0E 04 11 00 00 C6 A8 0E 03 12 00 00 C5 3F 1F 00 13 FF FF FF FE 1F 00 14 FF FF FF FE 1F 00 15 FF FF FF FE 1F 00 16 00 00 00 B9 04 04 17 00 00 00 46 05 04 18 FF FF FF FE 0F 00 19 FF FF FF FE 0F 00 1A 00 00 D9 47 05 04 1B FF FF FF FF 0F 00 1C 00 10 E3 E4 04 04 1D FF FF FF FE 0F 00 1E FF FF FF FE 0F 00 1F FF FF FF FE FF 00 20 FF FF FF FE FF 00 21 FF FF FF FE FF 00 22 FF FF FF FE FF 00 23 FF FF FF FE FF 00 24 FF FF FF FE FF 00 25 FF FF FF FE FF 00 26 FF FF FF FE FF 00 27 00 00 2D 43 06 04 28 FF FF FF FE FF 00 29 FF FF FF FE FF 00 2A FF FF FF FE FF 00 2B FF FF FF FE FF 00 2C FF FF FF FE FF 00 2D FF FF FF FE FF 00 2E FF FF FF FE FF 00 2F FF FF FF FE FF 00 30 00 41 94 B3 95 04 B6'
May  1 22:21:08 raspberrypi weewx[29246] DEBUG __main__: Processed parsed data: {'intemp': 20.1, 'inhumid': 48, 'absbarometer': 989.7, 'relbarometer': 1018.8, 'outtemp': 9.9, 'outhumid': 81, 'winddir': 75, 'windspeed': 0.0, 'gustspeed': 0.5, 'light': 0.0, 'uv': 0.0, 'uvi': 0, 'pm251': 11.0, 'pm251_24h_avg': 15.0, 'pm252': 16.0, 'pm252_24h_avg': 18.0, 'soilmoist1': 13, 'soilmoist2': 33, 'soilmoist3': 75, 'soilmoist4': 26, 'temp1': 10.5, 'humid1': 78, 'temp2': 12.9, 'humid2': 69, 'temp3': 10.3, 'humid3': 80, 'temp4': 12.5, 'humid4': 72, 'temp5': -25.7, 'temp6': 12.4, 'humid6': 53, 'temp7': 3.0, 'humid7': 45, 'leak2': 0, 'lightningcount': 0, 'lightningdettime': 1650891694, 'lightningdist': 34, 'daymaxwind': 5.7, 't_rainrate': 0.0, 't_rainday': 0.0, 't_rainweek': 0.0, 't_rainmonth': 0.0, 't_rainyear': 308.9, 't_rainevent': 0.0, 'temp17': 20.4, 'humid17': 50, 'pm10': 3.4, 'pm10_24h_avg': 10.0, 'pm255': 3.3, 'pm255_24h_avg': 9.6, 'co2': 642, 'co2_24h_avg': 842, 'datetime': 1651436468, 'wh40_batt': 1.6, 'wh40_sig': 4, 'wh31_ch1_batt': 0, 'wh31_ch1_sig': 4, 'wh31_ch2_batt': 0, 'wh31_ch2_sig': 4, 'wh31_ch3_batt': 0, 'wh31_ch3_sig': 4, 'wh31_ch4_batt': 0, 'wh31_ch4_sig': 4, 'wh31_ch5_batt': 0, 'wh31_ch5_sig': 4, 'wh31_ch6_batt': 0, 'wh31_ch6_sig': 4, 'wh31_ch7_batt': 0, 'wh31_ch7_sig': 4, 'wh51_ch1_batt': 1.3, 'wh51_ch1_sig': 4, 'wh51_ch2_batt': 1.4, 'wh51_ch2_sig': 4, 'wh51_ch3_batt': 1.4, 'wh51_ch3_sig': 4, 'wh51_ch4_batt': 1.4, 'wh51_ch4_sig': 3, 'wh51_ch5_batt': None, 'wh51_ch5_sig': 0, 'wh41_ch1_batt': 4, 'wh41_ch1_sig': 4, 'wh41_ch2_batt': 5, 'wh41_ch2_sig': 4, 'wh57_batt': 5, 'wh57_sig': 4, 'wh55_ch2_batt': 4, 'wh55_ch2_sig': 4, 'wh45_batt': 6, 'wh45_sig': 4, 'ws90_batt': 2.98, 'ws90_sig': 4}
May  1 22:21:13 raspberrypi weewx[7904] INFO weewx.cheetahgenerator: Generated 13 files for report neowx in 48.07 seconds
May  1 22:21:13 raspberrypi weewx[7904] INFO weewx.reportengine: Copied 0 files to /var/weewx/reports/neowx
May  1 22:21:14 raspberrypi weewx[7904] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 1.48 seconds
May  1 22:21:15 raspberrypi weewx[7904] INFO weewx.imagegenerator: Generated 24 images for report SeasonsReport in 1.02 seconds
May  1 22:21:15 raspberrypi weewx[7904] INFO weewx.reportengine: Copied 0 files to /var/weewx/reports
May  1 22:21:15 raspberrypi weewx[7904] INFO weewx.cheetahgenerator: Generated 6 files for report SmartphoneReport in 0.06 seconds
May  1 22:21:16 raspberrypi weewx[7904] INFO weewx.imagegenerator: Generated 6 images for report SmartphoneReport in 0.23 seconds
May  1 22:21:16 raspberrypi weewx[7904] INFO weewx.reportengine: Copied 0 files to /var/weewx/reports/smart
May  1 22:21:16 raspberrypi weewx[7904] INFO weewx.cheetahgenerator: Generated 1 files for report simple in 0.13 seconds
May  1 22:21:16 raspberrypi weewx[7904] INFO weewx.imagegenerator: Generated 16 images for report simple in 0.54 seconds
May  1 22:21:28 raspberrypi weewx[29263] DEBUG __main__: Sending packet 'FF FF 26 03 29' to '192.168.1.46:45000'
May  1 22:21:28 raspberrypi weewx[29263] DEBUG __main__: Received response 'FF FF 26 09 94 3C C6 44 B5 EF AD'
May  1 22:21:28 raspberrypi weewx[29263] DEBUG __main__: Sending packet 'FF FF 50 03 53' to '192.168.1.46:45000'
May  1 22:21:28 raspberrypi weewx[29263] DEBUG __main__: Received response 'FF FF 50 12 0E 47 57 32 30 30 30 41 5F 56 32 2E 31 2E 34 B9'
May  1 22:21:28 raspberrypi weewx[29263] DEBUG __main__: Sending packet 'FF FF 30 03 33' to '192.168.1.46:45000'
May  1 22:21:28 raspberrypi weewx[29263] DEBUG __main__: Received response 'FF FF 30 0B 01 01 62 6F 07 E6 27 01 23'
May  1 22:21:28 raspberrypi weewx[29263] DEBUG __main__: Sending packet 'FF FF 57 03 5A' to '192.168.1.46:45000'
May  1 22:21:28 raspberrypi weewx[29263] DEBUG __main__: Received response 'FF FF 57 00 54 0E 00 00 10 00 00 00 00 11 00 00 00 00 12 00 00 00 00 13 00 00 0C 11 0D 00 00 0F 00 64 80 00 00 83 00 00 00 00 84 00 00 00 00 85 00 00 00 00 86 00 00 0C 72 81 00 00 87 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 88 00 00 00 24'
May  1 22:21:28 raspberrypi weewx[29263] DEBUG __main__: Unknown field address '00' detected. Remaining data '00 11 00 00 00 00 12 00 00 00 00 13 00 00 0C 11 0D 00 00 0F 00 64 80 00 00 83 00 00 00 00 84 00 00 00 00 85 00 00 00 00 86 00 00 0C 72 81 00 00 87 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 88 00 00 00' ignored.

Rainer Lang

unread,
May 1, 2022, 5:11:43 PM5/1/22
to Rainer Lang, weewx...@googlegroups.com

Is it possible that your rain_day traditional in the 0x57 call is too short ? should be 4 bytes after the 0x10 ID.

Rainer Lang

unread,
May 1, 2022, 5:28:42 PM5/1/22
to Rainer Lang, weewx...@googlegroups.com

it seems as if 0x10 in the 0x57 (CMD_READ_RAIN) call return has a 4 byte length whereas in the CMD_GW1000_LIVEDATA call it has a 2 byte length
you may need a separate data structure for the 0x0E-0x13 (plus 0x80-0x88) IDs contained in the 0x57 call and can't use the one you use for LIVEDATA
Brian from WD ran into the same/a similar issue ...

gjr80

unread,
May 1, 2022, 6:47:10 PM5/1/22
to weewx-user
Yes, very convenient providing the same data in different commands in different formats, though it is clear if you read the documentation (well as clear as the API documentation is).

I have published b3 that should fix the issue, though with out a traditional rainfall gauge I cannot test all aspects.

Gary

Rainer Lang

unread,
May 1, 2022, 7:08:42 PM5/1/22
to weewx...@googlegroups.com

you are one ID/marker farther now in the 0x57 processing - 0x12 instead of 0x11 ...
the traditional yearly rain is there at marker 0x13: 0C 11 = 3083 = 308.9 mm - and the peizo rain yearly too at 0x86: 0C 72 = 3189 = 318.9 mm

May  2 00:55:58 raspberrypi weewx[2985] DEBUG __main__: Sending packet 'FF FF 26 03 29' to '192.168.1.46:45000'
May  2 00:55:58 raspberrypi weewx[2985] DEBUG __main__: Received response 'FF FF 26 09 94 3C C6 44 B5 EF AD'
May  2 00:55:58 raspberrypi weewx[2985] DEBUG __main__: Sending packet 'FF FF 50 03 53' to '192.168.1.46:45000'
May  2 00:55:58 raspberrypi weewx[2985] DEBUG __main__: Received response 'FF FF 50 12 0E 47 57 32 30 30 30 41 5F 56 32 2E 31 2E 34 B9'
May  2 00:55:58 raspberrypi weewx[2985] DEBUG __main__: Sending packet 'FF FF 30 03 33' to '192.168.1.46:45000'
May  2 00:55:58 raspberrypi weewx[2985] DEBUG __main__: Received response 'FF FF 30 0B 01 01 62 6F 2C 1D 27 01 7F'
May  2 00:55:58 raspberrypi weewx[2985] DEBUG __main__: Sending packet 'FF FF 27 03 2A' to '192.168.1.46:45000'
May  2 00:55:58 raspberrypi weewx[2985] DEBUG __main__: Received response 'FF FF 27 00 94 01 00 CA 06 31 08 26 A5 09 27 C8 02 00 4F 07 5A 0A 00 5B 0B 00 05 0C 00 06 15 00 00 00 00 16 00 00 17 00 2A 00 6E 4D 00 7F 51 00 BE 4E 00 B0 2C 0D 2E 21 30 4B 32 1A 1A 00 58 22 54 1B 00 70 23 4A 1C 00 55 24 57 1D 00 6A 25 4E 1E FF 39 1F 00 6A 27 36 20 00 30 28 3C 59 00 62 00 00 00 00 61 62 66 9B AE 60 22 19 00 0B 0E 00 00 10 00 00 11 00 00 12 00 00 00 00 13 00 00 0C 11 0D 00 00 70 00 D0 32 00 33 00 49 00 33 00 45 03 0D 03 31 06 7A'
May  2 00:55:58 raspberrypi weewx[2985] DEBUG __main__: Sending packet 'FF FF 57 03 5A' to '192.168.1.46:45000'
May  2 00:55:58 raspberrypi weewx[2985] DEBUG __main__: Received response 'FF FF 57 00 54 0E 00 00 10 00 00 00 00 11 00 00 00 00 12 00 00 00 00 13 00 00 0C 11 0D 00 00 0F 00 64 80 00 00 83 00 00 00 00 84 00 00 00 00 85 00 00 00 00 86 00 00 0C 72 81 00 00 87 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 88 00 00 00 24'
May  2 00:55:58 raspberrypi weewx[2985] DEBUG __main__: Unknown field address '00' detected. Remaining data '00 12 00 00 00 00 13 00 00 0C 11 0D 00 00 0F 00 64 80 00 00 83 00 00 00 00 84 00 00 00 00 85 00 00 00 00 86 00 00 0C 72 81 00 00 87 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 88 00 00 00' ignored.
May  2 00:55:58 raspberrypi weewx[2985] DEBUG __main__: Parsed data: {'intemp': 20.2, 'inhumid': 49, 'absbarometer': 989.3, 'relbarometer': 1018.4, 'outtemp': 7.9, 'outhumid': 90, 'winddir': 91, 'windspeed': 0.5, 'gustspeed': 0.6, 'light': 0.0, 'uv': 0.0, 'uvi': 0, 'pm251': 11.0, 'pm251_24h_avg': 12.7, 'pm252': 19.0, 'pm252_24h_avg': 17.6, 'soilmoist1': 13, 'soilmoist2': 33, 'soilmoist3': 75, 'soilmoist4': 26, 'temp1': 8.8, 'humid1': 84, 'temp2': 11.2, 'humid2': 74, 'temp3': 8.5, 'humid3': 87, 'temp4': 10.6, 'humid4': 78, 'temp5': -19.9, 'temp6': 10.6, 'humid6': 54, 'temp7': 4.8, 'humid7': 60, 'leak2': 0, 'lightningcount': 0, 'lightningdettime': 1650891694, 'lightningdist': 34, 'daymaxwind': 1.1, 't_rainrate': 0.0, 't_rainday': 0.0, 't_rainweek': 0.0, 't_rainmonth': 0.0, 't_rainyear': 308.9, 't_rainevent': 0.0, 'temp17': 20.8, 'humid17': 50, 'pm10': 5.1, 'pm10_24h_avg': 7.3, 'pm255': 5.1, 'pm255_24h_avg': 6.9, 'co2': 781, 'co2_24h_avg': 817, 'datetime': 1651445758}
May  2 00:55:59 raspberrypi weewx[2985] DEBUG __main__: Sending packet 'FF FF 3C 03 3F' to '192.168.1.46:45000'
May  2 00:55:59 raspberrypi weewx[2985] DEBUG __main__: Received response 'FF FF 3C 01 5B 00 FF FF FF FE FF 00 01 FF FF FF FE FF 00 02 FF FF FF FE FF 00 03 00 00 C8 DD 10 04 04 FF FF FF FF 00 00 05 FF FF FF FE 00 00 06 00 00 00 5D 00 04 07 00 00 00 0E 00 04 08 00 00 00 CA 00 04 09 00 00 00 6C 00 04 0A 00 00 00 07 00 04 0B 00 00 00 F3 00 04 0C 00 00 00 74 00 04 0D FF FF FF FE 00 00 0E 00 00 C5 E0 0D 04 0F 00 00 C8 14 0E 04 10 00 00 C6 D0 0E 04 11 00 00 C6 A8 0E 04 12 00 00 C5 3F 1F 00 13 FF FF FF FE 1F 00 14 FF FF FF FE 1F 00 15 FF FF FF FE 1F 00 16 00 00 00 B9 04 04 17 00 00 00 46 05 04 18 FF FF FF FE 0F 00 19 FF FF FF FE 0F 00 1A 00 00 D9 47 05 04 1B FF FF FF FF 0F 00 1C 00 10 E3 E4 04 04 1D FF FF FF FE 0F 00 1E FF FF FF FE 0F 00 1F FF FF FF FE FF 00 20 FF FF FF FE FF 00 21 FF FF FF FE FF 00 22 FF FF FF FE FF 00 23 FF FF FF FE FF 00 24 FF FF FF FE FF 00 25 FF FF FF FE FF 00 26 FF FF FF FE FF 00 27 00 00 2D 43 06 04 28 FF FF FF FE FF 00 29 FF FF FF FE FF 00 2A FF FF FF FE FF 00 2B FF FF FF FE FF 00 2C FF FF FF FE FF 00 2D FF FF FF FE FF 00 2E FF FF FF FE FF 00 2F FF FF FF FE FF 00 30 00 41 94 B3 96 04 B8'
May  2 00:55:59 raspberrypi weewx[2985] DEBUG __main__: Processed parsed data: {'intemp': 20.2, 'inhumid': 49, 'absbarometer': 989.3, 'relbarometer': 1018.4, 'outtemp': 7.9, 'outhumid': 90, 'winddir': 91, 'windspeed': 0.5, 'gustspeed': 0.6, 'light': 0.0, 'uv': 0.0, 'uvi': 0, 'pm251': 11.0, 'pm251_24h_avg': 12.7, 'pm252': 19.0, 'pm252_24h_avg': 17.6, 'soilmoist1': 13, 'soilmoist2': 33, 'soilmoist3': 75, 'soilmoist4': 26, 'temp1': 8.8, 'humid1': 84, 'temp2': 11.2, 'humid2': 74, 'temp3': 8.5, 'humid3': 87, 'temp4': 10.6, 'humid4': 78, 'temp5': -19.9, 'temp6': 10.6, 'humid6': 54, 'temp7': 4.8, 'humid7': 60, 'leak2': 0, 'lightningcount': 0, 'lightningdettime': 1650891694, 'lightningdist': 34, 'daymaxwind': 1.1, 't_rainrate': 0.0, 't_rainday': 0.0, 't_rainweek': 0.0, 't_rainmonth': 0.0, 't_rainyear': 308.9, 't_rainevent': 0.0, 'temp17': 20.8, 'humid17': 50, 'pm10': 5.1, 'pm10_24h_avg': 7.3, 'pm255': 5.1, 'pm255_24h_avg': 6.9, 'co2': 781, 'co2_24h_avg': 817, 'datetime': 1651445758, 'wh40_batt': 1.6, 'wh40_sig': 4, 'wh31_ch1_batt': 0, 'wh31_ch1_sig': 4, 'wh31_ch2_batt': 0, 'wh31_ch2_sig': 4, 'wh31_ch3_batt': 0, 'wh31_ch3_sig': 4, 'wh31_ch4_batt': 0, 'wh31_ch4_sig': 4, 'wh31_ch5_batt': 0, 'wh31_ch5_sig': 4, 'wh31_ch6_batt': 0, 'wh31_ch6_sig': 4, 'wh31_ch7_batt': 0, 'wh31_ch7_sig': 4, 'wh51_ch1_batt': 1.3, 'wh51_ch1_sig': 4, 'wh51_ch2_batt': 1.4, 'wh51_ch2_sig': 4, 'wh51_ch3_batt': 1.4, 'wh51_ch3_sig': 4, 'wh51_ch4_batt': 1.4, 'wh51_ch4_sig': 4, 'wh51_ch5_batt': None, 'wh51_ch5_sig': 0, 'wh41_ch1_batt': 4, 'wh41_ch1_sig': 4, 'wh41_ch2_batt': 5, 'wh41_ch2_sig': 4, 'wh57_batt': 5, 'wh57_sig': 4, 'wh55_ch2_batt': 4, 'wh55_ch2_sig': 4, 'wh45_batt': 6, 'wh45_sig': 4, 'ws90_batt': 3.0, 'ws90_sig': 4}
May  2 00:56:01 raspberrypi CRON[2989]: (pi) CMD (     sudo cp -f /home/pi/CumulusMX/data/SRsunshine.dat /home/pi/CumulusMX)
May  2 00:56:08 raspberrypi weewx[7904] INFO weewx.cheetahgenerator: Generated 13 files for report neowx in 44.70 seconds
May  2 00:56:08 raspberrypi weewx[7904] INFO weewx.reportengine: Copied 0 files to /var/weewx/reports/neowx
May  2 00:56:10 raspberrypi weewx[7904] INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 1.47 seconds
May  2 00:56:11 raspberrypi weewx[7904] INFO weewx.imagegenerator: Generated 24 images for report SeasonsReport in 1.07 seconds
May  2 00:56:11 raspberrypi weewx[7904] INFO weewx.reportengine: Copied 0 files to /var/weewx/reports
May  2 00:56:11 raspberrypi weewx[7904] INFO weewx.cheetahgenerator: Generated 6 files for report SmartphoneReport in 0.06 seconds
May  2 00:56:11 raspberrypi weewx[7904] INFO weewx.imagegenerator: Generated 6 images for report SmartphoneReport in 0.24 seconds
May  2 00:56:11 raspberrypi weewx[7904] INFO weewx.reportengine: Copied 0 files to /var/weewx/reports/smart
May  2 00:56:12 raspberrypi weewx[7904] INFO weewx.cheetahgenerator: Generated 1 files for report simple in 0.15 seconds
May  2 00:56:12 raspberrypi weewx[7904] INFO weewx.imagegenerator: Generated 16 images for report simple in 0.54 seconds
May  2 00:56:35 raspberrypi weewx[7904] INFO weewx.reportengine: ftpgenerator: Ftp'd 79 files in 23.34 seconds
May  2 00:56:38 raspberrypi weewx[3016] DEBUG __main__: Sending packet 'FF FF 26 03 29' to '192.168.1.46:45000'
May  2 00:56:38 raspberrypi weewx[3016] DEBUG __main__: Received response 'FF FF 26 09 94 3C C6 44 B5 EF AD'
May  2 00:56:38 raspberrypi weewx[3016] DEBUG __main__: Sending packet 'FF FF 50 03 53' to '192.168.1.46:45000'
May  2 00:56:38 raspberrypi weewx[3016] DEBUG __main__: Received response 'FF FF 50 12 0E 47 57 32 30 30 30 41 5F 56 32 2E 31 2E 34 B9'
May  2 00:56:38 raspberrypi weewx[3016] DEBUG __main__: Sending packet 'FF FF 30 03 33' to '192.168.1.46:45000'
May  2 00:56:38 raspberrypi weewx[3016] DEBUG __main__: Received response 'FF FF 30 0B 01 01 62 6F 2C 45 27 01 A7'
May  2 00:56:38 raspberrypi weewx[3016] DEBUG __main__: Sending packet 'FF FF 57 03 5A' to '192.168.1.46:45000'
May  2 00:56:38 raspberrypi weewx[3016] DEBUG __main__: Received response 'FF FF 57 00 54 0E 00 00 10 00 00 00 00 11 00 00 00 00 12 00 00 00 00 13 00 00 0C 11 0D 00 00 0F 00 64 80 00 00 83 00 00 00 00 84 00 00 00 00 85 00 00 00 00 86 00 00 0C 72 81 00 00 87 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 88 00 00 00 24'
May  2 00:56:38 raspberrypi weewx[3016] DEBUG __main__: Unknown field address '00' detected. Remaining data '00 12 00 00 00 00 13 00 00 0C 11 0D 00 00 0F 00 64 80 00 00 83 00 00 00 00 84 00 00 00 00 85 00 00 00 00 86 00 00 0C 72 81 00 00 87 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 00 64 88 00 00 00' ignored.

gjr80

unread,
May 1, 2022, 8:29:29 PM5/1/22
to weewx-user
OK. Missed week rain change. v0.5.0b4 has been tested against your CMD_READ_RAIN data and should fix this.

Gary

Rainer Lang

unread,
May 2, 2022, 3:21:17 AM5/2/22
to weewx...@googlegroups.com
Gary,
you made it. Now it runs properly with my two rain gauges, traditional and piezo. 😁
I guess you also used some fake test data for daily, weekly and monthly rain and also rain rate.
As I did now - setting some fake rain totals in the WS View Plus app.
The CMD_READ_RAIN is now properly processed and the live data contain also the piezo_rain data.
Tests passed. Rain totals reset.
As for the rain, this one looks ready-to-go.
cheers
Rainer

gjr80

unread,
May 2, 2022, 3:37:28 AM5/2/22
to weewx-user
That is good, we will see how b4 goes. Test data is from various sources; some live captures, some WSView Plus settings, some reverse calculated.

Gary

Jon Fear

unread,
May 2, 2022, 7:53:07 AM5/2/22
to weewx-user
Looking good on my test server:

May  2 12:50:47 weewx weewx[2263] INFO user.gw1000: GatewayDriver: Packet 2022-05-02 12:50:47 BST (1651492247): {'dateTime': '1651492247', 'daymaxwind': '4.3', 'dayRain': '0.6', 'extraHumid1': '53', 'extraHumid2': '56', 'extraTemp1': '19.9', 'extraTemp2': '18.9', 'hourRain': '10.0', 'inHumidity': '61', 'inTemp': '16.5', 'lightning_distance': 'None', 'lightning_last_det_time': 'None', 'lightning_strike_count': '0', 'lightningcount': '0', 'luminosity': '37700.0', 'monthRain': '6.2', 'outHumidity': '79', 'outTemp': '15.6', 'p_dayRain': '0.1', 'p_monthRain': '5.6', 'p_rain': '0.0', 'p_rainRate': '0.0', 'p_stormRain': '0.0', 'p_weekRain': '5.6', 'p_yearRain': '6.8', 'pm2_5': '30.0', 'pm2_51_24h_avg': '44.2', 'pressure': '1020.7', 'rain': '0.0', 'rainRate': '0.0', 'relbarometer': '1020.7', 'stormRain': '0.0', 'usUnits': '17', 'UV': '2', 'uvradiation': '54.0', 'weekRain': '6.2', 'wh26_batt': '0', 'wh26_sig': '4', 'wh31_ch1_batt': '0', 'wh31_ch1_sig': '4', 'wh31_ch2_batt': '0', 'wh31_ch2_sig': '4', 'wh40_batt': '14.1', 'wh40_sig': '4', 'wh41_ch1_batt': '1', 'wh41_ch1_sig': '4', 'wh57_batt': '5', 'wh57_sig': '4', 'windDir': '4', 'windGust': '2.8', 'windSpeed': '1.7', 'ws80_batt': 'None', 'ws80_sig': '0', 'ws90_batt': '3.28', 'ws90_sig': '4', 'yearRain': '7.4'}

Now all that needs to happen is to update the live server (This is my test vm which is a copy of the main machine) and get the piezo calibrated along with the UV which is wildly out...

Many thanks!

Jon

Jon Fear

unread,
May 2, 2022, 7:56:51 AM5/2/22
to weewx-user
My apologies, I should have also included the output from the syslog...

May  2 12:55:30 weewx weewx[2263] DEBUG user.gw1000: Parsed data: {'intemp': 16.6, 'inhumid': 61, 'absbarometer': 1020.9, 'relbarometer': 1020.9, 'outtemp': 15.7, 'outhumid': 78, 'winddir': 359, 'windspeed': 1.3, 'gustspeed': 2.2, 'light': 40830.0, 'uv': 54.0, 'uvi': 2, 'pm251': 30.0, 'pm251_24h_avg': 44.2, 'temp1': 19.9, 'humid1': 53, 'temp2': 18.8, 'humid2': 56, 'lightningcount': 0, 'lightningdettime': None, 'lightningdist': None, 'daymaxwind': 4.3, 't_rainrate': 0.0, 't_rainday': 0.6, 't_rainweek': 6.2, 't_rainmonth': 6.2, 't_rainyear': 7.4, 't_rainevent': 0.0, 't_rainhour': 10.0, 'p_rainrate': 0.0, 'p_rainday': 0.1, 'p_rainweek': 5.6, 'p_rainmonth': 5.6, 'p_rainyear': 6.8, 'p_rainevent': 0.0, 'gain0': 0.6, 'gain1': 1.0, 'gain2': 1.0, 'gain3': 1.0, 'gain4': 1.0, 'gain5': 1.0, 'gain6': 1.0, 'gain7': 1.0, 'gain8': 1.0, 'gain9': 1.0, 'day_reset': 0, 'week_reset': 0, 'annual_reset': 0, 'datetime': 1651492530}
May  2 12:55:30 weewx weewx[2263] DEBUG user.gw1000: Sending packet 'FF FF 3C 03 3F' to '192.168.10.16:45000'
May  2 12:55:30 weewx weewx[2263] DEBUG user.gw1000: Received response 'FF FF 3C 01 5B 00 FF FF FF FF FF 00 01 FF FF FF FF FF 00 02 00 03 00 39 FF 00 03 00 00 C6 AA 8D 04 04 FF FF FF FF 00 00 05 00 00 00 35 00 04 06 00 00 00 C1 00 04 07 00 00 00 29 00 04 08 FF FF FF FF 00 00 09 FF FF FF FF 00 00 0A FF FF FF FF 00 00 0B FF FF FF FF 00 00 0C FF FF FF FF 00 00 0D FF FF FF FF 00 00 0E FF FF FF FF 1F 00 0F FF FF FF FF 1F 00 10 FF FF FF FF 1F 00 11 FF FF FF FF 1F 00 12 FF FF FF FF 1F 00 13 FF FF FF FF 1F 00 14 FF FF FF FF 1F 00 15 FF FF FF FF 1F 00 16 00 00 00 A1 01 04 17 FF FF FF FF 0F 00 18 FF FF FF FF 0F 00 19 FF FF FF FF 0F 00 1A 00 01 1E 83 05 04 1B FF FF FF FF 0F 00 1C FF FF FF FF 0F 00 1D FF FF FF FF 0F 00 1E FF FF FF FF 0F 00 1F FF FF FF FF FF 00 20 FF FF FF FF FF 00 21 FF FF FF FF FF 00 22 FF FF FF FF FF 00 23 FF FF FF FF FF 00 24 FF FF FF FF FF 00 25 FF FF FF FF FF 00 26 FF FF FF FF FF 00 27 FF FF FF FF 0F 00 28 FF FF FF FF FF 00 29 FF FF FF FF FF 00 2A FF FF FF FF FF 00 2B FF FF FF FF FF 00 2C FF FF FF FF FF 00 2D FF FF FF FF FF 00 2E FF FF FF FF FF 00 2F FF FF FF FF FF 00 30 00 42 94 81 A4 04 A1'
May  2 12:55:30 weewx weewx[2263] DEBUG user.gw1000: Processed parsed data: {'intemp': 16.6, 'inhumid': 61, 'absbarometer': 1020.9, 'relbarometer': 1020.9, 'outtemp': 15.7, 'outhumid': 78, 'winddir': 359, 'windspeed': 1.3, 'gustspeed': 2.2, 'light': 40830.0, 'uv': 54.0, 'uvi': 2, 'pm251': 30.0, 'pm251_24h_avg': 44.2, 'temp1': 19.9, 'humid1': 53, 'temp2': 18.8, 'humid2': 56, 'lightningcount': 0, 'lightningdettime': None, 'lightningdist': None, 'daymaxwind': 4.3, 't_rainrate': 0.0, 't_rainday': 0.6, 't_rainweek': 6.2, 't_rainmonth': 6.2, 't_rainyear': 7.4, 't_rainevent': 0.0, 't_rainhour': 10.0, 'p_rainrate': 0.0, 'p_rainday': 0.1, 'p_rainweek': 5.6, 'p_rainmonth': 5.6, 'p_rainyear': 6.8, 'p_rainevent': 0.0, 'gain0': 0.6, 'gain1': 1.0, 'gain2': 1.0, 'gain3': 1.0, 'gain4': 1.0, 'gain5': 1.0, 'gain6': 1.0, 'gain7': 1.0, 'gain8': 1.0, 'gain9': 1.0, 'day_reset': 0, 'week_reset': 0, 'annual_reset': 0, 'datetime': 1651492530, 'ws80_batt': None, 'ws80_sig': 0, 'wh40_batt': 14.1, 'wh40_sig': 4, 'wh26_batt': 0, 'wh26_sig': 4, 'wh31_ch1_batt': 0, 'wh31_ch1_sig': 4, 'wh31_ch2_batt': 0, 'wh31_ch2_sig': 4, 'wh41_ch1_batt': 1, 'wh41_ch1_sig': 4, 'wh57_batt': 5, 'wh57_sig': 4, 'ws90_batt': 3.28, 'ws90_sig': 4}
May  2 12:55:30 weewx weewx[2263] DEBUG user.gw1000: Next update in 1 seconds
May  2 12:55:30 weewx weewx[2263] INFO user.gw1000: GatewayDriver: Packet 2022-05-02 12:55:30 BST (1651492530): {'dateTime': '1651492530', 'daymaxwind': '4.3', 'dayRain': '0.6', 'extraHumid1': '53', 'extraHumid2': '56', 'extraTemp1': '19.9', 'extraTemp2': '18.8', 'hourRain': '10.0', 'inHumidity': '61', 'inTemp': '16.6', 'lightning_distance': 'None', 'lightning_last_det_time': 'None', 'lightning_strike_count': '0', 'lightningcount': '0', 'luminosity': '40830.0', 'monthRain': '6.2', 'outHumidity': '78', 'outTemp': '15.7', 'p_dayRain': '0.1', 'p_monthRain': '5.6', 'p_rain': '0.0', 'p_rainRate': '0.0', 'p_stormRain': '0.0', 'p_weekRain': '5.6', 'p_yearRain': '6.8', 'pm2_5': '30.0', 'pm2_51_24h_avg': '44.2', 'pressure': '1020.9', 'rain': '0.0', 'rainRate': '0.0', 'relbarometer': '1020.9', 'stormRain': '0.0', 'usUnits': '17', 'UV': '2', 'uvradiation': '54.0', 'weekRain': '6.2', 'wh26_batt': '0', 'wh26_sig': '4', 'wh31_ch1_batt': '0', 'wh31_ch1_sig': '4', 'wh31_ch2_batt': '0', 'wh31_ch2_sig': '4', 'wh40_batt': '14.1', 'wh40_sig': '4', 'wh41_ch1_batt': '1', 'wh41_ch1_sig': '4', 'wh57_batt': '5', 'wh57_sig': '4', 'windDir': '359', 'windGust': '2.2', 'windSpeed': '1.3', 'ws80_batt': 'None', 'ws80_sig': '0', 'ws90_batt': '3.28', 'ws90_sig': '4', 'yearRain': '7.4'}

Message has been deleted

Tomek T.

unread,
May 31, 2022, 4:38:40 PM5/31/22
to weewx-user
Hi Gary.

 GW1100A_V2.1.4 / WH40

PYTHONPATH=/usr/share/weewx python -m user.gw1000 --live-data
GW1100 live sensor data (2022-05-31 21:59:38 CEST (1654027178)): [...] 't_rainhour': '1.000000', [...]

PYTHONPATH=/usr/share/weewx python -m user.gw1000 --test-driver
2022-05-31 21:34:53 CEST (1654025693): [...] 'hourRain': '10.0' [...]

weewxd
LOOP:   2022-05-31 21:04:48 CEST (1654023888) [...] 'hourRain': '0.393700787402' [...]

PYTHONPATH=/usr/share/weewx python -m user.gw1000 --get-all-rain-data
Using configuration file /etc/weewx/weewx.conf

Interrogating GW1100 at 192.168.x.x:45000


    Traditional rain data:
                     Rain rate: 0.0mm/hr (0.0in/hr))
                    Event rain: 0.0mm (0.0in)
                    Daily rain: 0.0mm (0.0in)
                   Weekly rain: 0.0mm (0.0in)
                  Monthly rain: 0.0mm (0.0in)
                   Yearly rain: 0.0mm (0.0in)


    No piezo rain data available

    Rainfall reset time data:
     Daily rainfall reset time: 00:00
    Weekly rainfall reset time: Sunday
    Annual rainfall reset time: January

In the post above I also see 'hourRain': '10 .0 '

In real, last hour rainfall = 0.

In Ecowitt Dashboard is OK. 

But...
Data in CWOP server: rain 1hr = 0.39 -- it should be zero.

It was raining while writing this post. In the first line, rain 1hr should be: 0.02 in, in other lines: 0.00 in

Zrzut ekranu 2022-05-31 222836.png

Is it a firmware problem (there was a recent update)? Or maybe with the GW1000 driver?

Tomek T.

unread,
May 31, 2022, 5:02:08 PM5/31/22
to weewx...@googlegroups.com
...and after a short rain as I wrote the above post:

PYTHONPATH=/usr/share/weewx python -m user.gw1000 --get-all-rain-data
Using configuration file /etc/weewx/weewx.conf
Interrogating GW1100 at 192.168.x.x:45000

    Traditional rain data:
                     Rain rate: 0.0mm/hr (0.0in/hr))
                    Event rain: 0.7mm (0.0in)
                    Daily rain: 0.7mm (0.0in)
                   Weekly rain: 0.7mm (0.0in)
                  Monthly rain: 0.7mm (0.0in)
                   Yearly rain: 0.7mm (0.0in)

[...]

Tomek

gjr80

unread,
May 31, 2022, 6:40:37 PM5/31/22
to weewx-user
Hi Tomek,

Short answer is I believe it is a device API error.

What I suspect is going on is that the Ecowitt gateway device API is returning 10.0mm for what the API documentation refers to as 'ITEM_RAINHOUR' (described as 'Rain hour (mm)'). The driver passes this value through to the WeeWX field hourRain, which in turn is used by the CWOP uploader (and I believe the WU uploader).

Now that you have drawn my attention to it, I note the earlier post with seemingly incorrect (and identical to you) hour rain data. Ecowitt seems to have dropped the ball on hour rain totals; the API documentation includes reference to an hour rain field from the WS90 piezo rain fall sensor, but the current API does not support such a field (it supports all other documented piezo rain fields). Now it appears that there is an issue with (at least) WH40 hour rain data.

So what to do? The WeeWX field hourRain is seldom used with its use in the WeeWX code base limited to (some of) the RESTful uploaders, and then those that use hourRain have a fallback for obtaining the data from the database if the field hourRain does not exist. I want to do a few more checks (I have no WH40 only a WS90) but at the moment I am inclined to release a b5 driver later today with the mapping from gateway device field t_rain_hour to WeeWX field hourRain removed. This will prevent the hour rain data from the gateway device from appearing in the driver loop packets (and ultimately WeeWX archive records) but still enable a user to add the mapping back via a field map extension if they have a station where the ITEM_RAINHOUR data is correct/valid.

As an aside you are seeing t_rainhour (an internal driver field holding ITEM_RAINHOUR) in the --live-data output as the --live-data output defaults to displaying using the WeeWX Metric unit system and cm is the rain unit used in the WeeWX Metric unit system. hourRain appears as 10.0 when testing the driver as the packets emitted from the driver use the WeeWX MetricWx unit system which uses mm for rain. Finally, hourRain appears in inches in weewxd loop packets as weewxd loop packets use the unit system specified under [StdConvert] in weewx.conf which defaults to US which of course uses inches for rain. 

Gary

gjr80

unread,
May 31, 2022, 6:43:51 PM5/31/22
to weewx-user
One thing I forgot. You will not see any hour rain data in the --get-all-rain-data output as the --get-all-rain-data output mimics the 'More', 'Rain Totals' screen in the WSView Plus app.

Gary

Tomek T.

unread,
Jun 1, 2022, 7:28:05 AM6/1/22
to weewx-user
Hi Gary,

thank you for your reply.
It's very interesting what you wrote. It looks like I will have to wait for your driver or firmware to be updated.

Before, I used the weewx-interceptor.
Today I discovered that the problem came after changing the driver.

Before the driver change, the following CWOP frames registered in the APRS system:

2022-05-21 20:41:02.12 -- /007g017t053r000p021P021b10136h82L000.weewx-4.8.0-Interceptor
2022-05-21 20:46:07.838 -- /008g016t053r000p021P021b10137h82L000.weewx-4.8.0-Interceptor
2022-05-21 20:51:12.485 -- /008g016t053r000p021P021b10136h82L000.weewx-4.8.0-Interceptor
2022-05-21 20:56:17.218 -- /007g016t053r000p021P021b10136h82L000.weewx-4.8.0-Interceptor
2022-05-21 21:00:21.347 -- /007g015t053r000p021P021b10135h82L000.weewx-4.8.0-Interceptor

Subsequent frames, after changing the driver, already have an error (r039):

2022-05-21 21:20:22.214 -- /006g009t052r039p021P021b10135h83.weewx-4.8.0-GW1000
2022-05-21 21:25:23.025 -- /008g015t052r039p021P021b10135h83.weewx-4.8.0-GW1000
2022-05-21 21:30:21.938 -- /008g016t052r039p021P021b10135h83.weewx-4.8.0-GW1000
2022-05-21 21:35:27.426 -- /008g016t052r039p021P021b10136h83.weewx-4.8.0-GW1000
2022-05-21 21:40:16.266 -- /009g015t052r039p021P021b10135h83.weewx-4.8.0-GW1000

Hope this helps in possibly eliminating the problem.

Tomek

gjr80

unread,
Jun 1, 2022, 8:01:13 AM6/1/22
to weewx-user
Tomek,

The interceptor driver ignores the hour rain field from the GW device and consequently the CWOP uploader falls back to obtaining (valid) hour rain data from the database. Whereas the Ecowitt Gateway (GW1000) driver passes the erroneous hour rain field through and it is used by the CWOP uploader rather than obtaining hour rain data from the database.

I couldn't get v0.5.0b5 out today but hoping for tomorrow.

Gary

Tomek T.

unread,
Jun 1, 2022, 8:30:28 AM6/1/22
to weewx-user
Thanks Gary.

You mentioned WU earlier.
I looked at the data of my station on the WU website and it seems to me that it matches the data on the Ecowitt dashoard.

Tomek

Alan Stankevitz

unread,
Jun 12, 2022, 5:35:31 AM6/12/22
to weewx-user
I found this thread after investigating the hourly rain problem with my CWOP readings. I attempted to download the b5 version using:


But I get a 404 error.

Is version v0.5.0b5 available yet?

Could I just do a calibration calculation in the weewx.config file to zero out this reading? I hate seeing the false data being reported on CWOP since our local NWS office uses my readings from CWOP for rain data.

Thanks!

Alan Stankevitz

unread,
Jun 12, 2022, 11:27:57 AM6/12/22
to weewx-user
FYI... I edited v0.5.0b4 driver and remarked-out the line "t_rainhour" from the default field map and this has stopped the erroneous reading. It's a temporary fix until b5 becomes available. Sorry for being impatient but I hated to see that value being reported to CWOP. Does anyone have ties to Ecowitt to correct their API?

gjr80

unread,
Jun 12, 2022, 6:11:57 PM6/12/22
to weewx-user
My apologies for not publishing b5 earlier, I had some documentation issues I wished to fix first but a lack of spare time prevented that. In any case I have released v0.5.0b5 this morning.

b5 addresses two main issues. Firstly it removes the the internal driver field t_rainhour from the default field map, effectively meaning that the erroneous hour rain value reported by the API for 'traditional' (ie non-WS90) rain gauges is ignored. This should fix the issue some folks have had with CWOP rainfall data. The other area addressed in b5 is the WH40 battery state. Put simply there appears to be two WH40 hardware versions; one that does not report battery state data and one that does report battery state data. Unfortunately, the API returns a constant value of 1.6V for the former. b5 now detects the two hardware versions and for the hardware that does not return battery state data the driver now returns the value None for WH40 battery state. Battery state is correctly reported for WH40 hardware that does report battery state.


Gary

Reply all
Reply to author
Forward
0 new messages