Page 1 of 2
Have an error related to date and time
Posted: Mon 04 Mar 2024 3:21 am
by tokoroa.info
Starting up MX I get
Cumulus MX v.3.28.5 build 3282
Working Dir: C:\CumulusMX\
Cumulus running at:
http://localhost:8998/
http://192.168.0.101:8998/
Open the admin interface by entering one of the above URLs into a web browser.
Opening station type 1 - Davis Vantage Pro2
Last update: 2024-03-04T15:00:00
Connected to station
System.ArgumentOutOfRangeException: Year, Month, and Day parameters describe an un-representable DateTime.
at System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day)
at CumulusMX.WeatherStation.GetAllDegreeDaysGraphData(Boolean local)
at CumulusMX.WeatherStation.CreateEodGraphDataFiles()
at CumulusMX.Cumulus.Initialise(Int32 HTTPport, Boolean DebugEnabled, String startParms)
at CumulusMX.Program.RunAsAConsole(Int32 port, Boolean debug)
at CumulusMX.Program.Main(String[] args)
**** An error has occurred - please zip up the MXdiags folder and post it in the forum ****
Press Enter to terminate
Can anyone point mee at my problem.
I have a zip file of MX diags available
Re: Have an error related to date and time
Posted: Mon 04 Mar 2024 6:43 am
by HansR
Please post the diags as asked, any info of what is wrong must be in the log.
Re: Have an error related to date and time
Posted: Mon 04 Mar 2024 8:15 am
by tokoroa.info
MX diags zip
I have a problem attaching the zip despite being less than 15MiB
Have attached last service console and log
Added dayfile
Re: Have an error related to date and time
Posted: Mon 04 Mar 2024 8:29 am
by HansR
OK, thanks. Last log and console should be enough for the moment.
Having seen the contents I think Mark must look at it to see where it goes wrong in the code.
Re: Have an error related to date and time
Posted: Mon 04 Mar 2024 5:11 pm
by mcrossley
Can you post your dayfile as well please.
Re: Have an error related to date and time
Posted: Mon 04 Mar 2024 7:52 pm
by tokoroa.info
Added dayfile above
Re: Have an error related to date and time
Posted: Tue 05 Mar 2024 3:35 pm
by mcrossley
Is your Growing Degree Days start month set to "7"?
Re: Have an error related to date and time
Posted: Tue 05 Mar 2024 7:28 pm
by tokoroa.info
Growing degree days data is all at default including 7 for southern hemisphere
Re: Have an error related to date and time
Posted: Tue 05 Mar 2024 7:45 pm
by tokoroa.info
I have noticed in today.ini the following first entry
"[General]
Date=4/03/2024
Timestamp=2024-03-04T15:00:00
CurrentYear=2024
CurrentMonth=2
CurrentDay=29"
Re: Have an error related to date and time
Posted: Tue 05 Mar 2024 8:14 pm
by tokoroa.info
Also noted in the 20240306-084314.txt that things appear to go wrong with the graphs generation
2024-03-06 08:43:17.570 Generating the daily graph data files
2024-03-06 08:43:17.601 !!! Unhandled Exception !!!
System.ArgumentOutOfRangeException: Year, Month, and Day parameters describe an un-representable DateTime.
at System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day)
at CumulusMX.WeatherStation.GetAllDegreeDaysGraphData(Boolean local)
at CumulusMX.WeatherStation.CreateEodGraphDataFiles()
at CumulusMX.Cumulus.Initialise(Int32 HTTPport, Boolean DebugEnabled, String startParms)
at CumulusMX.Program.RunAsAConsole(Int32 port, Boolean debug)
at CumulusMX.Program.Main(String[] args)
Re: Have an error related to date and time
Posted: Tue 05 Mar 2024 8:50 pm
by De Hout
tokoroa.info wrote: ↑Tue 05 Mar 2024 7:45 pm
I have noticed in today.ini the following first entry
"[General]
Date=4/03/2024
Timestamp=2024-03-04T15:00:00
CurrentYear=2024
CurrentMonth=2
CurrentDay=29"
I've seen more posts like this.
In 2000 there was the millennium-bug. Is this the leap-year-bug?

Re: Have an error related to date and time
Posted: Wed 06 Mar 2024 9:33 am
by mcrossley
Well the growing degree day graph data does actually use a leap year internally, but it uses the same year every year!
Re: Have an error related to date and time
Posted: Wed 06 Mar 2024 2:27 pm
by mcrossley
Whilst I investigate this, could you try disabling the Growing Degree Day graphs for me please?
Edit your Cumulus.ini file, and find the section [Graphs], then make to following edit...
Code: Select all
[Graphs]
...
GrowingDegreeDaysVisible1=0
GrowingDegreeDaysVisible2=0
Re: Have an error related to date and time
Posted: Wed 06 Mar 2024 5:22 pm
by mcrossley
Sorry, you will also need to edit the following entries...
Code: Select all
[FTP site]
...
Create-alldailydegdaydata=0
Ftp-alldailydegdaydata=0
Copy-alldailydegdaydata=0
Re: Have an error related to date and time
Posted: Wed 06 Mar 2024 7:44 pm
by mcrossley
You will need to do the same for the temperature sum graphs if you have enabled them.
I have found the problem, it affects southern hemisphere stations that do not have any data for January in the year they started. I've fixed this for the next release.