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

Background behind the digits

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

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: Background behind the digits

Post by mcrossley »

Two problems with that test page...

<script src="http://ajax.googleapis.com/ajax/libs/jq ... "></script>
Cannot be found - 404 error.

Secondly the version of steelseries you have does not implement the "bLatest" parameter to the WindDirection drawLcdText() function.
It looks like you have the 'rouge' version of 1.6.6, download version 1.6.6b zip and the changes to the LCD colour should work in that copy of the steelseries library. I made a mistake and did not increment the version of the library for that release so it still shows 0.11.4
:bash: for me for causing this confusion.
User avatar
krmidas
Posts: 215
Joined: Sat 03 Jul 2010 9:03 pm
Weather Station: Davis Vantage Pro 2
Operating System: Windows 10
Location: Lake Zurich, IL; USA
Contact:

Re: Background behind the digits

Post by krmidas »

That worked! Thanks.

If I wanted to also make the word "average" match the red digit color, what adjustment should I make?

-Tom

UPDATE: Answered my own question:
Capture.JPG
You do not have the required permissions to view the files attached to this post.
Last edited by krmidas on Sun 19 Aug 2012 2:52 am, edited 1 time in total.
Tom Keramidas, Lake Zurich, IL, USA
Image
User avatar
DanielF
Posts: 184
Joined: Tue 30 Dec 2008 12:53 pm
Weather Station: Davis Vantage Vue, serial logger
Operating System: Win10Pro64
Location: Gerroa, NSW, Australia

Re: Background behind the digits

Post by DanielF »

Mark,
I still can't get this to work. I've been using 1.1.6b all along.

I did your edit, minified and uploaded, but, like Tom's, the minified version didn't work (displayed first gauge only, with no needle). (Maybe this is a problem with YUIcompressor?)

So I deleted the minified file and renamed (on the website) the .js as .min.js. The gauges all displayed correctly then, but still no colours in the wind LCDs. (I've reverted to the original files for the time being.)
Daniel
Gerroa ('paradise'), Australia
Gerroa weather
User avatar
krmidas
Posts: 215
Joined: Sat 03 Jul 2010 9:03 pm
Weather Station: Davis Vantage Pro 2
Operating System: Windows 10
Location: Lake Zurich, IL; USA
Contact:

Re: Background behind the digits

Post by krmidas »

Daniel,

I re-downloaded the zip file from the Steelseries Announcements topic. Next, I followed these instructions:
mcrossley wrote:
Find the line around 24xx (sorry I working on a later version of the script from you guys) in the function "var drawLcdText = function (value, bLatest) {" that says:

Code: Select all

mainCtx.fillStyle = lcdColor.textColor;
Change this to:

Code: Select all

mainCtx.fillStyle = bLatest ? pointerColor.medium.getRgbaColor() : pointerColorAverage.medium.getRgbaColor();
Make sure you either re-minify the file before upload, or change your page to use the non-minified version of the script.
Then I re-minified the file and uploaded both. It worked for me.

-Tom
Tom Keramidas, Lake Zurich, IL, USA
Image
User avatar
DanielF
Posts: 184
Joined: Tue 30 Dec 2008 12:53 pm
Weather Station: Davis Vantage Vue, serial logger
Operating System: Win10Pro64
Location: Gerroa, NSW, Australia

Re: Background behind the digits

Post by DanielF »

Tom,
Yes, that's what I did. But it didn't work for me.
I'm a bit short of time just now, so maybe I'll try again later. Or maybe I'll just wait for the next SteelSeries Cumulus version (which it sounds like Mark is working on already), on the assumption that both the colour issues will be fixed in that version (correct needle colours, and matching LCD colours when a gauge has dual needles).
Daniel
Gerroa ('paradise'), Australia
Gerroa weather
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: Background behind the digits

Post by mcrossley »

Daniel, you could just nick a copy of the minified script off Tom's site :shock:
User avatar
krmidas
Posts: 215
Joined: Sat 03 Jul 2010 9:03 pm
Weather Station: Davis Vantage Pro 2
Operating System: Windows 10
Location: Lake Zurich, IL; USA
Contact:

Re: Background behind the digits

Post by krmidas »

mcrossley wrote:
krmidas wrote: Please explain the purpose of the LED light on the gauges. What is it designed to indicate? My gauges don't have an LED light. Not sure why, as I don't remember removing anything...
Tom, the weather gauges do not use all the features of the gauges, the LED lights when the gauge value exceeds the configured threshold value - again not something I have used on the weather gauges.

The supplied page/gauges was always intended to be a starter, anyone with the ability or inclination to learn can customise/add/subtract them as they desire - as many have :-)
I'd like to configure the LED's to light when I've surpassed an all time record. Would this be straightforward to configure? When I changed "LED visible" lines in gauges.js to "true", the LED's all appeared, and a few (but not all) started blinking immediately. I wasn't sure where the parameters would be found that would indicate if they should be blinking or not.

-Tom
Tom Keramidas, Lake Zurich, IL, USA
Image
User avatar
krmidas
Posts: 215
Joined: Sat 03 Jul 2010 9:03 pm
Weather Station: Davis Vantage Pro 2
Operating System: Windows 10
Location: Lake Zurich, IL; USA
Contact:

Re: Background behind the digits

Post by krmidas »

mcrossley wrote:Daniel, you could just nick a copy of the minified script off Tom's site :shock:
Daniel,

Here you go...
You do not have the required permissions to view the files attached to this post.
Tom Keramidas, Lake Zurich, IL, USA
Image
User avatar
DanielF
Posts: 184
Joined: Tue 30 Dec 2008 12:53 pm
Weather Station: Davis Vantage Vue, serial logger
Operating System: Win10Pro64
Location: Gerroa, NSW, Australia

Re: Background behind the digits

Post by DanielF »

krmidas wrote:Here you go...
Many thanks Tom – that's now installed and working.

All we need to find out now is how to swap the colours so that they match those used by Cumulus (red=current, blue=average)!
Daniel
Gerroa ('paradise'), Australia
Gerroa weather
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Background behind the digits

Post by gemini06720 »

Daniel, how about trying this change in the section starting with 'function drawDir() {':

Code: Select all

//                    pointerColor : g_pointerColour,
                    pointerColor : steelseries.ColorDef.RED,
//                    pointerColorAverage : steelseries.ColorDef.RED,
                    pointerColorAverage : steelseries.ColorDef.BLUE,
In the above modification, I commented out the original lines of code and added the new lines of code.

NOTE: You will not be able to just update from one version to a new version without loosing all your modification...
User avatar
DanielF
Posts: 184
Joined: Tue 30 Dec 2008 12:53 pm
Weather Station: Davis Vantage Vue, serial logger
Operating System: Win10Pro64
Location: Gerroa, NSW, Australia

Re: Background behind the digits

Post by DanielF »

gemini06720 wrote:Daniel, how about trying this change in the section starting with 'function drawDir() {':
Ray,

Thanks for this. Given my lack of success with the previous mod, I might wait for someone else to try this and post it. But first, a question about your suggestion...

Won't that make *most* of the gauge pointers red (currently blue)? We wouldn't want to do that, since most slow-moving measurements (temp, humidity, etc) are (I presume) in fact averages, so should stay as blue needles. Only the wind direction gauge needs the colours reversed; both needles and LCDs to match.
Daniel
Gerroa ('paradise'), Australia
Gerroa weather
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Background behind the digits

Post by gemini06720 »

Daniel, the best reply would be an image... ;)

So, have a look at my [link removed] page and let me know if this is what you were writing about... :)
Last edited by gemini06720 on Sun 09 Jun 2013 7:55 am, edited 1 time in total.
User avatar
DanielF
Posts: 184
Joined: Tue 30 Dec 2008 12:53 pm
Weather Station: Davis Vantage Vue, serial logger
Operating System: Win10Pro64
Location: Gerroa, NSW, Australia

Re: Background behind the digits

Post by DanielF »

gemini06720 wrote:So, have a look at my SteelSeries Weather Gauges page and let me know if this is what you were writing about... :)
Ray,

Yes, that's exactly what I want!

So I thought I'd have another crack at doing my own code mods. But if the file you're modifying is steelseries.js then there seems to be a problem with multiple (different) copies of v1.6.6b on this website. Because the copy I downloaded does not contain the string 'drawDir' anywhere in steelseries.js!

Is someone able to do a search of all directories on the Sandaysoft web server to see if there's more than one copy of 'SteelSeries_gauges-ss_v1-6-6b.zip' (or maybe without the 'SteelSeries_' – I might have added that so I know what it is amongst the hundreds of files in my Downloads directory)?

I take your point about losing all mods when an update is installed. But hopefully Mark, who I gather modified SteelSeries for Cumulus, will incorporate these improvements in his next release.
Daniel
Gerroa ('paradise'), Australia
Gerroa weather
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: Background behind the digits

Post by beteljuice »

You want an awful lot of customizing for something that is supposed to be a starter for you do with as you please !
Image
......................Imagine, what you will KNOW tomorrow !
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Background behind the digits

Post by gemini06720 »

Daniel, the latest official release (by Mark) of the SteelSeries Gauges package will always be in the SteelSeries Announcements forum thread.

Although previous modification were done within the 'steelseries.js' script, the one I suggested was done within the 'gauges.js' script - that is within the 'gauges.js' script that the basic setting for the gauges are made.

I guess I should have been more specific when I proposed the modifications to indicate that the suggested code should be used inside the 'gauges.js' script - I presumed wrongly that you would have first searched into 'gauges.js' and then into 'steelseries.js'... :roll:
Post Reply