Page 1 of 1
WEEKLY RAINFALL IN THE DASHBOARD
Posted: Sun 20 Oct 2024 12:15 pm
by Polin79
Hi,
It would be possible to add in the rainfall window of the dashboard the weekly rainfall?
Thanks
Paolo
Re: WEEKLY RAINFALL IN THE DASHBOARD
Posted: Sun 20 Oct 2024 12:19 pm
by freddie
That could be tricky as a week is not a unit of time that Cumulus uses internally - it uses days, months and years. Also, the definition of a week can be different depending on the day of the week that it starts and ends.
All in all, it sounds like a difficult piece of programming.
Re: WEEKLY RAINFALL IN THE DASHBOARD
Posted: Sun 20 Oct 2024 12:58 pm
by Polin79
It would be great a rainfall window like Ecowitt dashboard in attachment. The week start could be defined from the user in Cumulus MX settings.
Re: WEEKLY RAINFALL IN THE DASHBOARD
Posted: Sun 20 Oct 2024 2:48 pm
by broadstairs
The advantage Ecowitt has is that their stations do record weekly data in the consoles and gateways where the start of the week is defined. However CMX does not use this data but collects and collates it own.
Stuart
Re: WEEKLY RAINFALL IN THE DASHBOARD
Posted: Sun 20 Oct 2024 3:34 pm
by SamiS
HansR wrote: ↑Sun 20 Oct 2024 3:27 pm
SamiS wrote: ↑Sun 20 Oct 2024 3:19 pm
I’m not a programmer, but I think that the complexity of the task greatly depends on how CMX now handles rain internally. Basically it shouldn’t be too hard to query and sum up the cumulative daily rain amounts from dayfile backwards from today to last sunday or monday depending on the user setting. To lessen cpu load and disk i/o this could be only on startup and after that the calculation logic could happen in memory. But as said, I do not know the internals of CMX, so this is speculation.
No doubt it will make
correcting rain even more complex.
Might be a reason to review/overhaul the whole rain system

(I did not say that

)
Well, if the weekly rain would be only a calculated number in memory and not logged in any file, I don’t see how it would complicate things too much. If you make corrections to dayfile, then the value would just be re-calculated based on the corrected data. Logging the weekly rain value would of course make it very painful.
Re: WEEKLY RAINFALL IN THE DASHBOARD
Posted: Sun 20 Oct 2024 3:48 pm
by Mapantz
I can't comment on how hard it would be to add that to CMX, but we do have a rolling 24 hour rain total webtag, so it might work in a similar way?!
Re: WEEKLY RAINFALL IN THE DASHBOARD
Posted: Sun 20 Oct 2024 4:20 pm
by freddie
Mapantz wrote: ↑Sun 20 Oct 2024 3:48 pm
I can't comment on how hard it would be to add that to CMX, but we do have a rolling 24 hour rain total webtag, so it might work in a similar way?!
A rolling week would be easy enough. It's when you get into the realms of "rain this week" it becomes trickier.
Re: WEEKLY RAINFALL IN THE DASHBOARD
Posted: Sun 20 Oct 2024 4:33 pm
by mcrossley
I'll add the idea to the list of things to look at ...
MX does already allow for defining when the rain year starts.
@freddie - or anyone - want to have a go at defining a revised rain counting system? I'd love it to be simplified! The main thing is finding something that is workable with all stations.
First choice for me would be an ever increasing counter, but the bug bear is always those times users/stations reset counters or subtract from crazy counts caused by hardware faults or cleaning rain tippers.
Re: WEEKLY RAINFALL IN THE DASHBOARD
Posted: Mon 21 Oct 2024 11:25 am
by RayProudfoot
Throwing my six penneth…
Reading the dayfile.txt in Cumulus 1 I have an Access query that calculates rainfall for the last seven days plus the number of days rain fell.
Might something like that suit the OP? Nothing stored permanently of course.
Re: WEEKLY RAINFALL IN THE DASHBOARD
Posted: Sat 07 Dec 2024 8:52 pm
by Polin79
Hi Mark,
Thank you so much to have integrated weekly rainfall in the build 4063.
Paolo
mcrossley wrote: ↑Sun 20 Oct 2024 4:33 pm
I'll add the idea to the list of things to look at ...
MX does already allow for defining when the rain year starts.
@freddie - or anyone - want to have a go at defining a revised rain counting system? I'd love it to be simplified! The main thing is finding something that is workable with all stations.
First choice for me would be an ever increasing counter, but the bug bear is always those times users/stations reset counters or subtract from crazy counts caused by hardware faults or cleaning rain tippers.