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

Incorrect dates fix?

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

User avatar
Andy
Posts: 44
Joined: Tue 07 Sep 2010 12:39 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 10 64bit
Location: Hawkenbury, Tunbridge Wells, Kent
Contact:

Incorrect dates fix?

Post by Andy »

Hi,
I had the previous version of Cumulus installed on a PC running Windows XP and following upgrading of the PC pre installed with Windows 7 I took the opportunity and installed the latest version of Cumulus. I took account of the date formatting for Windows 7 but this had a conflict with the way dates were being displayed in another programme (MS Money) so I reverted back to the English formatting.
Accordingly the dates being displayed http://claxton.me/weather/trends.htmare somewhat out of kilter. Is there a work around so I can have the correct dates displayed in Cumulus?
Thanks
Andy


Image
User avatar
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 dates fix?

Post by steve »

I'm not sure what you mean by this:
I took account of the date formatting for Windows 7
What exactly did you do?

And when you say:
so I reverted back to the English formatting.
Were you not using English formatting on XP? As you're in the UK, I would assume that you were using UK settings on XP, and you want to use the same on Windows 7?

If you were running with US settings for a while for some reason, then you may have some incorrectly formatted dates in the Cumulus data files; you should be able to spot them and correct them with Cumulus stopped. Your daily rain graph certainly suggests a problem with the dates in dayfile.txt.
Steve
User avatar
Andy
Posts: 44
Joined: Tue 07 Sep 2010 12:39 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 10 64bit
Location: Hawkenbury, Tunbridge Wells, Kent
Contact:

Re: Incorrect dates fix?

Post by Andy »

Thanks Steve
I followed https://cumulus.hosiene.co.uk/viewtopic.php?f=2&t=2837 namely
1) Open Regional and Language Options
2) Under "Format" pick anything else. (eg: English (United States)).
3) Press "Apply"
4) Under "Format" pick your desired locale (eg: English (United Kingdom)).
5) Press OK

Indeed under XP the format settings were English and I would wish to maintain the same under Windows 7. However as you surmise for a period the formatting was "English (United States)"
I have had a look at the dayfile.txt which I have attached. I switched to Windows 7 last month, 17 April, and I see from the last line of the dayfile that the date is shown as 31/12/99. Would a simple solution be to delete that line without messing up the historic data too much? Or failing that could I manually correct the entries in the dayfile - but which ones?
Thanks
You do not have the required permissions to view the files attached to this post.
Andy


Image
User avatar
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 dates fix?

Post by steve »

Yes, deleting that last line in dayfile.txt may well sort things out, because you already have an entry for the 6th. You also need to check your May log file to see if any dates in there have been affected.
Steve
User avatar
Andy
Posts: 44
Joined: Tue 07 Sep 2010 12:39 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 10 64bit
Location: Hawkenbury, Tunbridge Wells, Kent
Contact:

Re: Incorrect dates fix?

Post by Andy »

Steve,
I have deleted the line 31/12/99. Also checked the May log file but there are no unusual date entries.
The problem is still there - in fact the rain fall of this morning has disappeared from the web but shows on Cumulus as being yesterday!
You do not have the required permissions to view the files attached to this post.
Andy


Image
User avatar
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 dates fix?

Post by steve »

I think perhaps that the Windows 7 date format thing is a red herring. It looks like you had a 'rollover' problem, possibly as a result of the clock on your PC doing something strange - hence the 31/12/99 date in dayfile.txt.

If you zip up the diags folder and attach it, I'll see if I can see what happened. The solution will probably be to 'rewind' using one of the backups from the Cumulus backup folder.
Steve
User avatar
Andy
Posts: 44
Joined: Tue 07 Sep 2010 12:39 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 10 64bit
Location: Hawkenbury, Tunbridge Wells, Kent
Contact:

Re: Incorrect dates fix?

Post by Andy »

Steve,
Thanks for your help. I attach what I hope are the correct files.
You do not have the required permissions to view the files attached to this post.
Andy


Image
User avatar
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 dates fix?

Post by steve »

Yes, the clock on your PC apparently reset to 1st Jan 2000 at 00:00 for a short period, which completely confused Cumulus:

07/05/2011 14:10:00.894 : Writing today.ini, LastUpdateTime = 07/05/2011 14:10:00 raindaystart = 258 rain counter = 261
07/05/2011 14:15:00.966 : Writing today.ini, LastUpdateTime = 07/05/2011 14:15:00 raindaystart = 258 rain counter = 261
01/01/2000 00:00:00.647 : === Day reset, today = 1
01/01/2000 00:00:00.647 : === Day reset for 31/12/1999
01/01/2000 00:00:00.687 : Raintotal = 261 Raindaystart = 258
01/01/2000 00:00:00.687 : Rainyesterday (calibrated) set to 3
01/01/2000 00:00:00.730 : New month starting - 1
01/01/2000 00:00:00.730 : New year starting
01/01/2000 00:00:00.730 : New rain season starting
01/01/2000 00:00:00.730 : Raindaystart set to 261
01/01/2000 00:00:00.748 : Writing today.ini, LastUpdateTime = 07/05/2011 14:15:00 raindaystart = 261 rain counter = 261
01/01/2000 00:00:00.748 : Write yesterday file: Date = 01/01/2000
01/01/2000 00:00:00.782 : === Day reset complete
01/01/2000 00:00:00.782 : Midnight rain reset, count = 261.00 time = 01/01/2000
01/01/2000 00:00:00.802 : Writing today.ini, LastUpdateTime = 01/01/2000 raindaystart = 261 rain counter = 261
07/05/2011 14:15:24.191 : Writing today.ini, LastUpdateTime = 07/05/2011 14:15:24 raindaystart = 261 rain counter = 261
07/05/2011 14:16:07.389 : Error writing today.ini: Unable to write to C:\Cumulus\data\today.ini

Perhaps this was around the time you were changing your settings?

Anyway, whatever the cause, the simplest solution is to stop Cumulus and copy the files from the backup folder that was created when you started Cumulus here:

07/05/2011 07:25:19.263 : Cumulus 1.9.1 Build 989 startup

Copy the files into the data folder and start Cumulus again. Should fix everything.
Steve
User avatar
Andy
Posts: 44
Joined: Tue 07 Sep 2010 12:39 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 10 64bit
Location: Hawkenbury, Tunbridge Wells, Kent
Contact:

Re: Incorrect dates fix?

Post by Andy »

Steve,
Thanks but that didn't seem to fix the dates shown in the Trends; Rain & Temp.
Would it be possible to use the data from the previous version of Cumulus 1.9.0? Attached is the the zipped backup file of the data from the XP PC which ran that version of Cumulus.
You do not have the required permissions to view the files attached to this post.
Andy


Image
User avatar
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 dates fix?

Post by steve »

You have another line in dayfile.txt with a date of 31/12/99:

27/04/11,17.4,315,09:23,7.3,23:50,18.3,16:00,30.08,17:55,30.16,07:14,0.0,00:19,0.0,12.3,51.9,7.6,11:42,35,12:24,80,06:19,0.00,0.0,18.3,16:00,16.7,14:24,4.9,22:57,0.0,00:19,6.7,06:19,6.5,07:58,-0.9,20:09
31/12/99,19.0,45,09:40,5.4,04:20,17.9,12:49,29.90,14:02,30.09,00:20,0.0,00:20,0.0,9.4,34.8,9.2,09:47,51,13:43,90,04:50,0.00,0.0,17.9,12:49,16.9,12:49,3.0,07:35,0.0,00:20,4.2,07:35,7.9,12:49,2.4,00:20
28/04/11,15.2,45,16:45,10.4,23:49,17.0,17:42,29.85,17:32,29.90,14:43,0.0,00:00,0.0,13.2,16.6,8.3,16:39,57,00:00,85,21:19,0.00,0.0,17.0,17:42,16.4,17:44,8.0,22:30,0.0,00:00,9.5,22:30,9.2,18:24,6.7,00:00
Steve
User avatar
Andy
Posts: 44
Joined: Tue 07 Sep 2010 12:39 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 10 64bit
Location: Hawkenbury, Tunbridge Wells, Kent
Contact:

Re: Incorrect dates fix?

Post by Andy »

Steve,
Thanks for your patience. The dates are now correct.
Thanks again for your help.
Andy


Image
User avatar
Andy
Posts: 44
Joined: Tue 07 Sep 2010 12:39 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 10 64bit
Location: Hawkenbury, Tunbridge Wells, Kent
Contact:

Re: Incorrect dates fix?

Post by Andy »

I seem to have acquired a ‘future’ Lowest Apparent Temperature for August 2011 of all months. I started Cumulus on 31 August last year, 2010.
I have looked in the Dayfile.txt and alltime but can’t find an entry so I guess that I am in the worng area. Grateful for a pointer as to which file I need to check.
You do not have the required permissions to view the files attached to this post.
Andy


Image
User avatar
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 dates fix?

Post by steve »

The all-time records are in alltime.ini, you can either edit that with Cumulus stopped, or use the built-in editor.

I suspect you've had that entry for a while, given how low the temperature is.
Steve
User avatar
Andy
Posts: 44
Joined: Tue 07 Sep 2010 12:39 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 10 64bit
Location: Hawkenbury, Tunbridge Wells, Kent
Contact:

Re: Incorrect dates fix?

Post by Andy »

Steve,
Yes I guess it has been there since May (this year :lol: )
With Cumulus stopped using the Toolbox I deleted the date and time entry "03/08/2011 06:49:00" and with Cumulus restarted I ran the All time record editor and Fetch log data. So somewhere along the lines I’ve messed up.
Cumulus - All time records.jpg
What I also achieved has been to change the previous records for Rain (attached), Wind, Humidity and Pressure.
Cumulus - Rain.jpg
Is there a simple way for a budding Luddite to rectify this?
You do not have the required permissions to view the files attached to this post.
Andy


Image
User avatar
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 dates fix?

Post by steve »

I don't understand what you want to do. Can you not use those entries fetched from dayfile.txt in the editor?
Steve
Post Reply