Page 1 of 1
High Hourly Rain time problem
Posted: Tue 12 Jul 2011 12:46 pm
by JimDantin
I just updated to 1.9.2
I just noticed this issue, so I can't say that it existed before -- it's been dry here (REALLY dry!!) -- for yesterday and today's screens, 0 rain, 0 inches per hour, but the web pages show a TIME (not 00:00) for the maximum rain rates. The Cumulus display on my computer shows 00:00 time.
Re: High Hourly Rain time problem
Posted: Tue 12 Jul 2011 12:58 pm
by steve
I suspect it's some kind of rounding error (because you use inches). Did you perhaps restart Cumulus at around that time (or an hour before or after that)?
Re: High Hourly Rain time problem
Posted: Tue 12 Jul 2011 1:05 pm
by JimDantin
steve wrote:I suspect it's some kind of rounding error (because you use inches). Did you perhaps restart Cumulus at around that time (or an hour before or after that)?
Could be restart issue -- I've been working on my web pages.
Re: High Hourly Rain time problem
Posted: Tue 12 Jul 2011 1:27 pm
by steve
I think the problem is probably down to it storing the rain counter in today.ini and reading it back in again, and ending up with a slightly different value (insert Mark's usual comment here

). I'll see if I can make it a bit more intelligent.
Re: High Hourly Rain time problem
Posted: Tue 12 Jul 2011 1:47 pm
by JimDantin
Thanks -- I didn't realize that zero was different in inches or mm!!

Re: High Hourly Rain time problem
Posted: Tue 12 Jul 2011 2:01 pm
by steve
JimDantin wrote:Thanks -- I didn't realize that zero was different in inches or mm!!

The problem is that it's not zero, it's 0.0000001 or something, because of the way that floating point numbers can't be stored exactly in binary. What the code should do (and did do, originally) is to round everything to an integer, suitably scaled (e.g. store rain as an integer number of hundredths of an inch).