Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

NOAA reports

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

GeoffinTavy
Posts: 8
Joined: Sat 16 Jun 2012 12:14 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Tavistock, Devon

NOAA reports

Post by GeoffinTavy »

I am having difficulty getting the monthly NOAA reports to display in MX 3.14.1 build 3160. I can generate the reports without problems, upload them to my website after the midnight rollover, but the "Reports" page keeps telling me it can't find the requested report. To confuse me further, the page defaults to the NOAA annual report, and displays that OK when you select the Reports page - just one month at the moment. But when I try to use the drop-down menu to select the monthly report for January 2022 it tells me it can't be found. Also tells me it can't find the Annual report for 2022 either although it is clearly displaying it. I don't have much knowledge of java but noaarpts.js seems to set the report path then display the current annual report while it loads the other reports for the drop down menu. I am probably misunderstanding but it seems to be working up to that point. Where is the NOAA report page looking for its data? Is this where it is failing? Help gratefully received!
User avatar
philpugh
Posts: 384
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 11 (RPi4)
Location: Antrobus, Cheshire, UK
Contact:

Re: NOAA reports

Post by philpugh »

Hi,
You need to edit noaarpts.js to set the report path to point to your folder to where the reports are being copied.

In my case (for example) all the NOAA reports are stored in a folder NOAA which is directly below the main web page folder and the set path line in noaarpts,js is :
let rptPath = 'NOAA/'; // Your path should have a trailing "/", eg. 'Reports/'
Also check that the individual reports have the correct file name format := eg NOAAMOmmyy.txt for monthly reports and NOAAYRyyyy.txt for yearly reports. You should have :

NOAAMO0122.txt and NOAAYR2022.txt so far!

If you have been editing things already I would try flushing your browser cache to ensure the correct version is being used.
Phil Pugh
GW1000 + WH65/WH57/WH31; HP2551 + WS68/WH40A; GW2001 WittBoy
CumulusMX V4 / CUtils V7
Raspberry Pi 5 64bit
http://goosegate.uk/
GeoffinTavy
Posts: 8
Joined: Sat 16 Jun 2012 12:14 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Tavistock, Devon

Re: NOAA reports

Post by GeoffinTavy »

Thanks Phil.

I've copied the relevant bit of noaarpts.js from a server download:

let rptPath = 'htdocs/Reports/'; // Your path should have a trailing "/", eg. 'Reports/'
let startYear, endYear;
let startMonth, endMonth;

etc etc

so I see this as setting the path to 'Reports' as a subfolder of 'htdocs' which is what my service provider uses as the starting folder for 'index.htm'. I am sending the reports from MX to this folder, I can see the uploads in the directory 'Reports' as NOAAMO0122.txt and NOAAYR2022.txt

Does that clarify what I've done?
freddie
Posts: 2471
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: NOAA reports

Post by freddie »

You don't need the htdocs bit. htdocs is the "document root' of your webserver, so your entry should be Reports/ which is where your NOAA files are relative to the webserver document root'.
Freddie
Image
GeoffinTavy
Posts: 8
Joined: Sat 16 Jun 2012 12:14 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Tavistock, Devon

Re: NOAA reports

Post by GeoffinTavy »

Thanks Freddie I'll take that out, I do need it in the upload path though otherwise I get the NOAA reports dumped in a directory above the htdocs root. One thing I've just discovered is that there was a copy of the annual report in the htdocs root, if I delete that then the NOAA page on the website doesn't find anything to load despite it looking to me as if the Reports folder is where the noaarpts.js is pointing.
freddie
Posts: 2471
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: NOAA reports

Post by freddie »

Yes, definitely needed in the upload path. Talking of which, what is your upload path?
Freddie
Image
GeoffinTavy
Posts: 8
Joined: Sat 16 Jun 2012 12:14 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Tavistock, Devon

Re: NOAA reports

Post by GeoffinTavy »

htdocs/Reports. The two generated NOAA reports appear in the directory Reports which is in htdocs and that's what I would have expected. Can't seem to point the MX website page to it though.
freddie
Posts: 2471
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: NOAA reports

Post by freddie »

Did you try :'Reports/' in noaarpts.js?
Freddie
Image
GeoffinTavy
Posts: 8
Joined: Sat 16 Jun 2012 12:14 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Tavistock, Devon

Re: NOAA reports

Post by GeoffinTavy »

Yes I did, in fact that's where I started. Then tried adding htdocs which as you said I didn't need. I feel sure this is something quite simple I've done or not done!
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: NOAA reports

Post by mcrossley »

It all works for me, so it looks like you fixed it.
Did you force a reload of the page - Ctrl-F5 - each time you edited the js file?
GeoffinTavy
Posts: 8
Joined: Sat 16 Jun 2012 12:14 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Tavistock, Devon

Re: NOAA reports

Post by GeoffinTavy »

No I didn't Mark. I see this morning the files were uploaded to Reports at a few seconds after midnight, but my website page just doesn't see them so I can't see beyond a pathing issue somewhere. When I find time later today I may reload my CMX 3160 and modify menu.js to work with my website as usual, see if anything changes.
When you say it works fine for you do you mean that looking at my website you can see the NOAA reports? Or is it your website that works fine?
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: NOAA reports

Post by mcrossley »

Opps sorry ignore that - I had click the link to Phil's web site above.

What is the link to your site?
GeoffinTavy
Posts: 8
Joined: Sat 16 Jun 2012 12:14 pm
Weather Station: Davis VP2
Operating System: Windows 10
Location: Tavistock, Devon

Re: NOAA reports

Post by GeoffinTavy »

tavyweather.info, I set it up in 2016 to keep my kids in the Midlands up to date with how our garden is progressing as well as what the weather is like. The CMX webpages are in 'Weather detail'.
User avatar
philpugh
Posts: 384
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 11 (RPi4)
Location: Antrobus, Cheshire, UK
Contact:

Re: NOAA reports

Post by philpugh »

Geoff,

The reports page is looking as if it is working correctly from here!

It is pointing to a caching issue with your browser - try connecting with a different browser or completely erase your history (the first is less of a hassle!)
You do not have the required permissions to view the files attached to this post.
Phil Pugh
GW1000 + WH65/WH57/WH31; HP2551 + WS68/WH40A; GW2001 WittBoy
CumulusMX V4 / CUtils V7
Raspberry Pi 5 64bit
http://goosegate.uk/
User avatar
philpugh
Posts: 384
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 11 (RPi4)
Location: Antrobus, Cheshire, UK
Contact:

Re: NOAA reports

Post by philpugh »

Geoff

Your garden look amazing - a lot of time invested there I think!
Phil Pugh
GW1000 + WH65/WH57/WH31; HP2551 + WS68/WH40A; GW2001 WittBoy
CumulusMX V4 / CUtils V7
Raspberry Pi 5 64bit
http://goosegate.uk/
Post Reply