Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Error displaying NOAA report

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
grottem
Posts: 44
Joined: Sat 07 Nov 2009 3:43 pm
Weather Station: WP1400
Operating System: XP SP3
Location: Tønsberg, Norway
Contact:

Error displaying NOAA report

Post by grottem »

Have discovered that the NOAA report shows data in a strange way (http://grottem.com/ver/noaa/noaa.html). Note the data between 07 and 12 March.
Does anyone have a suggestion as to why this happens?
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: Error displaying NOAA report

Post by beteljuice »

The only thing that stands out to me is the compass.
eg. NØ - which is displayed as N*

This is a limitation of using the JavaScript (Ajax) 'viewer'.
Image
......................Imagine, what you will KNOW tomorrow !
grottem
Posts: 44
Joined: Sat 07 Nov 2009 3:43 pm
Weather Station: WP1400
Operating System: XP SP3
Location: Tønsberg, Norway
Contact:

Re: Error displaying NOAA report

Post by grottem »

Good morning - and thanks for the reply :)
Noaa report is generated by Cumulus, but is there any chance that the report can be generated without national language set?
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: Error displaying NOAA report

Post by beteljuice »

In the JavaScript (noaarep.js) file, look for function betelLoader
and AFTER // END nasty work around
Try ADDING:

Code: Select all

		repdat = repdat.replace(/*/g , "ø");
This should replace any and ALL instances of * with Ø
Image
......................Imagine, what you will KNOW tomorrow !
grottem
Posts: 44
Joined: Sat 07 Nov 2009 3:43 pm
Weather Station: WP1400
Operating System: XP SP3
Location: Tønsberg, Norway
Contact:

Re: Error displaying NOAA report

Post by grottem »

Tried this, but it was not shown any data at all (looking for data ???????)
Have corrected strings.ini (Cumulus) and returned to the English term for wind :?
Thank you for making me aware of what triggered the error :clap:
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: Error displaying NOAA report

Post by beteljuice »

Ah ... I forgot to treat * as a 'special char' :oops:

This WILL work: ;)

Code: Select all

// END nasty work around
repdat = repdat.replace(/\*/ , "ø");
Image
......................Imagine, what you will KNOW tomorrow !
grottem
Posts: 44
Joined: Sat 07 Nov 2009 3:43 pm
Weather Station: WP1400
Operating System: XP SP3
Location: Tønsberg, Norway
Contact:

Re: Error displaying NOAA report

Post by grottem »

Nope, it did not work (still an error) ;)
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Error displaying NOAA report

Post by mcrossley »

The .txt files are being server from Apache without any charset defined, so I *think* that defaults to ANSI?

On my web server I have told it to serve .txt (text/plain) as windows-1252 on the assumption that is what Cumulus produces.

Would adding a .htaccess file in the reports folder fix the problem?

Code: Select all

AddCharset windows-1252 .txt
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: Error displaying NOAA report

Post by beteljuice »

OK - the beteljuice has been playing .......

First of all my eyesight is worse than I thought, I've been mistaking a degree symbol for an asterisk, not only that but the replacement character I was proposing was lower-case and not capital.

But the confusion is not totally of my own making ....
Your report page is unusually located in the same directory as the reports themselves, as is the controlling js file and the css file - luckily the script copes with this (Pat myself on the back).

Sort of OK, in your html page you are using server absolute pathes (ie, /thisthing)
So first of all let's get your page styled to the rest of your site.
In your noaa.html change:

Code: Select all

<link href="weatherstyle.css" rel="stylesheet" type="text/css" />
To:

Code: Select all

<link href="/ver/weatherstyle.css" rel="stylesheet" type="text/css" />
Huge improvement :clap:
Next - change:

Code: Select all

reportDir = "../noaa/" // The relative path to your reports DIRECTORY (no trailing / )
To:

Code: Select all

reportDir = "./" // The relative path to your reports DIRECTORY (no trailing / )
// OR
reportDir = "../noaa" // The relative path to your reports DIRECTORY (no trailing / )
OK - that should be the report html done.

Now the noaarep.js ....
Much more interesting :? because the degree symbol is both valid and required in three places before the directions are encounted I've had to create a bit of dodgy code just for your alphabet (It would be much better if you used the php version).

Try this:
noaarep.zip
You do not have the required permissions to view the files attached to this post.
Image
......................Imagine, what you will KNOW tomorrow !
grottem
Posts: 44
Joined: Sat 07 Nov 2009 3:43 pm
Weather Station: WP1400
Operating System: XP SP3
Location: Tønsberg, Norway
Contact:

Re: Error displaying NOAA report

Post by grottem »

Good morning
It corrected the national character, but as you see data for 7, 8, 9, 10, 11 and 14 is shown in the wrong way!?
Thank beteljuice for put so much work into this! :clap:
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: Error displaying NOAA report

Post by beteljuice »

You haven't changed anything :?

Or is it now in a different place ?
Image
......................Imagine, what you will KNOW tomorrow !
grottem
Posts: 44
Joined: Sat 07 Nov 2009 3:43 pm
Weather Station: WP1400
Operating System: XP SP3
Location: Tønsberg, Norway
Contact:

Re: Error displaying NOAA report

Post by grottem »

Do not understand this, I have made ​​changes and uploaded with Filezilla.
I can see on my work pc that it has changed to Ø!?
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: Error displaying NOAA report

Post by beteljuice »

OK - It was a cache issue.
Ilebrekke NOAA rapport - Mozilla Firefox_2013-03-15_00-25-51.png
Looks good to me - what is the problem - are the directions wrong ?
You do not have the required permissions to view the files attached to this post.
Image
......................Imagine, what you will KNOW tomorrow !
grottem
Posts: 44
Joined: Sat 07 Nov 2009 3:43 pm
Weather Station: WP1400
Operating System: XP SP3
Location: Tønsberg, Norway
Contact:

Re: Error displaying NOAA report

Post by grottem »

It does not appear lik your image in IE!!! :shock:
I have not figured out how to attach the screen display :oops:
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: Error displaying NOAA report

Post by beteljuice »

Aha - that is a whole new argument

See the first few posts here: https://cumulus.hosiene.co.uk/viewtopic.p ... 2&start=56

... and change to the php version if you can ;)
Image
......................Imagine, what you will KNOW tomorrow !
Post Reply