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

beteljuice AJAX testers wanted

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

Moderator: daj

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: beteljuice AJAX testers wanted

Post by beteljuice »

:oops: Ooops ...

Remember right at the start I said I lost everything on my ex-PC ?

For those using the HUGE graphic, barometer 'needles' > 1030 are MISSING !

I shall remedy that on the 'release'.

See - that's the trouble with 'EXTRAS' :roll:
Image
......................Imagine, what you will KNOW tomorrow !
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

Undocumented 'Fix'

Post by beteljuice »

Undocumented 'Fix'

I've noticed that some of you are starting to have a problem with Initial data grab seeming to fail, and having to wait until the next check.

This is a formatting / page download conflict, and is usually caused by an external css style sheet. (These are always the last 'includes' to load in a HTML page)

If you have this problem:
In betel_cumulus_ajax.js change this line as below:

Code: Select all

var ajaxLoaderInBody = true; // set to true if you have <body onload="ajaxLoader(..."
Then in ALL the html files that use it, ADD to the <body> tag, or add the line shown immediately above / below the existing <body> tag:

Code: Select all

<body onLoad="ajaxLoader('PATH_TO/realtime.txt?' + new Date().getTime())">
Careful with the different quotes and brackets, and don't forget to change PATH_TO ;)

This may make the initial data slower to appear (because it's [almost] the last thing done), but that's better than NO data for whatever your 'grab' interval is !
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
gwheelo
Posts: 453
Joined: Wed 11 Jun 2008 7:36 pm
Weather Station: WMR-88
Operating System: Windows 8.1
Location: L'Estartit, Spain
Contact:

Re: beteljuice AJAX testers wanted

Post by gwheelo »

Beteljuice not only knows Ajax - but it appears he knows a bit of Catalan as well. Now reporting the local names of the winds by origin and velocity. See the results at: http://www.wheelocknet.net/cumulus/now.htm . Thanks for the help.

George Wheelock
Image
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: beteljuice AJAX testers wanted

Post by beteljuice »

Nice work George, but you you really need to do the 'fix' so that the data comes in first time ;)

:oops: Again !
Just when I'm doing final(?) tweaks, there's something missing !
(As I realised when looking @ wheelos page)

EDIT:
Information removed, need to look deeper :|
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
gwheelo
Posts: 453
Joined: Wed 11 Jun 2008 7:36 pm
Weather Station: WMR-88
Operating System: Windows 8.1
Location: L'Estartit, Spain
Contact:

Re: beteljuice AJAX testers wanted

Post by gwheelo »

Beteljuice -

When making the changes you suggest; "False" to "True" and adding either just above or just below the <body> tag in the html page the following:
<body onLoad="ajaxLoader('http://www.wheelocknet.net/cumulus/realtime.txt' + new Date().getTime())"

The data fields appear blank. You said to be careful of punctuation but I fail to see where I missed. I am sure you will spot my mistake immediately.

GW
Image
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: beteljuice AJAX testers wanted

Post by beteljuice »

I can't see any pages with the modified <body> George !

I've looked at:

betel/table1.html
cumulus/now.html

Both still have the delay before data appears

However: you said "False" to "True"
Should be - true - all lower-case, it makes a difference ;)
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
gwheelo
Posts: 453
Joined: Wed 11 Jun 2008 7:36 pm
Weather Station: WMR-88
Operating System: Windows 8.1
Location: L'Estartit, Spain
Contact:

Re: beteljuice AJAX testers wanted

Post by gwheelo »

I can't see any pages with the modified <body> George ! - That was the clue!

Just sloppy housekeeping on my part. I was editing the wrong html file - lesson learned - don't keep files with the same name in two different directories - and then think you know what you are doing.

I believe it is working correctly now!

Thanks again for teaching me a lesson!

GW
Image
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: beteljuice AJAX testers wanted

Post by beteljuice »

Believe me - I know all about that :D

NP - my pleasure
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
gwheelo
Posts: 453
Joined: Wed 11 Jun 2008 7:36 pm
Weather Station: WMR-88
Operating System: Windows 8.1
Location: L'Estartit, Spain
Contact:

Re: beteljuice AJAX testers wanted

Post by gwheelo »

IE and Chrome display the Ajax html pages correctly - but Firefox misses half the page and all the data - what's up?

GW
Image
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: beteljuice AJAX testers wanted

Post by beteljuice »

Sorry !

The only thing I know about the different versions of FF, is that if you don't define your font size / face in CSS it can seriously affect the way the page looks x-browserwise.

Post the link -

Feedback anybody ?
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
dane
Posts: 417
Joined: Wed 10 Sep 2008 2:15 pm
Weather Station: Rosenborg 68700
Operating System: Win10 Ult., 64-bit, RaspberryPi
Location: Gilleleje, Denmark

Re: beteljuice AJAX testers wanted

Post by dane »

I am not too happy with "-0 degrees" - as both you and I have on our web pages right now.
Any chance of getting a "clean" 0 for temperatures between zero and minus 1?
Ib
2008-12-29_003907.png
Ib
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: beteljuice AJAX testers wanted

Post by beteljuice »

It's a Javascript 'rounding' thing
It's saying -0.4 is -0 (ie. the mantissa is still saying it's less than zero)

Change these areas:
Normal temp. area

Code: Select all

	Rset_ajax_obs("ajaxtemp_C", temp_C.toFixed(1), '&deg;C'); // unchanged
(temp_C.toFixed(0) == -0 ? temp_C_big = 0 : temp_C_big = temp_C.toFixed(0)); // NEW
	Rset_ajax_obs("ajaxbigtemp_C", temp_C_big, '&deg;C'); // *** modified
EXTRAS weather map area:

Code: Select all

(temp_C.toFixed(0) == -0 ? pic_C = 0 : pic_C = temp_C.toFixed(0)); // NEW	
	Rset_ajax_obs("ajax_pic_temp_C", spacer + pic_C, '&deg;C');	// yet another temp display ** Modified
Something else to change in the 'release'

Any other problems ?

PS. The beteljuice has realised that the experimental freeze / snow line calcs were artificially biased to sea level, so I've re-done the best calc and introduced a simpler 'near enough' calc. (test 1 and 2 on my 'details page)
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: beteljuice AJAX testers wanted

Post by steve »

Actually, in meteorological terms, it's doing exactly the right thing. Temperatures which are rounded to zero from slightly below zero are conventionally reported as "-0" degrees, to show that the temperature is actually below freezing point.

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: beteljuice AJAX testers wanted

Post by beteljuice »

... reported as "-0" degrees, to show that the temperature is actually below freezing
I knew there was some reason why I left it !
As a codester it didn't 'feel' right having -0

Thoughts please, -0, 0 or user settable ?

and any feed-back in general please before I do a pre-release release :lol:
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
dane
Posts: 417
Joined: Wed 10 Sep 2008 2:15 pm
Weather Station: Rosenborg 68700
Operating System: Win10 Ult., 64-bit, RaspberryPi
Location: Gilleleje, Denmark

Re: beteljuice AJAX testers wanted

Post by dane »

conventionally reported as "-0" degrees
is not what I learnt at school.
But this is about weather stations, so who am I to argue with a weather specialist?
So: -0 it is :)
Ib
Post Reply