Page 1 of 1

Cumulus incorrect monthly rainfall total at start of month

Posted: Tue 01 Nov 2011 7:51 am
by freddie
I am running the latest release of Cumulus, connected to a VP2 VIA Virtual VP.

Meteorological day starts at 0900 UTC.

I noticed this morning that the monthly rainfall total displayed on my web page (http://www.hosiene.co.uk/weather/cumulus/) is incorrect - it appears to be displaying the total for the past 24 hours (9.9 mm) rather than the October total of > 25 mm (can't remember what it should be).

Re: Cumulus incorrect monthly rainfall total at start of mon

Posted: Tue 01 Nov 2011 8:20 am
by steve
I've just restarted Cumulus and it's done the same, so it looks like a bug in the code which calculates the monthly total at start up, for 0900 rollovers, on the first day of the month, which is both surprising and annoying, considering how much effort I've put into supporting 0900 rollovers - and I use that myself.

We'll need to see what happens if we restart again after 0900 today.

Re: Cumulus incorrect monthly rainfall total at start of mon

Posted: Tue 01 Nov 2011 8:48 am
by steve
I've found the bug and fixed it; it looks like it was introduced when I added the 'rain season' facility. I'll upload the fixed version later today.

Re: Cumulus incorrect monthly rainfall total at start of mon

Posted: Tue 01 Nov 2011 8:55 am
by freddie
Crikey Steve - that was quick!

Thanks very much,
Freddie.