Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Rain Graph.

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
Phil23
Posts: 888
Joined: Sat 16 Jul 2016 11:59 pm
Weather Station: Davis VP2+ & GW1000 (Standalone)
Operating System: Win10 Pro / rPi Buster
Location: Australia

Rain Graph.

Post by Phil23 »

I know I'm still stuck on Version 3107, but this may be relevant to the graphs scripts.

Data shows 121mm of rain till 9:00am on 23/03/21.

But is I pan the cursor across the rain chart I see these figures...

8:40am - 114mm
8:50am - 118mm
9:00am - 0mm
9:10am - 2.6mm

Would have expected the 9:00am graph point to show the 121mm recorded as the previous days total.

Phil.

Edit:- 9:00am also shows a rain rate of 24.2mm/h which is probably correct.
:Now: :Today/Yesterday:

Image

Main Station Davis VP2+ Running Via Win10 Pro.
Secondary Stations, Ecowitt HP2551/GW1000 Via rPi 3 & 4 Running Buster GUI.
:Local Inverell Ecowitt Station: :Remote Ashford Ecowitt Station:
Mapantz
Posts: 1992
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Rain Graph.

Post by Mapantz »

As your graph shows data in 10 minute increments, and 9am as the rollover time, it can't show data from 8:50 to 8:59.
Image
User avatar
billy
Posts: 260
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi-4 bookworm
Location: Gooseberry Hill, Western Australia

Re: Rain Graph.

Post by billy »

Phil23 wrote: Tue 23 Mar 2021 1:00 am Would have expected the 9:00am graph point to show the 121mm recorded as the previous days total.
I expected that too, but discovered the behaviour you describe some time ago when I was creating sql queries to get my historic rainfall DrillDown - https://tillyspaws.com/vp2waw/graphs_historic.php. It doesn't seem to fit the logic of all the other intervals.

As I recall I dealt with it by using a combination of rain since midnight and rainfall today.
User avatar
philpugh
Posts: 428
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 12 (RPi5)
Location: Antrobus, Cheshire, UK
Contact:

Re: Rain Graph.

Post by philpugh »

As I recall I dealt with it by using a combination of rain since midnight and rainfall today.
This would be expected from your set up wouldn't it? You are reporting (on your website) with a day starting at 9am. Perfectly valid. Your database will allow you to access data from any date/time.

The rain from 8:50 to 8:59 should be included in the previous days totals but at the start of the 'new' day at 9:00am the rainfall total must be reset to 0.

Your days reporting from SQL should be set to reflect 9am to 9am "days" also - otherwise there will be discrepancies in graphs etc.
Phil Pugh
GW1100 + WH65/WH57/WH31;GW1100 + WS68/WH40A (also with HP25xx console); GW2001 WittBoy
CumulusMX V4 / CUtils V7
Raspberry Pi 5 64bit
https://goosegate.uk/
User avatar
billy
Posts: 260
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi-4 bookworm
Location: Gooseberry Hill, Western Australia

Re: Rain Graph.

Post by billy »

I log at 5 minute intervals and my rollover is at 9 am. I guess the issue is this: The last 5' log of the day (8:55 - 9:00) behaves differently from every other log interval in that it always has zero rain, even if rain fell in that period. So I can't simply add up the the rainfall in the 5' periods of the log file and assume the total will reflect the total for the day because it will not include rain in the last log period for the day. Of course cumulus keep the correct record for the day's total. But if one wants, say, hourly rainfall for each hour of the day (as in the drill down graphs), the log is not always going to be correct for the last hour of the day. That's why I get the rainfall in the 8:55 - 9:00 period from the rain since midnight variable.

I don't know what the behaviour is for those with a midnight rollover.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Rain Graph.

Post by mcrossley »

billy wrote: Mon 29 Mar 2021 7:18 am I don't know what the behaviour is for those with a midnight rollover.
Its the same, the 00:00 record belongs to the new day so the daily rainfall has been reset to zero. The total rainfall counter just keeps increasing though.

The current logging system cannot deal with values for two days in a single record.
User avatar
billy
Posts: 260
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi-4 bookworm
Location: Gooseberry Hill, Western Australia

Re: Rain Graph.

Post by billy »

Thanks. And I guess the difference between rainfall and say temperature in a monthly log file period is rainfall is an accumulation over the period whereas temperature is an instantaneous value at the end of the period, which in this case is clearly related to the next day
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Rain Graph.

Post by mcrossley »

Yes, but then your rainfall for any day starts at say 10mm then drops to zero and starts climbing again.

This is a cosmetic thing on the "recent" rainfall graph that it misses the last 10 minutes (or whatever) of the day, the daily graphs where you would be comparing days are fine.
Post Reply