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

Yet more gauges

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

Moderator: daj

Post Reply
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Yet more gauges

Post by mcrossley »

I am just playing with some more new gauges (I must be obsessed with the them!).

You can see the experimental page here (with controls for changing some of the formats):
http://weather.wilmslowastro.com/gaugesB/gauges.htm

This is pure Javascript/HTML5/Canvas, no graphics other than the page background.

Note, that I have made no attempt to make this latest version work with IE8 or older yet, and I am still playing with it, so the page may break from time to time - refresh in 15 mins to see if I fix it!

Also this is running on my old laptop over my ADSL, which I also use for work, so things may be a bit slow if lots of you hit the page!
wd40
Posts: 448
Joined: Thu 05 Aug 2010 10:02 pm
Weather Station: WS2080
Operating System: W7
Location: GA, USA
Contact:

Re: Yet more gauges

Post by wd40 »

Those are really neat gauges.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet more gauges

Post by mcrossley »

Unfortunately I cannot make them work with IE8 or older as they use Canvas features that are not implemented in excanvas. I just found that they also use Canvas features that are not available on Palm WebOS either. :(
User avatar
GraemeT
Posts: 312
Joined: Wed 21 Oct 2009 11:19 am
Weather Station: La Crosse WS-2355 & WS-2306
Operating System: Windoze 7, 10, 11
Location: Bayswater, Australia
Contact:

Re: Yet more gauges

Post by GraemeT »

They look pretty good, Mark.
Cheers,
Graeme.
User avatar
Ned
Posts: 258
Joined: Mon 19 Jul 2010 11:15 am
Weather Station: WS2083 (aspirated)
Operating System: Win 10
Location: Auckland NZ

Re: Yet more gauges

Post by Ned »

Works nicely on my Android phone (but slowly)
FF4 is struggling (missing 3 lower gauges, no live readings)
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet more gauges

Post by mcrossley »

I have minified the code more aggressively and made some other changes that speed it up a bit. I'll look into the FF4 issue, thanks...
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Yet more gauges

Post by steve »

I get the following error in FF4:

Error: uncaught exception: [Exception... "An invalid or illegal string was specified" code: "12" nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)" location: "http://weather.wilmslowastro.com/gauges ... ies.min.js Line: 1"]

I had a quick look at line 1 in steelseries.min.js... and gave up :lol:
Steve
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet more gauges

Post by mcrossley »

Ha! Steve the 'debug' version of the page with "un-minified" scripts is on "gaugesB.htm". I don't have FF installed at the mo, so if you could give me a clue I'll have a look!
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Yet more gauges

Post by steve »

The error is at line 851:

backgroundContext.rotate(rotationOffset + (threshold - minValue) * angleStep + HALF_PI);

The second time that line is executed, "threshold" is undefined. Hope that helps.
Steve
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet more gauges

Post by mcrossley »

TA, I'll have a trace through the code, some else wrote it though so it may take a while...
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet more gauges

Post by mcrossley »

Fixed - I hope, an uninitialised variable in my code :oops:
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Yet more gauges

Post by nitrx »

They seem to work fine now in FF 4 great job !
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Yet more gauges

Post by steve »

Yes, looks OK now in FF4 :clap:
Steve
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Yet more gauges

Post by gemini06720 »

Mark, gauges display well in Firefox 3, Google Chrome, Opera and Internet Explorer 9... ;)
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Yet more gauges

Post by mcrossley »

Thanks Ray - what no Safari? :lol:
Shame about excanvas and WebOS, wonder if they display OK on iPhone/iPad?
Post Reply