Page 1 of 1
Days since last rain
Posted: Wed 03 Feb 2010 9:46 am
by hills
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?
Re: Days since last rain
Posted: Wed 03 Feb 2010 9:51 am
by steve
I haven't done anything about it yet.
Re: Days since last rain
Posted: Wed 03 Feb 2010 10:17 am
by hills
No worries, thanks for the quick response!

Re: Days since last rain
Posted: Wed 03 Feb 2010 10:33 am
by steve
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.
Re: Days since last rain
Posted: Wed 03 Feb 2010 10:37 am
by hills
No worries, if it makes it to the list, give it a very low priority, I can alway just look at the graphs.
