Page 1 of 1

Cumulative totals for rainfall don't show

Posted: Wed 13 Jun 2012 11:17 am
by yladnhoj
My web page has, since 4th June, stopped showing the cumulative totals for rainfall. (see http://www.daly.co.uk/weather) Every thing was fine before this date. Any rainfall is still being measured and shown for the current day and the trends graph remains correct. The readings are also shown correctly in the Averages and Extremes for 2012 and for June 2012. It seems the web page is not reading the stored data. Any suggestions on what might have gone wrong would be appreciated?

Re: Cumulative totals for rainfall don't show

Posted: Wed 13 Jun 2012 7:19 pm
by steve
By 'cumulative totals', you mean the 'this month' and 'this year' totals? Are you using the 'standard' indexT.htm template, or have you modified it in some way?

If you zip up the diags folder, your dayfile.txt file and your indexT.htm file, and attach it, I'll take a look.

Re: Cumulative totals for rainfall don't show

Posted: Thu 14 Jun 2012 10:04 am
by steve
Here's the problem:

14/06/2012 10:27:45.277 : GetRainfallTotals: Error on line 135 of dayfile.txt: '''' is not a valid integer value

and

14/06/2012 10:27:50.449 : Error plotting charts at line 135 of dayfile.txt: '''' is not a valid integer value
14/06/2012 10:27:50.449 : Please correct the error by editing dayfile.txt
14/06/2012 10:27:50.512 : Error plotting charts at line 136 of dayfile.txt: '''' is not a valid integer value
14/06/2012 10:27:50.574 : Please correct the error by editing dayfile.txt
14/06/2012 10:27:50.637 : Error plotting charts at line 137 of dayfile.txt: '''' is not a valid integer value
14/06/2012 10:27:50.637 : Please correct the error by editing dayfile.txt
14/06/2012 10:27:50.668 : Error plotting charts at line 138 of dayfile.txt: '''' is not a valid integer value
14/06/2012 10:27:50.715 : Please correct the error by editing dayfile.txt
14/06/2012 10:27:50.746 : Error plotting charts at line 139 of dayfile.txt: '''' is not a valid integer value
14/06/2012 10:27:50.746 : Please correct the error by editing dayfile.txt
14/06/2012 10:27:50.840 : Error plotting charts at line 140 of dayfile.txt: '''' is not a valid integer value
14/06/2012 10:27:50.887 : Please correct the error by editing dayfile.txt
14/06/2012 10:27:50.918 : Error plotting charts at line 141 of dayfile.txt: '''' is not a valid integer value
14/06/2012 10:27:50.918 : Please correct the error by editing dayfile.txt

It should have flashed the error light to bring that to your attention - did that not happen? Perhaps the older build of 1.9.2 you're using doesn't do that for this particular error.

This is the problem in the file:
dayfile.png
I'm afraid I have no idea where those strange lines came from, but it looks like you just need to delete them, then all should be OK after a restart of Cumulus.

Re: Cumulative totals for rainfall don't show

Posted: Fri 15 Jun 2012 10:19 am
by yladnhoj
Thanks very much for looking at it Steve. I deleted the offending lines and it is now all back to normal. I've no idea how the lines got there since I haven't touched the file before! Next time I'll know what to look for! I thought the error light only blinked when it didn't receive data from the weather station. I believe I had noticed it blinking but didn't realise that would indicate a problem with the files.

Re: Cumulative totals for rainfall don't show

Posted: Fri 15 Jun 2012 10:33 am
by steve
The error light flashes for various reasons; if you click on it, you should get a window with messages telling you why it's complaining.