Page 1 of 1

Release 3120 - NOAA Reports

Posted: Mon 22 Mar 2021 11:38 am
by Hatkit
I'm having issues displaying the NOAA reports on the new template. All my reports are in standard NOAA format and currently ftp'd direct to the root folder of my website. However, the reports page displays the message "Did not find the required report" and none of the reports are visible. I'm assuming there is a subtle coding editing issue somewhere, but I'd be grateful for some guidance in how to put it right.

www.treviskeyweather.co.uk

Re: Release 3120 - NOAA Reports

Posted: Mon 22 Mar 2021 11:41 am
by Mapantz
You're missing a slash in your directory setting..

/NOAA-reports

Needs to be /NOAA-reports/

Re: Release 3120 - NOAA Reports

Posted: Mon 22 Mar 2021 12:06 pm
by ConligWX
edit your /js/noaarpts.js on the webserver and change:

Code: Select all

let rptPath = '/NOAA-reports';
to:

Code: Select all

let rptPath = 'NOAA-reports/';

Re: Release 3120 - NOAA Reports

Posted: Mon 22 Mar 2021 1:18 pm
by Hatkit
Many thanks. It seems to be fine now.

Re: Release 3120 - NOAA Reports

Posted: Tue 23 Mar 2021 7:53 am
by The Dalek Hunter
I have just realised I had not turned on NOAA reports for my site.

I have activated them now via the Admin Interface - and checked and re-generated them. Do I now have to wait for rollover for them to appear on my website?

https://longsuttonweather.co.uk

Re: Release 3120 - NOAA Reports

Posted: Tue 23 Mar 2021 8:03 am
by ConligWX
The Dalek Hunter wrote: Tue 23 Mar 2021 7:53 am I have just realised I had not turned on NOAA reports for my site.

I have activated them now via the Admin Interface - and checked and re-generated them. Do I now have to wait for rollover for them to appear on my website?

https://longsuttonweather.co.uk
they will appear when you edit /js/noaarpts.js as stated in my reply earlier.

viewtopic.php?p=152555#p152555

you need to point the rptPath to where your NOAA Reports are in your webserver.

mine is like so:

Code: Select all

let rptPath = 'NOAA-reports/';  
yours is like this:

Code: Select all

let rptPath = '';

Re: Release 3120 - NOAA Reports

Posted: Tue 23 Mar 2021 8:51 am
by The Dalek Hunter
Thanks for the reply.

In the Admin Interface NOAA FTP Options section it says, regarding the upload directory

"Leaving this blank will mean the reports are placed in the location specified in the main Internet Settings FTP folder" and I have left it blank.

So should I set it to let rptPath = '/';

It also says "Enabling this means your NOAA reports will be FTP'd to the folder below after they are created during the daily rollover"

There is no sign of any NOAA reports on my website. I only enabled them this morning.

Re: Release 3120 - NOAA Reports

Posted: Tue 23 Mar 2021 9:22 am
by ConligWX
The Dalek Hunter wrote: Tue 23 Mar 2021 8:51 am Thanks for the reply.

In the Admin Interface NOAA FTP Options section it says, regarding the upload directory

"Leaving this blank will mean the reports are placed in the location specified in the main Internet Settings FTP folder" and I have left it blank.

So should I set it to let rptPath = '/';

It also says "Enabling this means your NOAA reports will be FTP'd to the folder below after they are created during the daily rollover"

There is no sign of any NOAA reports on my website. I only enabled them this morning.
Personally I would create a folder for your reports to go into. otherwise your root folder will get messy. yeah midnight is when the NOAA reports will be created. if you have reports already created on your CumulusMX server then just copy them over to the website server now.

Re: Release 3120 - NOAA Reports

Posted: Tue 23 Mar 2021 9:33 am
by The Dalek Hunter
Ok - copied reports from CMX server to website and let rptPath = '/noaa/'

All working apart from some characters not displaying correctly

Lat: N 52� 46' 35"

and

(�C)

https://longsuttonweather.co.uk/noaareport.htm

Re: Release 3120 - NOAA Reports

Posted: Tue 23 Mar 2021 9:50 am
by mcrossley
Those characters will be because the reports were not generated using the UTF-8 option.

Re: Release 3120 - NOAA Reports

Posted: Tue 23 Mar 2021 10:02 am
by The Dalek Hunter
UTF-8 enabled and reports regenerated and uploaded - many thanks