Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024

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

Have an error related to date and time

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

tokoroa.info
Posts: 8
Joined: Sat 24 Feb 2024 3:03 am
Weather Station: Davis v2
Operating System: Win 11

Have an error related to date and time

Post 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
User avatar
HansR
Posts: 6058
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Have an error related to date and time

Post by HansR »

Please post the diags as asked, any info of what is wrong must be in the log.
Hans

https://meteo-wagenborgen.nl
CMX build 4023+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
tokoroa.info
Posts: 8
Joined: Sat 24 Feb 2024 3:03 am
Weather Station: Davis v2
Operating System: Win 11

Re: Have an error related to date and time

Post 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
You do not have the required permissions to view the files attached to this post.
Last edited by tokoroa.info on Mon 04 Mar 2024 7:51 pm, edited 1 time in total.
User avatar
HansR
Posts: 6058
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Have an error related to date and time

Post 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.
Hans

https://meteo-wagenborgen.nl
CMX build 4023+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
mcrossley
Posts: 12951
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Have an error related to date and time

Post by mcrossley »

Can you post your dayfile as well please.
tokoroa.info
Posts: 8
Joined: Sat 24 Feb 2024 3:03 am
Weather Station: Davis v2
Operating System: Win 11

Re: Have an error related to date and time

Post by tokoroa.info »

Added dayfile above
User avatar
mcrossley
Posts: 12951
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Have an error related to date and time

Post by mcrossley »

Is your Growing Degree Days start month set to "7"?
tokoroa.info
Posts: 8
Joined: Sat 24 Feb 2024 3:03 am
Weather Station: Davis v2
Operating System: Win 11

Re: Have an error related to date and time

Post by tokoroa.info »

Growing degree days data is all at default including 7 for southern hemisphere
tokoroa.info
Posts: 8
Joined: Sat 24 Feb 2024 3:03 am
Weather Station: Davis v2
Operating System: Win 11

Re: Have an error related to date and time

Post 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"
tokoroa.info
Posts: 8
Joined: Sat 24 Feb 2024 3:03 am
Weather Station: Davis v2
Operating System: Win 11

Re: Have an error related to date and time

Post 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)
User avatar
De Hout
Posts: 36
Joined: Thu 09 Oct 2014 5:40 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows 11
Location: Alkmaar, The Netherlands
Contact:

Re: Have an error related to date and time

Post 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? :idea:
CU1 Weather Station Website: http://www.alkmaarweer.nl
User avatar
mcrossley
Posts: 12951
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Have an error related to date and time

Post by mcrossley »

Well the growing degree day graph data does actually use a leap year internally, but it uses the same year every year!
User avatar
mcrossley
Posts: 12951
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Have an error related to date and time

Post 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
User avatar
mcrossley
Posts: 12951
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Have an error related to date and time

Post 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
User avatar
mcrossley
Posts: 12951
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Have an error related to date and time

Post 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.
Post Reply