A mate of mine has given me his code to calculate the number of days between 2 dates, which I wanted to use to display the number of days since last rain, something we're quite interested in here in the dryer locations.
I see there is no webtag for the date of the last rain and after searching I see someone asked if this would be a possible enhancement last March, is there any update on this?
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
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
Days since last rain
-
hills
- Posts: 692
- Joined: Sat 26 Dec 2009 8:52 am
- Weather Station: Fine Offset WH1091
- Operating System: Raspbian Buster
- Location: Crafers, South Australia
- Contact:
Re: Days since last rain
No worries, thanks for the quick response! 
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Days since last rain
It needs a bit of thinking about. The quick easy way is to trawl through the dayfile each time the tag is processed looking at the rain totals, but clearly that's not a good way of doing it. It really needs a couple of variables - days since last rain, and current number of consecutive rain days - which need to be maintained in real time, so I need to think about how to do that.
Steve
-
hills
- Posts: 692
- Joined: Sat 26 Dec 2009 8:52 am
- Weather Station: Fine Offset WH1091
- Operating System: Raspbian Buster
- Location: Crafers, South Australia
- Contact:
Re: Days since last rain
No worries, if it makes it to the list, give it a very low priority, I can alway just look at the graphs. 