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

SteelSeries Gauges - version 1.0

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: SteelSeries Gauges - version 1.0

Post by gemini06720 »

To have separate gauges for showing the inside and outside temperatures you would have to make changes to the 'gauges.js' script by modifying the present temperature gauge (to remove the inside data) and by creating a new temperature gauge (this one using the inside data).
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: SteelSeries Gauges - version 1.0

Post by mcrossley »

For good or bad, I have released version 0.8.6 of steelseries canvas which adds gradient colours to the Radial/LinearBargraphs.

https://plus.google.com/u/0/b/105784522 ... dBRTojazfs
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: SteelSeries Gauges - version 1.0

Post by gemini06720 »

Very nice work Mark - I really like what I see... :mrgreen:
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: SteelSeries Gauges - version 1.0

Post by gwheelo »

Now the fun begins. It is like having a new sandbox - first thing is messing it up.
It was a messy sandbox - not because of Marks excellent code - just my different method of language change, style, and radar gauge - plus being an innocent code beginner.

In any case - the sandbox cleaned up just enough to allow things to work. I will spend some time to clean it up so I have a clean play area before I mess it up again.

Love the new gauges, Mark! Looking forward to all the forthcoming enhancements.

George Wheelock

http://www.wheelocknet.net/cumulus/gauges.html
Image
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: SteelSeries Gauges - version 1.0

Post by mcrossley »

Keep going George :lol:

I have just released version 0.8.8 of the library, this implements a Glossy Metal frame, and tickLabelOrientation.

https://plus.google.com/u/0/10578452282 ... UPymG5kd7j
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: SteelSeries Gauges - version 1.0

Post by beteljuice »

It's been a while since you can plead innocence George :lol:
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: SteelSeries Gauges - version 1.0

Post by gwheelo »

It's been a while since you can plead innocence George
OK, your right - how about old and slow - the sandbox is for my second childhood :?

GW
Image
User avatar
Snupple
Posts: 40
Joined: Mon 17 Jan 2011 3:11 pm
Weather Station: WH3081
Operating System: Win 7 x64
Location: Perth, West Aust.

Re: SteelSeries Gauges - version 1.0

Post by Snupple »

Hiya,

Anyway I can remove the big red section on the left side of the Baro dial and the small section at the end of the range?
You do not have the required permissions to view the files attached to this post.
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: SteelSeries Gauges - version 1.0

Post by mcrossley »

You need to edit gauges.js

In the function "doBaro()", comment out the line "gauge_baro.setArea(g_baro.areas);" - around line 1090-ish
User avatar
Snupple
Posts: 40
Joined: Mon 17 Jan 2011 3:11 pm
Weather Station: WH3081
Operating System: Win 7 x64
Location: Perth, West Aust.

Re: SteelSeries Gauges - version 1.0

Post by Snupple »

mcrossley wrote:You need to edit gauges.js

In the function "doBaro()", comment out the line "gauge_baro.setArea(g_baro.areas);" - around line 1090-ish

Fixed, thanks! I also noticed that sone of the LCD fonts don't change to Digital Font until after the first update?
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: SteelSeries Gauges - version 1.0

Post by mcrossley »

That happens if the script renders the gauges before the font download has completed. I put a bit of hidden text at the bottom of the page that is formatted to use the LCD font. This normally forces the font download to complete before the script executes, but it is a bit of a kludge to be honest.
User avatar
Snupple
Posts: 40
Joined: Mon 17 Jan 2011 3:11 pm
Weather Station: WH3081
Operating System: Win 7 x64
Location: Perth, West Aust.

Re: SteelSeries Gauges - version 1.0

Post by Snupple »

mcrossley wrote: I put a bit of hidden text at the bottom of the page that is formatted to use the LCD font.

Woops, left that out when I pasted your code into the new template :oops:
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: SteelSeries Gauges - version 1.0

Post by mcrossley »

For those going it alone, the SteelSeries canvas library is now up to v0.9.1
Gerrit has added TrafficLight and LightBulb components, and added section colour handling to DisplaySingle LCD panels
There is also a new pointer TYPE14.

https://plus.google.com/u/0/105784522827877256999

The library is starting to get rather large (210KB minified), so I recommend that you strip out the components that you are not going to use from the source and re-minify. Gerrit and I are bouncing ideas around about how to handle the size issue. If your server supports it then compressing the library would be a good option.
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: SteelSeries Gauges - version 1.0

Post by beteljuice »

... If your server supports it then compressing the library would be a good option...
The beteljuice started playing with compression, but quickly discovered that his space provider had disabled ALL possible 'flags' in both PHP and htaccess :?

However - if your server is PHP enabled here is an inelegant work-around.
Rename (and refer to) mycode.js as mycode.js.php, then add the following two (php) lines at the top - simples

Code: Select all

<?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>
<?php header("Content-type: text/js"); ?>

.... put js here ..........

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: SteelSeries Gauges - version 1.0

Post by gwheelo »

Gerrit and I are bouncing ideas
Big bounce = Radar Gauge.

GW
Image
Post Reply