Weewx Mqtt not totaling the rain count right

150 views
Skip to first unread message

kufuu

unread,
Sep 7, 2023, 7:09:26 PM9/7/23
to weewx-user
We got over .800" of rain and looks like Weewx mqtt skipped some of the count for some reason, here is the script

Sep  7 14:40:10 zero-wx weewx[15766] DEBUG user.MQTTSubscribe: (Driver) MessageCallbackProvider data-> incoming topic: enviro/river-wx, QOS: 0, retain: 0, payload: b'{"readings": {"rain_per_second": 0.0025905, "pressure": 948.04, "temperature": 24.65, "humidity": 73.33, "wind_direction": 90, "luminance": 16.12, "rain": 1.5543, "voltage": 0.0, "wind_speed": 0}, "nickname": "river-wx", "model": "weather", "uid": "e6614c311b62b034", "timestamp": "2023-09-07T18:40:05Z"}'
Sep  7 14:40:10 zero-wx weewx[15766] DEBUG user.MQTTSubscribe: (Driver) TopicManager data-> incoming enviro/river-wx: 'luminance': '16.12', 'outHumidity': '73.33', 'outTemp': '24.65', 'pressure': '948.04', 'rain': '1.5543', 'windDir': '90.0', 'windSpeed': '0.0'
Sep  7 14:40:12 zero-wx weewx[15766] DEBUG user.MQTTSubscribe: (Driver) TopicManager data-> outgoing enviro/river-wx: 'dateTime': '1694112010.9298928', 'luminance': '16.12', 'outHumidity': '73.33', 'outTemp': '24.65', 'pressure': '948.04', 'rain': '1.5543', 'usUnits': '17', 'windDir': '90.0', 'windSpeed': '0.0'
Sep  7 14:40:12 zero-wx weewx[15766] DEBUG user.MQTTSubscribe: (Driver) data-> final loop packet is enviro/river-wx 2023-09-07 14:40:10 EDT (1694112010): 'dateTime': '1694112010.9298928', 'luminance': '16.12', 'outHumidity': '73.33', 'outTemp': '24.65', 'pressure': '948.04', 'rain': '1.5543', 'usUnits': '17', 'windDir': '90.0', 'windSpeed': '0.0'

Sep  7 14:50:11 zero-wx weewx[15766] DEBUG user.MQTTSubscribe: (Driver) MessageCallbackProvider data-> incoming topic: enviro/river-wx, QOS: 0, retain: 0, payload: b'{"readings": {"rain_per_second": 0.02331449, "pressure": 949.13, "temperature": 19.46, "humidity": 78.25, "wind_direction": 90, "luminance": 11.5, "rain": 13.9887, "voltage": 0.0, "wind_speed": 0}, "nickname": "river-wx", "model": "weather", "uid": "e6614c311b62b034", "timestamp": "2023-09-07T18:50:05Z"}'
Sep  7 14:50:11 zero-wx weewx[15766] DEBUG user.MQTTSubscribe: (Driver) TopicManager data-> incoming enviro/river-wx: 'luminance': '11.5', 'outHumidity': '78.25', 'outTemp': '19.46', 'pressure': '949.13', 'rain': '12.4344', 'windDir': '90.0', 'windSpeed': '0.0'
Sep  7 14:50:13 zero-wx weewx[15766] DEBUG user.MQTTSubscribe: (Driver) TopicManager data-> outgoing enviro/river-wx: 'dateTime': '1694112611.381946', 'luminance': '11.5', 'outHumidity': '78.25', 'outTemp': '19.46', 'pressure': '949.13', 'rain': '12.4344', 'usUnits': '17', 'windDir': '90.0', 'windSpeed': '0.0'
Sep  7 14:50:13 zero-wx weewx[15766] DEBUG user.MQTTSubscribe: (Driver) data-> final loop packet is enviro/river-wx 2023-09-07 14:50:11 EDT (1694112611): 'dateTime': '1694112611.381946', 'luminance': '11.5', 'outHumidity': '78.25', 'outTemp': '19.46', 'pressure': '949.13', 'rain': '12.4344', 'usUnits': '17', 'windDir': '90.0', 'windSpeed': '0.0'

Sep  7 15:00:10 zero-wx weewx[15766] DEBUG user.MQTTSubscribe: (Driver) MessageCallbackProvider data-> incoming topic: enviro/river-wx, QOS: 0, retain: 0, payload: b'{"readings": {"rain_per_second": 0.01206888, "pressure": 947.8, "temperature": 17.78, "humidity": 92.74, "wind_direction": 90, "luminance": 55.23, "rain": 7.253399, "voltage": 0.0, "wind_speed": 0}, "nickname": "river-wx", "model": "weather", "uid": "e6614c311b62b034", "timestamp": "2023-09-07T19:00:06Z"}'
Sep  7 15:00:10 zero-wx weewx[15766] DEBUG user.MQTTSubscribe: (Driver) TopicManager data-> incoming enviro/river-wx: 'luminance': '55.23', 'outHumidity': '92.74', 'outTemp': '17.78', 'pressure': '947.8', 'rain': 'None', 'windDir': '90.0', 'windSpeed': '0.0'
Sep  7 15:00:11 zero-wx weewx[15766] DEBUG user.MQTTSubscribe: (Driver) TopicManager data-> outgoing enviro/river-wx: 'dateTime': '1694113210.8160872', 'luminance': '55.23', 'outHumidity': '92.74', 'outTemp': '17.78', 'pressure': '947.8', 'rain': 'None', 'usUnits': '17', 'windDir': '90.0', 'windSpeed': '0.0'
Sep  7 15:00:11 zero-wx weewx[15766] DEBUG user.MQTTSubscribe: (Driver) data-> final loop packet is enviro/river-wx 2023-09-07 15:00:10 EDT (1694113210): 'dateTime': '1694113210.8160872', 'luminance': '55.23', 'outHumidity': '92.74', 'outTemp': '17.78', 'pressure': '947.8', 'rain': 'None', 'usUnits': '17', 'windDir': '90.0', 'windSpeed': '0.0'


Current Conditions ♦
Outside Temperature 73.3°F
Heat Index 74.8°F
Wind Chill 73.3°F
Dew Point 71.7°F
Outside Humidity 95%
Barometer 29.850 inHg (-0.049)
Wind 0 mph N/A ( N/A)
Rain Today 0.55 in
Rain Rate 0.00 in/h

bell...@gmail.com

unread,
Sep 7, 2023, 9:53:33 PM9/7/23
to weewx-user
Based on the information provided here are my assumptions and guesses on what might being happening.
At Sep 7 14:40:10 MQTTSubscribe received a json formatted MQTT message with a rain value of 1.5543 and reported rain of 1.5543. Inches, mm, cm? Unsure, but at this point probably not important.
At Sep 7 14:50:11 MQTTSubscribe received a json formatted MQTT message with a rain value of 13.9887 and reported rain of 12.4344 (13.9887 - 1.5543). So, MQTTSubscribe is probably configured to deal with rain as a cumulative observation.
At Sep 7 15:00:10 MQTTSubscribe received a json formatted MQTT message with a rain value of 7.253399. Going on the assumption that rain has been configured as a cumulative value, the delta amount of rain received is 7.253399 - 13.9887, or -6.735301. Being a negative rainfall, MQTTSubscribe reports a value of ‘None’.
So if my guesses that your sensor is reporting cumulative rain and MQTTSubscribe is configured to calculate the delta, the first question to answer is; why is the cumulative rain 13.9887 at Sep 7 14:50:11 and 7.253399 at Sep 7 15:00:10?
rich
Message has been deleted

kufuu

unread,
Sep 8, 2023, 10:03:45 AM9/8/23
to weewx-user
Rain is in mm, Weather Station is Pi Pico Enviro Weather, It send out the data every 10 minutes, and I dont have a clue about this.

kufuu

unread,
Sep 8, 2023, 1:01:51 PM9/8/23
to weewx-user
If you take all 3 payloads of rain and add them up its 22.796mm converted its .8974 inches and thats how much rain weewx should have reported, dont know why it kicked the last 7.253mm out and didnt add it in. Is there a way to fix this ?

kufuu

unread,
Sep 9, 2023, 7:42:27 PM9/9/23
to weewx-user
I found the problem with the rain total,
[[[[readings_rain]]]]
            ignore = false # opt back in for this field
            contains_total = true
            name = rain

contains_total should be false,  oh well I will eventually get this thing straightened out .

bell...@gmail.com

unread,
Sep 9, 2023, 7:52:53 PM9/9/23
to weewx-user
Bingo. I just came here to suggest that. 

kufuu

unread,
Sep 9, 2023, 9:13:20 PM9/9/23
to weewx-user
Thanks again, I wont to get this think running good before I replace the la crosse 2315 on Weather Underground, the ws 2315 throws real low temps when its raining during the night for some reason.
Reply all
Reply to author
Forward
0 new messages