Page 1 of 3

NOAA Reports

Posted: Sat 06 May 2023 8:13 am
by Nottub
I wondered of there is a limit to how may NOAA Reports CMX can process/ display.

I have records back to 2000, CMX Reports Folder has NOAAYR2000, NOAAYR2001, NOAAYR2002, (No NOAAYR2003?), but then has every other month to date. On the NOAA report page (local) however the last year I can select is 2004.
Image

With regards the Monthly records I do have every month (except 2003). Which I'm sure I was manually creating using the 'Load report' and then 'Re-Generate Report'. However I can't load 2003 to do this, it just doesn't show in the drop down list.

My intention was to generate the missing reports in CMX, then upload to my web page.

Now since there are 20 years of year reports selectable, I was wondering is this is a maximum limit that I can change, or just a coincidence?

Thanks as always
Martyn

Re: NOAA Reports

Posted: Sat 06 May 2023 8:32 am
by HansR
I don't quite get your point: if I display on your website I get years and months from 2000 (September) onwards.
So are you talking about the display in the interface or in the website (which looks good to me).
If the website is the problem, try ctrl-F5?

[EDIT:]Although I do agree that the months of 2003 have a hickup and an error in display.

Re: NOAA Reports

Posted: Sat 06 May 2023 9:03 am
by Nottub
That's part of the problem, 2003.

I can't generate the missing NOAA files in CumulusMX, to allow me to add them to the website.

The CMX interface only shows 2004 onwards.


Thanks

Martyn

Re: NOAA Reports

Posted: Sat 06 May 2023 9:16 am
by HansR
Nottub wrote: Sat 06 May 2023 9:03 am That's part of the problem, 2003.

I can't generate the missing NOAA files in CumulusMX, to allow me to add them to the website.

The CMX interface only shows 2004 onwards.
Ah, OK. The interface is Marks problem ;)
But I would advise to (with DEBUG and maybe DATA logging on) try to generate one month of 2003 and when done (and failed) get the MXdiags log and post it here so we can see all info available and possibly what CMX complaints are.

Re: NOAA Reports

Posted: Sat 06 May 2023 9:21 am
by Nottub
Thanks Hans, Debug and Data logging on.

However I can't try to create any 2003 NOAA files to generate an error, as I can't access 2003 from the menu.

Thanks for being so quick to respond. Much appreciated.


Martyn

Re: NOAA Reports

Posted: Sat 06 May 2023 9:46 am
by HansR
Ah... Well, then you can switch DEBUG and DATA logging off again and wait for some interface competence to comment :lol:

Re: NOAA Reports

Posted: Sat 06 May 2023 12:56 pm
by mcrossley
The interface uses the records began date to determine the first year to put in the drop downs

Re: NOAA Reports

Posted: Sat 06 May 2023 3:59 pm
by Nottub
I’ll check that Mark but I’m sure that I initially used 2000 as the start date.

I’ll check when I get home.

Kind regards

Martyn

Re: NOAA Reports

Posted: Sat 06 May 2023 4:15 pm
by Nottub
Just looked in the Cumulus.ini file and

‘StartDateIso=2000-09-01’.

So presumably I should see NOAA Yearly Report option for 2003, 2002 and 2001 in CumulusMX dashboard. Which I don’t.

In the NOAA Monthly Report since I can’t see these years I can’t ‘Load Report’ because I can’t select them, nor can I (Re)Generate Report for the same reason.

Could I just create and upload to the server the appropriate NOAA reports from Weatherlink?

Martyn

Re: NOAA Reports

Posted: Sat 06 May 2023 4:40 pm
by mcrossley
Ah! There is a sanity check in the JS code for the page. If the year is before 2004 (when Cumulus was released) it sets it to 2004.

If you edit noaayearreort.html you will see the lines...

Code: Select all

                if (start < 2004 || start > yr) {
                    start = 2004;
                }
Just delete those and you should be OK. Same in noaamonthreport.html

And yes, you could just copy the report files from WeatherLink - though you may end up with ANSI/UTF-8 codding "glitches" - degree symbols corrupted.

Re: NOAA Reports

Posted: Sat 06 May 2023 5:36 pm
by Nottub
Inside CMX I can only find noaareport.htm file in the webfiles folder.

Within that I can't see any reference to the lines suggested.

Perhaps I'm missing something. Am I looking in the right place?


Martyn

Re: NOAA Reports

Posted: Sat 06 May 2023 6:08 pm
by PaulMy
Look in CumulusMX\interface

Enjoy,
Paul

Re: NOAA Reports

Posted: Sat 06 May 2023 6:21 pm
by Nottub
Thank you Paul,

Found it and sorted it.

Smashing :D

Thanks for pointing me in the right direction.

Martyn

Re: NOAA Reports

Posted: Sun 07 May 2023 7:45 am
by Nottub
Just one last question: :?:

1) what source data is used to generate the NOAA files if i (Re-create) them, is it from the 'dayfile.txt' data, or the specific 'mmmyylog.txt' file for that specific month?

2) which bit of code within CMX is used when re-creating a NOAA file?


Thanks

Martyn

Re: NOAA Reports

Posted: Sun 07 May 2023 9:13 am
by mcrossley
1) Both.
2) The NOAA Reports code?