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.
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Incorrect date attributed on "this month" page
Moderator: mcrossley
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Incorrect date attributed on "this month" page
Did it actually happen yesterday? It could be that it's not doing the date offset for 0900 start of day for that item.
Steve
-
freddie
- Posts: 2870
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 24.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
Re: Incorrect date attributed on "this month" page
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:Did it actually happen yesterday?
That's what I thought.steve wrote:It could be that it's not doing the date offset for 0900 start of day for that item.
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Incorrect date attributed on "this month" page
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.
Steve
-
freddie
- Posts: 2870
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 24.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
Re: Incorrect date attributed on "this month" page
I've copied the diagnostic messages printed for today - if that helps.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.
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/- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Incorrect date attributed on "this month" page
Thanks, but not really - I just said what the problem was. Sorry if I wasn't clear.freddie wrote:I've copied the diagnostic messages printed for today - if that helps.
Steve
-
freddie
- Posts: 2870
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 24.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
Re: Incorrect date attributed on "this month" page
Indeed you did. My excuse - it's Mondaysteve wrote:I just said what the problem was.