Rain data not displaying

96 views
Skip to first unread message

Dale Chatham

unread,
Jan 16, 2024, 11:43:46 AM1/16/24
to weewx-user
Data from log:
Jan 16 09:28:28 fedora-workstation weewxd[3577]: INFO user.gw1000: GatewayDriver: Packet 2024-01-16 09:28:27 CST (1705418907): {'dateTime': '1705418907', 'daymaxwind': '7.2', 'extraHumid1': '26', 'extraHumid2': '11', 'extraHumid3': '12', 'extraHumid4': '12', 'extraHumid5': '13', 'extraTemp1': '0.9', 'extraTemp2': '23.9', 'extraTemp3': '22.7', 'extraTemp4': '23.7', 'extraTemp5': '22.7', 'inHumidity': '17', 'inTemp': '16.1', 'lightning_distance': '31', 'lightning_last_det_time': '1705040128', 'lightning_strike_count': '0', 'lightningcount': '0', 'luminosity': '8410.0', 'outHumidity': '52', 'outTemp': '-9.9', 'p_dayRain': '0.0', 'p_monthRain': '26.5', 'p_rain': '0.0', 'p_rainRate': '0.0', 'p_stormRain': '0.0', 'p_weekRain': '0.0', 'p_yearRain': '26.5', 'pressure': '1011.7', 'relbarometer': '1011.7', 'usUnits': '17', 'UV': '0', 'uvradiation': '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', 'wh57_batt': '4', 'wh57_sig': '4', 'windDir': '302', 'windGust': '1.9', 'windSpeed': '0.6', 'ws90_batt': '3.06', 'ws90_sig': '4'}


Jan 16 09:28:28 fedora-workstation weewxd[3577]:
INFO user.gw1000: GatewayDriver: Packet 2024-01-16 09:28:27 CST (1705418907):
{
 'dateTime': '1705418907',
 'daymaxwind': '7.2',
 'extraHumid1': '26',
 'extraHumid2': '11',
 'extraHumid3': '12',
 'extraHumid4': '12',
 'extraHumid5': '13',
 'extraTemp1': '0.9',
 'extraTemp2': '23.9',
 'extraTemp3': '22.7',
 'extraTemp4': '23.7',
 'extraTemp5': '22.7',
 'inHumidity': '17',
 'inTemp': '16.1',
 'lightning_distance': '31',
 'lightning_last_det_time': '1705040128',
 'lightning_strike_count': '0',
 'lightningcount': '0',
 'luminosity': '8410.0',
 'outHumidity': '52',
 'outTemp': '-9.9',
 'p_dayRain': '0.0',
 'p_monthRain': '26.5',
 'p_rain': '0.0',
 'p_rainRate': '0.0',
 'p_stormRain': '0.0',
 'p_weekRain': '0.0',
 'p_yearRain': '26.5',
 'pressure': '1011.7',
 'relbarometer': '1011.7',
 'usUnits': '17',
 'UV': '0',
 'uvradiation': '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',
 'wh57_batt': '4',
 'wh57_sig': '4',
 'windDir': '302',
 'windGust': '1.9',
 'windSpeed': '0.6',
 'ws90_batt': '3.06',
 'ws90_sig': '4'
}

Note, rain reporting piezo data

 driver = user.gw1000

Modified Seasons skin

Installed via RPM, update

I suspect this has to do with using piezo rain data and weewx is expecting tipping bucket data.  However, I can't seem to find where t_rain* or p_rain* is configured.

gjr80

unread,
Jan 16, 2024, 3:56:29 PM1/16/24
to weewx-user
Did you look at the driver wiki? The driver wiki has a FAQ that addresses this very question.

It would be nice if the driver could auto-configure the rainfall source. Whilst the driver has available the information needed to do this there are far too many corner cases to be able to implement this in a robust manner. For this reason piezo rain gauge users will (likely) need to manually configure their rainfall mapping.

Gary

Dale Chatham

unread,
Jan 16, 2024, 8:36:20 PM1/16/24
to weewx...@googlegroups.com

Wasn't aware of a driver wiki, but I did figure that it had to be addressed somewhere.

Thanks, looking now.

--
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/5491cffa-7f7e-405b-8d45-0285df809a62n%40googlegroups.com.

Dale Chatham

unread,
Jan 16, 2024, 8:47:29 PM1/16/24
to weewx...@googlegroups.com

OK, found this:

Users with a piezo rainfall gauge only

Users whose only connected rainfall gauge is a WS90 sensor suite and are using the default field map will see the piezo rainfall data appear in WeeWX loop packets in fields starting with 'p_' as per the above table. Such users that want the piezo rainfall data to appear in the 'standard' WeeWX rainfall fields will need to use a custom field map. The easiest way to create a custom field map for the piezo rain is to add suitable entries under the [GW1000] [[field_map_extensions]] stanza. A suitable custom field map to map piezo rain to the 'standard' WeeWX rainfall fields may look something like:

[GW1000] .... [[field_map_extensions]] rain = p_rain stormRain = p_rainevent rainRate = p_rainrate dayRain = p_rainday weekRain = p_rainweek monthRain = p_rainmonth yearRain = p_rainyear


Which seems to address the problem.  Only question is where does it go?  I grepped for field_map_extensions and found nothing within brackets.


On 1/16/2024 2:56 PM, gjr80 wrote:
--

gjr80

unread,
Jan 16, 2024, 9:05:35 PM1/16/24
to weewx-user
You need to locate weewx.conf, open it for editing, locate the [GW1000] stanza and then add a [[field_map_extension]] stanza with the necessary entries.

Gary 

Dale Chatham

unread,
Jan 16, 2024, 9:30:09 PM1/16/24
to weewx...@googlegroups.com

Which gives me this in weewx.cfg:

[GW1000]
    # This section is for the Ecowitt Gateway driver.

    # How often to poll the API, default is every 20 seconds:
    poll_interval = 10

    # The driver to use:
    driver = user.gw1000
    ip_address = 192.168.50.143
    port = 45000


    [[field_map_extensions]]
        rain = p_rain
        stormRain = p_rainevent
        rainRate = p_rainrate
        dayRain = p_rainday
        weekRain = p_rainweek
        monthRain = p_rainmonth
        yearRain = p_rainyear


Executed weectl report run, reloaded web page.  No new rain graphs.

chatham.org/weewx

--
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.

gjr80

unread,
Jan 16, 2024, 9:44:15 PM1/16/24
to weewx-user
weectl report run will run the reports against the current database, most likely as yet you have no archive data using the new mapping in your database. You need to wait until the end of an archive period before you will see rain data in your archive. And then remember that some plots are only generated every hour, three hours or once a day so some plots may not change for a while. You can delete the plots to force regeneration.

Gary


Reply all
Reply to author
Forward
0 new messages