[Belchertown] strange rain information

155 views
Skip to first unread message

didier....@gmail.com

unread,
Jul 14, 2020, 6:19:38 AM7/14/20
to weewx-user
Hi

I don't understand why I have a rain = 0,1 mm while it hasn't been raining for 1/4 h
(RainRate seems to be correct during this period)
When I press F5 to refresh the screen, it appears very shortly 0 mm, then 0,1 mm
Do you have an explaination?

Hereafter the "ip"/v1/current_conditions
{"data":{"did":"001D0A711DF5","ts":1594720938,"conditions":[{"lsid":319839,"data_structure_type":1,"txid":1,"temp": 59.6,"hum":83.3,"dew_point": 54.5,"wet_bulb": 56.3,"heat_index": 59.6,"wind_chill": 59.6,"thw_index": 59.6,"thsw_index":null,"wind_speed_last":0.93,"wind_dir_last":300,"wind_speed_avg_last_1_min":0.93,"wind_dir_scalar_avg_last_1_min":260,"wind_speed_avg_last_2_min":0.62,"wind_dir_scalar_avg_last_2_min":266,"wind_speed_hi_last_2_min":3.43,"wind_dir_at_hi_speed_last_2_min":300,"wind_speed_avg_last_10_min":0.93,"wind_dir_scalar_avg_last_10_min":242,"wind_speed_hi_last_10_min":4.25,"wind_dir_at_hi_speed_last_10_min":15,"rain_size":2,"rain_rate_last":0,"rain_rate_hi":0,"rainfall_last_15_min":0,"rain_rate_hi_last_15_min":0,"rainfall_last_60_min":3,"rainfall_last_24_hr":3,"rain_storm":3,"rain_storm_start_at":1594717981,"solar_rad":null,"uv_index":null,"rx_state":0,"trans_battery_flag":0,"rainfall_daily":3,"rainfall_monthly":8,"rainfall_year":60,"rain_storm_last":5,"rain_storm_last_start_at":1593604621,"rain_storm_last_end_at":1593702061},{"lsid":319838,"data_structure_type":4,"temp_in": 77.8,"hum_in":40.6,"dew_point_in": 52.0,"heat_index_in": 76.9},{"lsid":319837,"data_structure_type":3,"bar_sea_level":30.074,"bar_trend":-0.002,"bar_absolute":29.561}]},"error":null}  

didier....@gmail.com

unread,
Jul 14, 2020, 6:21:19 AM7/14/20
to weewx-user

didier....@gmail.com

unread,
Jul 14, 2020, 6:23:11 AM7/14/20
to weewx-user

oops, I have some problem with my snapshot

Le mardi 14 juillet 2020 à 12:19:38 UTC+2, didier....@gmail.com a écrit :
2020-07-14_122208.jpg

Pat

unread,
Jul 14, 2020, 10:49:43 AM7/14/20
to weewx-user
When the page is first loaded, it loads the information from the database. After MQTT connects, it then updates from any information in MQTT. 

Sometimes MQTT is more updated than the databased depending on the time of your archives. timing of loop, etc.

Didier Decoodt

unread,
Jul 14, 2020, 10:58:30 AM7/14/20
to weewx...@googlegroups.com
OK
But now it is 5 PM, and the last rainfall was at 11 AM this morning, and I see 0,1 mm.
This is a problem...

--
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/e1dadaa1-f15f-41c4-8c32-702d4625b030o%40googlegroups.com.
2020-07-14_165439.jpg

Pat

unread,
Jul 14, 2020, 11:11:57 AM7/14/20
to weewx-user
Why is this a problem?

You've had 0,1mm of rain today right? 

This shows the rain you've had for today. 

What do you have for your station_observations setting?
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.

Didier Decoodt

unread,
Jul 14, 2020, 11:18:11 AM7/14/20
to weewx...@googlegroups.com
Ah... this is for today (missunderstanding)
But today I have 3*0.2=0.6 mm

            # Station Observations. Special observation rainWithRainRate combines Daily Rain with Rain Rate in 1 line
            station_observations = barometer, dewpoint, outHumidity, rain, rainRate


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/551c2bc9-d1f5-4fde-8d55-2b1e11fa8828o%40googlegroups.com.
today.jpg

Pat

unread,
Jul 14, 2020, 11:21:40 AM7/14/20
to weewx-user
I think you'll want this 

    station_observations = "barometer", "dewpoint", "outHumidity", "rainWithRainRate"

Save and restart weewx 


Pat

unread,
Jul 14, 2020, 11:23:47 AM7/14/20
to weewx-user
Or if you want them separated, try

    station_observations = "barometer", "dewpoint", "outHumidity", "rainTotal", "rainRate"


"rain" will show you just the last rain value from mqtt, if you want the total you'll need to try rainTotal or rainWithRainRate

Didier Decoodt

unread,
Jul 14, 2020, 11:33:46 AM7/14/20
to weewx...@googlegroups.com
I try rainTotal and rainRate ==> Invalid observation
I try rainWithRainRate ==> always 0,1mm (instead of 0,6)


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/94cbf91b-12c5-4ad5-aea1-7b9f149d5fc0o%40googlegroups.com.
raintotal.jpg
rainwithrainrate.jpg

Didier Decoodt

unread,
Jul 14, 2020, 11:40:57 AM7/14/20
to weewx...@googlegroups.com
I verify rainTotal in graphs.conf, it's OK 0,6 mm
chart.jpg

Pat

unread,
Jul 14, 2020, 11:50:19 AM7/14/20
to weewx-user
What does your mqtt say for rain or day rain?


On Tuesday, July 14, 2020 at 11:40:57 AM UTC-4, Didier Decoodt wrote:
I verify rainTotal in graphs.conf, it's OK 0,6 mm

Didier Decoodt

unread,
Jul 14, 2020, 11:55:18 AM7/14/20
to weewx...@googlegroups.com
How do you do that?


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/fff2dd6b-b562-43ab-8a3b-5d9f902b90f2o%40googlegroups.com.

Pat

unread,
Jul 14, 2020, 11:55:59 AM7/14/20
to weewx-user
What is the link to your site? I'll take a look at it through your debug

Didier Decoodt

unread,
Jul 14, 2020, 11:56:45 AM7/14/20
to weewx...@googlegroups.com

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/62e69db0-dfaf-4609-8d52-4ca6e5698551o%40googlegroups.com.

Pat

unread,
Jul 14, 2020, 12:01:45 PM7/14/20
to weewx-user
You're MQTT is sending rain information in CM. Do you want it in CM or MM?

Looking at the code, you'll want rainWithRainRate to show the dayRain observation. 

If you want this in MM, you need to update your weewx.conf [[MQTT]] section to send data in MM. 

[[MQTT]]
        [[[inputs]]]
                [[[[dayRain]]]]
                        name = dayRain_mm
                        units = mm

MQTT: {"dateTime": "1594742272.0", "outTemp_C": "21.333333333333336", "outHumidity": "64.9", "dewpoint_C": "14.444444444444445", "heatindex_C": "21.166666666666664", "windchill_C": "21.333333333333336", "windSpeed_kph": "1.7059046400000002", "windDir": "360.0", "windGust_kph": "3.4118092800000004", "windGustDir": "6.0", "barometer_mbar": "1015.7471282370167", "pressure_mbar": "998.4088208638761", "rain_cm": "0.0", "rainRate_cm_per_hour": "0.0", "inTemp_C": "25.944444444444443", "inHumidity": "42.6", "inDewpoint_C": "12.277777777777779", "usUnits": "16.0", "altimeter_mbar": "1016.4348448211537", "appTemp_C": "22.423477298218454", "beaufort_count": "0.0", "cloudbase_meter": "988.6539444933627", "humidex_C": "24.96873770987386", "maxSolarRad_Wpm2": "531.7266550230675", "hourRain_cm": "0.0", "rain24_cm": "0.0600000324", "dayRain_cm": "0.0600000324"}

Pat

unread,
Jul 14, 2020, 12:10:03 PM7/14/20
to weewx-user
You'll also need to update rain, rainRate too for mm

        [[[inputs]]]
                [[[[dayRain]]]]
                        name = dayRain_mm
                        units = mm
                [[[[rainRate]]]]
                        name = rainRate_mm_per_hour
                        units = mm_per_hour
                [[[[rain]]]]
                        name = rain_mm
                        units = mm

Didier Decoodt

unread,
Jul 14, 2020, 12:19:34 PM7/14/20
to weewx...@googlegroups.com
I do that and I display: station_observations = "barometer", "dewpoint", "outHumidity", "rainWithRainRate", "rainTotal", "rain", "rainRate"
I don't understand rainTotal (invalid observation) and rain (0,1 mm)

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/ad7b0cf0-f128-4434-ab19-4576ae30c133o%40googlegroups.com.
four.jpg

Pat

unread,
Jul 14, 2020, 12:23:16 PM7/14/20
to weewx-user
Remove rainTotal, that was my mistake. I confused the chart for the station_observations. 

Right now rainWithRainRate is the only one that will show you the rain total for the day using the dayRain observation. 

Pat

unread,
Jul 14, 2020, 12:26:20 PM7/14/20
to weewx-user
If you really want them split, try this?

station_observations = "barometer", "dewpoint", "outHumidity", "dayRain", "rainRate"

Anything in the MQTT packet should be viewable. rainWithRainRate is a special one that combines 2 observations into 1 line. 

Didier Decoodt

unread,
Jul 14, 2020, 12:36:05 PM7/14/20
to weewx...@googlegroups.com
Many thank's , it's right now
Just for my information, in the MQTT request you have also hourRain_cm and rain24_cm, is it necessary to change MQTT units (as dayRain)?
Is changing cm by mm has an impact on mySQL database?
Last question: how do you do this MQTT request?

MQTT: {"dateTime": "1594742272.0", "outTemp_C": "21.333333333333336", "outHumidity": "64.9", "dewpoint_C": "14.444444444444445", "heatindex_C": "21.166666666666664", "windchill_C": "21.333333333333336", "windSpeed_kph": "1.7059046400000002", "windDir": "360.0", "windGust_kph": "3.4118092800000004", "windGustDir": "6.0", "barometer_mbar": "1015.7471282370167", "pressure_mbar": "998.4088208638761", "rain_cm": "0.0", "rainRate_cm_per_hour": "0.0", "inTemp_C": "25.944444444444443", "inHumidity": "42.6", "inDewpoint_C": "12.277777777777779", "usUnits": "16.0", "altimeter_mbar": "1016.4348448211537", "appTemp_C": "22.423477298218454", "beaufort_count": "0.0", "cloudbase_meter": "988.6539444933627", "humidex_C": "24.96873770987386", "maxSolarRad_Wpm2": "531.7266550230675", "hourRain_cm": "0.0", "rain24_cm": "0.0600000324""dayRain_cm": "0.0600000324"}

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/65968db5-aec3-4db1-ace4-b94f239e733co%40googlegroups.com.
good.jpg

Pat

unread,
Jul 14, 2020, 12:50:59 PM7/14/20
to weewx-user
If you want to show those units on your site, through MQTT updates, as mm then yes you should update it. Otherwise if everything is working how you want it right now you can leave it alone. 

None of this will change your database, this is just for the website reporting. 

To see the debug in real time I added /?debug=true to your website URL, then opened Chrome console and it showed me that data

Didier Decoodt

unread,
Jul 14, 2020, 12:56:55 PM7/14/20
to weewx...@googlegroups.com
Many thank's Pat
Have a good day

Didier

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/4df06d2a-dfca-4e40-883e-3af600cf2386o%40googlegroups.com.

Didier Decoodt

unread,
Jul 15, 2020, 1:05:28 PM7/15/20
to weewx...@googlegroups.com
Hi Pat

Just a question:
I have a Davis Vantage Vue station without UV sensor  and I have a maxSolarRad_Wpm2 value in MQTT request
Is it normal?

Thank's
Didier

MQTT: {"dateTime": "1594832454.0", "outTemp_C": "20.222222222222225", "outHumidity": "58.9", "dewpoint_C": "11.944444444444445", "heatindex_C": "20.055555555555554", "windchill_C": "20.222222222222225", "windSpeed_kph": "1.207008", "windDir": "100.0", "windGust_kph": "6.228161280000001", "windGustDir": "355.0", "barometer_mbar": "1017.0678196189551", "pressure_mbar": "999.6956483642264", "rain_mm": "0.0", "rainRate_mm_per_hour": "0.0", "inTemp_C": "25.833333333333332", "inHumidity": "43.5", "inDewpoint_C": "12.5", "usUnits": "16.0", "altimeter_mbar": "1017.7405069933512", "appTemp_C": "20.58340222764579", "beaufort_count": "0.0", "cloudbase_meter": "1162.1548707557486", "humidex_C": "22.440566039751353", "maxSolarRad_Wpm2": "339.1752528607464", "hourRain_mm": "0.0", "rain24_mm": "0.0", "dayRain_mm": "0.0"}

Pat

unread,
Jul 15, 2020, 4:47:03 PM7/15/20
to weewx-user
I'm not sure if this is normal. Do you have the pyephem installed? It could be coming from that?


On Wednesday, July 15, 2020 at 1:05:28 PM UTC-4, Didier Decoodt wrote:
Hi Pat

Just a question:
I have a Davis Vantage Vue station without UV sensor  and I have a maxSolarRad_Wpm2 value in MQTT request
Is it normal?

Thank's
Didier

MQTT: {"dateTime": "1594832454.0", "outTemp_C": "20.222222222222225", "outHumidity": "58.9", "dewpoint_C": "11.944444444444445", "heatindex_C": "20.055555555555554", "windchill_C": "20.222222222222225", "windSpeed_kph": "1.207008", "windDir": "100.0", "windGust_kph": "6.228161280000001", "windGustDir": "355.0", "barometer_mbar": "1017.0678196189551", "pressure_mbar": "999.6956483642264", "rain_mm": "0.0", "rainRate_mm_per_hour": "0.0", "inTemp_C": "25.833333333333332", "inHumidity": "43.5", "inDewpoint_C": "12.5", "usUnits": "16.0", "altimeter_mbar": "1017.7405069933512", "appTemp_C": "20.58340222764579", "beaufort_count": "0.0", "cloudbase_meter": "1162.1548707557486", "humidex_C": "22.440566039751353", "maxSolarRad_Wpm2": "339.1752528607464", "hourRain_mm": "0.0", "rain24_mm": "0.0", "dayRain_mm": "0.0"}

Didier Decoodt

unread,
Jul 15, 2020, 5:55:00 PM7/15/20
to weewx...@googlegroups.com
Yes, ephem is installed on python3 (may be with weewx installation)

 

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/160507af-96eb-4aa2-b0fa-f066663b83eco%40googlegroups.com.

jterr...@gmail.com

unread,
Jul 16, 2020, 7:19:33 AM7/16/20
to weewx-user
Hi Didier,

maxSolarRad is one of the parameters that are calculated by weewx - see http://weewx.com/docs/usersguide.htm#StdWXCalculate 
It is the theoretical maximum solar radiation expected at your location.

Didier Decoodt

unread,
Jul 16, 2020, 7:41:39 AM7/16/20
to weewx...@googlegroups.com
Many thank’s 
interesting  information

Didier

Reply all
Reply to author
Forward
0 new messages