Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.6.5 (build 3081) - 28 May 2020 (please see important announcement regarding releases since 3.5.0)
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of the NOAA report and Snow Index drop-down menus to 2030)

See the Wiki to download the software or click on the Downloads link in the Forum Banner.

"So far" day rainfall out of step with hourly totals

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Post Reply
freddie
Posts: 722
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2
Operating System: Ubuntu 18.04 (LXC container)
Location: Dorrington, Shropshire, UK
Contact:

"So far" day rainfall out of step with hourly totals

Post by freddie »

Since changing my twitter.txt to report both hourly rainfall and day total so far, I noticed a discrepancy last night. Tweet for 2100 UTC:

Code: Select all

2100 UTC: Wind N 0.0 kts. Temp 17.1 C (max 09-09 21.8 C at 13:54, min 09-09 16.4 C at 09:00), Dew pt 15.7 C. Bar 1015.31 hPa, Rising slowly. Rain last hour 0.0 mm (rain 09-09 1.4 mm) #ukweather
Tweet for 2200 UTC last night:

Code: Select all

2200 UTC: Wind N 0.0 kts. Temp 17.0 C (max 09-09 21.8 C at 13:54, min 09-09 16.4 C at 09:00), Dew pt 15.9 C. Bar 1015.41 hPa, Rising slowly. Rain last hour 1.2 mm (rain 09-09 2.8 mm) #ukweather
You can see that there was 1.2 mm of rain (rain last hour 2100-2200) but the daily total changed from 1.4 mm to 2.8 mm. Looking at the rainfall graph, there was a "tip" between 2100 and 2101. It looks as if the tip was not attributed to the hourly total at 2200 UTC, and was in effect lost. Daily total was correct at both 2100 UTC and 2200 UTC.
Freddie
Image

User avatar
steve
Cumulus Author
Posts: 26704
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: "So far" day rainfall out of step with hourly totals

Post by steve »

I’ll have a look at the code when I next have my laptop out.
Steve

User avatar
steve
Cumulus Author
Posts: 26704
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: "So far" day rainfall out of step with hourly totals

Post by steve »

I think this is similar to your other recent query. Cumulus maintains a list of readings for the last hour, adding a new one each minute and deleting those which are older than an hour ago. It determines the rainfall in the last hour from the difference between the rain counter in the first entry in the list and the last entry. So depending on the timing of when a rain tip occurs and when the the actual comparison is done, it is possible that the tip occurred slightly more than one hour ago, but at the previous comparison it hadn't occurred yet. Bear in mind that all of this happens in separate threads, so sometimes actions can occur in a different order.

I'll admit that I haven't totally convinced myself that the explanation is as above, but without seeing the data readings and the timing of exactly when Cumulus received the reading readings relative to when it updated the list and when it actioned the web tag in your twitter.txt file, it I can't come up with anything better.
Steve

freddie
Posts: 722
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2
Operating System: Ubuntu 18.04 (LXC container)
Location: Dorrington, Shropshire, UK
Contact:

Re: "So far" day rainfall out of step with hourly totals

Post by freddie »

That was my first thought too - a question of timing. But the tip didn't register in the previous hour's total either, so it was effectively lost from the hourly totals from the day. That was the bit that caught my attention as I couldn't account for the tip at all. I'm happy, though, as it wasn't lost from the daily total - but thought you'd like to be made aware of the anomoly.
Freddie
Image

Post Reply