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 4017) - 17 March 2024

Legacy Cumulus 1 release v1.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

JavaScript 'Viewer' of Cumulus generated NOAA style reports

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

bnwrx
Posts: 464
Joined: Wed 25 Feb 2009 12:01 am
Weather Station: Ambient WS2095 (Fine/Offset)
Operating System: Windows 10 64bit
Location: Woodland Park, Colorado USA
Contact:

Re: JavaScript 'Viewer' of Cumulus generated NOAA style repo

Post by bnwrx »

NOAA FTP log.txt
steve wrote:If www/realtimegauges.txt is getting your realtimegauges.txt file to the right place, then your NOAA reports path is www/NOAA-reports

It looks like public_html and www are equivalent.
Steve and Beteljuice, this idea worked... :clap:

Thank you so much for helping with this!
Here is copy of partial FTP log this morning:
You do not have the required permissions to view the files attached to this post.
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: JavaScript 'Viewer' of Cumulus generated NOAA style repo

Post by beteljuice »

Here is copy of partial FTP log this morning:
... but that doesn't tell us what's happening in the 'normal' uploads !

Ne'er mind, If it's working, we'll wait until the next problem :D
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
Darknstormy
Posts: 168
Joined: Wed 28 Apr 2010 1:01 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Windows 11
Location: Australia

Re: JavaScript 'Viewer' of Cumulus generated NOAA style repo

Post by Darknstormy »

Hey beteljuice

Just reporting in... been ?? about that long since I implemented it on my web page. Things seem to be running smooth and haven't had anyone tell me about any faults they have found... We shall also find out tomorrow if it locates and add's the march file...

Thanks again mate :D
ImageImage
User avatar
Darknstormy
Posts: 168
Joined: Wed 28 Apr 2010 1:01 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Windows 11
Location: Australia

Re: JavaScript 'Viewer' of Cumulus generated NOAA style repo

Post by Darknstormy »

March file added with no dramas, and has not hindered the loading speed of the page..


Cheers
ImageImage
radelrama
Posts: 12
Joined: Fri 09 Mar 2012 10:42 am
Weather Station: Ws-0101
Operating System: Windows 7 x64
Location: Sierre

Re: JavaScript 'Viewer' of Cumulus generated NOAA style repo

Post by radelrama »

Hi beetlejuice and thx a lot for that code!!

I'm using an non-php Webserver and included Cumulus with Steelgauges in my web page since very little time, I have only data for this month...
I was looking for a simple solution to display reports, downloaded thankfully and adapted your files according to your instructions, generated/copied reports month/year.
The reports page loads, counts files correctly, but stays on

"Looking for files reports/NOAAMO0312.txt

Report for ???? ???"


Other users web pages (with the exactly same code) DO display correctly, so shame on me: What am I doing wrong?
Didn't change any code... Tried renaming files for Jan/Feb reports to exist, doesn't change anything.

Well, tried the whole day and humbly asking for help...


Thx 4 help,
Radelrama
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: JavaScript 'Viewer' of Cumulus generated NOAA style repo

Post by steve »

It would be helpful to give a link to your web site.
Steve
radelrama
Posts: 12
Joined: Fri 09 Mar 2012 10:42 am
Weather Station: Ws-0101
Operating System: Windows 7 x64
Location: Sierre

Re: JavaScript 'Viewer' of Cumulus generated NOAA style repo

Post by radelrama »

steve wrote:It would be helpful to give a link to your web site.
oh yes, of course... just use https and confirm certificate message (self-made certificate):
rama_._homeip_._net/noaa_reports.html

report files in reports folder:
reports/NOAAMO0312.txt
reports/NOAAYR2012.txt
Last edited by radelrama on Mon 26 Mar 2012 9:44 pm, edited 1 time in total.
User avatar
mcrossley
Posts: 12685
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: JavaScript 'Viewer' of Cumulus generated NOAA style repo

Post by mcrossley »

Your web server is returning a status of 400 instead of 404 for reports that do not exist.

Try changing line 243 to:

if(x.readyState == 4 && x.status >= 400) { // file does not exist

Though there may be other problems lurking in there too.
radelrama
Posts: 12
Joined: Fri 09 Mar 2012 10:42 am
Weather Station: Ws-0101
Operating System: Windows 7 x64
Location: Sierre

Re: JavaScript 'Viewer' of Cumulus generated NOAA style repo

Post by radelrama »

mcrossley wrote:Your web server is returning a status of 400 instead of 404 for reports that do not exist.

Try changing line 243 to:

if(x.readyState == 4 && x.status >= 400) { // file does not exist

Though there may be other problems lurking in there too.

that's it, now it works...

THX!!!
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: JavaScript 'Viewer' of Cumulus generated NOAA style repo

Post by beteljuice »

Thanks Mark - Unavailable (off-line ?) when I tried to look-see
Image
......................Imagine, what you will KNOW tomorrow !
apple8
Posts: 129
Joined: Sun 21 Aug 2011 2:26 am
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Sydney. Australia
Contact:

Re: JavaScript 'Viewer' of Cumulus generated NOAA style repo

Post by apple8 »

In Cumulus, generate NOAA monthly and annual reports for every month and year that you have data for, and save them using the default file names.
A little bit of help needed.

How do I create last years and months prior to March NOAA reports. The reports are showing ok for March. There is also a yellow line through the months is there a fix for that also. http://www.blazingcomet.com/weather/NOAA-reports.php
Last edited by apple8 on Mon 19 Mar 2012 12:10 pm, edited 1 time in total.
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: JavaScript 'Viewer' of Cumulus generated NOAA style repo

Post by steve »

apple8 wrote:How do I create last years NOAA reports. The reports are showing this years ok
Is the problem that you don't know about the NOAA report items on the 'View' menu in Cumulus, or that you are using them but can't get them to create reports for last year's data?
Steve
apple8
Posts: 129
Joined: Sun 21 Aug 2011 2:26 am
Weather Station: Davis Vantage Vue
Operating System: Windows 10
Location: Sydney. Australia
Contact:

Re: JavaScript 'Viewer' of Cumulus generated NOAA style repo

Post by apple8 »

In the view menu I have only March and 2012. so I guess I need to generate reports for previous months. I have edited my previous post to incude url of the data I have which is the same as the view menu.
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: JavaScript 'Viewer' of Cumulus generated NOAA style repo

Post by steve »

apple8 wrote:In the view menu I have only March and 2012.
The view menu in Cumulus is where the items are that you need to use to create the NOAA reports.
Steve
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: JavaScript 'Viewer' of Cumulus generated NOAA style repo

Post by beteljuice »

There is also a yellow line through the months is there a fix for that also.
You are actually using the PHP version, but the outcome is the same.

Once you have data that covers more than one year you will see that the yellow highlight does just that, it highlights the year (line) that you are viewing.

If you don't like it (I should wait until you have made your 'themed' page with any backgrounds etc.) you can edit noaarep.css, which has been created on your site, or modify the css code at the end of your php file and then delete the css file on your site.
Last edited by beteljuice on Wed 21 Mar 2012 11:15 am, edited 1 time in total.
Image
......................Imagine, what you will KNOW tomorrow !
Post Reply