Page 1 of 1

Incorrect date attributed on "this month" page

Posted: Mon 14 Mar 2016 11:37 am
by freddie
MX running on Ubuntu 15.10, extracting data from VP2 via Virtual VP. 0900 UTC rollover.

The "this month" page on my site (http://www.hosiene.co.uk/weather/thismonth.htm) has the wrong date attributed to the "Highest Daily Range" of temperature. It currently states that the highest daily range of 11.7 degrees occurred on the 14th. Today is the 14th, and the range recorded so far at 1136 UTC is 4.1 degrees.

Re: Incorrect date attributed on "this month" page

Posted: Mon 14 Mar 2016 12:00 pm
by steve
Did it actually happen yesterday? It could be that it's not doing the date offset for 0900 start of day for that item.

Re: Incorrect date attributed on "this month" page

Posted: Mon 14 Mar 2016 12:04 pm
by freddie
steve wrote:Did it actually happen yesterday?
Yes. Max yesterday was 12.7, min 1.1, which gives a range of 11.6 which is close enough allowing for rounding.
steve wrote:It could be that it's not doing the date offset for 0900 start of day for that item.
That's what I thought.

Re: Incorrect date attributed on "this month" page

Posted: Mon 14 Mar 2016 12:12 pm
by steve
The end of day reset code subtracts an hour instead of a day (which C1 does correctly) to get the day that's just ended; you can see that in the "Day reset for..." message in the diags file.

Re: Incorrect date attributed on "this month" page

Posted: Mon 14 Mar 2016 12:32 pm
by freddie
steve wrote:The end of day reset code subtracts an hour instead of a day (which C1 does correctly) to get the day that's just ended; you can see that in the "Day reset for..." message in the diags file.
I've copied the diagnostic messages printed for today - if that helps.

Code: Select all

2016-03-14 09:00:00.439 Hour changed:9
2016-03-14 09:00:00.439 Calculating sunrise and sunset times
2016-03-14 09:00:00.439 Sunrise: 06:27:13
2016-03-14 09:00:00.439 Sunset : 18:14:38
2016-03-14 09:00:00.439 Tomorrow sunrise: 06:24:52
2016-03-14 09:00:00.439 Tomorrow sunset : 18:16:25
2016-03-14 09:00:00.439 Tomorrow length diff: 248
2016-03-14 09:00:00.453 === Day reset, today = 14
2016-03-14 09:00:00.453 === Day reset for 14/03/2016 00:00:00
2016-03-14 09:00:00.461 Dayfile.txt entry:
2016-03-14 09:00:00.461 13/03/16,10.4,90,12:29,1.1,01:11,12.7,13:56,1034.00,15:35,1036.20,08:57,0.0,09:00,0.0,6.5,69.6,6.5,03:03,54,16:23,92,22:43,0.00,0.0,12.7,13:56,9.9,14:21,-1.2,01:24,0.0,09:00,-0.2,03:03,8.1,09:13,-0.5,01:07,89,11.8,0.0,0,09:00,0.0,09:00
2016-03-14 09:00:00.461 Dayfile.txt opened for writing
2016-03-14 09:00:00.461 Writing entry to dayfile.txt
2016-03-14 09:00:00.462 Raincounter = 142.6 Raindaystart = 142.6
2016-03-14 09:00:00.462 Rainyesterday (calibrated) set to 0
2016-03-14 09:00:00.463 RainDayThreshold = -1
2016-03-14 09:00:00.463 rdt1000=200 ry1000=0
2016-03-14 09:00:00.463 Yesterday was a dry day
2016-03-14 09:00:00.463 Consecutive dry days = 4
2016-03-14 09:00:00.465 Raindaystart set to 142.6
2016-03-14 09:00:00.465 StartofdayET set to 0
2016-03-14 09:00:00.466 Writing today.ini, LastUpdateTime = 14/03/2016 08:59:00 raindaystart = 142.6 rain counter = 142.6
2016-03-14 09:00:00.466 Writing yesterday.ini
2016-03-14 09:00:00.466 Written yesterday.ini
2016-03-14 09:00:00.467 === Day reset complete
2016-03-14 09:00:00.467 Now recording data for day=14 month=3 year=2016
2016-03-14 09:00:00.467 Writing log entry for 14/03/2016 09:00:00
2016-03-14 09:00:00.467 max gust: 8.7
2016-03-14 09:00:00.467 Written log entry for 14/03/2016 09:00:00
2016-03-14 09:00:00.468 Writing today.ini, LastUpdateTime = 14/03/2016 09:00:00 raindaystart = 142.6 rain counter = 142.6
2016-03-14 09:00:00.490 Creating backup folder backup/daily/20160314090000/
2016-03-14 09:00:00.495 Created backup folder backup/daily/20160314090000/

Re: Incorrect date attributed on "this month" page

Posted: Mon 14 Mar 2016 12:55 pm
by steve
freddie wrote:I've copied the diagnostic messages printed for today - if that helps.
Thanks, but not really - I just said what the problem was. Sorry if I wasn't clear.

Re: Incorrect date attributed on "this month" page

Posted: Mon 14 Mar 2016 1:18 pm
by freddie
steve wrote:I just said what the problem was.
Indeed you did. My excuse - it's Monday :-)