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

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

Post by GraemeT »

Fine job Mark.
Works a treat!
Cheers,
Graeme.
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: SteelSeries Gauges - version 1.0

Post by GraemeT »

Mark.

I do have just one question for you.
How do I change the default radio button selections?
I would like to default to apparent temp instead of dew point.
Cheers,
Graeme.
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: SteelSeries Gauges - version 1.0

Post by mcrossley »

GraemeT wrote:Mark.

I do have just one question for you.
How do I change the default radio button selections?
I would like to default to apparent temp instead of dew point.
You need to change the HTML

Code: Select all

        <input id="rad_dew1" type="radio" name="rad_dew" value="dew" checked onclick="doDew(this)" />
        <label id="lab_dew1" for="rad_dew1">Dew Point</label>
        <input id="rad_dew2" type="radio" name="rad_dew" value="app" onclick="doDew(this)" />
        <label id="lab_dew2" for="rad_dew2">Apparent</label>
to

Code: Select all

        <input id="rad_dew1" type="radio" name="rad_dew" value="dew" onclick="doDew(this)" />
        <label id="lab_dew1" for="rad_dew1">Dew Point</label>
        <input id="rad_dew2" type="radio" name="rad_dew" value="app" checked onclick="doDew(this)" />
        <label id="lab_dew2" for="rad_dew2">Apparent</label>
and Gauges.js line 205

Code: Select all

    g_dew.selected = 'dew';
to

Code: Select all

    g_dew.selected = 'app';
Hope that helps.
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: SteelSeries Gauges - version 1.0

Post by GraemeT »

Thanks Mark.

I had the html sorted but the line in gauges.js had eluded me.
It's all good now.
Cheers,
Graeme.
User avatar
TwoDogs
Posts: 26
Joined: Mon 10 Aug 2009 8:45 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 64 bit SP1
Location: White Rock, BC Canada
Contact:

Re: SteelSeries Gauges - version 1.0

Post by TwoDogs »

Nice work Mark. Like the gauges.
HTML 5 in the future?

Hal
If you must choose between two evils, pick the one you've never tried before.

Image

http://www.whiterockweather.com
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 »

mcrossley wrote:...and Gauges.js line 205

Code: Select all

    g_dew.selected = 'dew';
to

Code: Select all

    g_dew.selected = 'app';
Hope that helps.
Mark, I think line 203 should also be changed from

Code: Select all

g_dew.title = LANG.dew_title;
to

Code: Select all

g_dew.title = LANG.apptemp_title;
otherwise the title on the gauge remains 'Dew Point'... ;)
basman
Posts: 29
Joined: Fri 04 Feb 2011 10:45 am
Weather Station: National geographic NE 265
Operating System: Windows Xp
Location: Greece

Re: SteelSeries Gauges - version 1.0

Post by basman »

Instruments read very well, but in my case http://achaiki.eu/weather/omplos/gauges-ss.htm they remain still unless we make some adjustment like for example internal from the external temperature. Also it doesn’t show the time of renewal.
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: SteelSeries Gauges - version 1.0

Post by mcrossley »

gemini06720 wrote:Mark, I think line 203 should also be changed from

Code: Select all

g_dew.title = LANG.dew_title;
to

Code: Select all

g_dew.title = LANG.apptemp_title;
otherwise the title on the gauge remains 'Dew Point'... ;)
Indeed, I thought of that after I posted, but I'd shut my computer down and needed some sleep :roll: A hard day on a customer site :(
basman
Posts: 29
Joined: Fri 04 Feb 2011 10:45 am
Weather Station: National geographic NE 265
Operating System: Windows Xp
Location: Greece

Re: SteelSeries Gauges - version 1.0

Post by basman »

Mark, sorry for bringing this up again but I wonder if you could help me with a problem with the instruments. As I wrote you before the instruments remain idle after loading the page. But when a replace mine http://achaiki.eu/weather/omplos/realtimegauges.txt with yours http://weather.wilmslowastro.com/realtimegauges.txt then the instrument page works fine. The only difference I noticed between the two realtimegauges.txt, is that mine uses a "," while yours uses a ".". But when I substitute , with . it still doesn't work: http://achaiki.eu/weather/omplos/gauges-ss.htm
My second remark is that from my realtimegauges.txt are missing in the end some digits which have to do with the date form.
I would appreciate your views.
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: SteelSeries Gauges - version 1.0

Post by mcrossley »

OK, it looks like we have an extended character set problem with the txt file.

It may be that Cumulus saves the file as ANSI, but the first thing to try is:
1. Open realtimegaugesT.txt in Notepad.
2. File|Save As...
3. Make sure that the "Encoding" is set to UTF-8 and resave the file.

Once this is done check to see if the generated file contains entries such as this |ÄéáóôÞìáôá âñï÷üðôùóçò, ðïëý áóôáèÞò| for the forecast.

Can you confirm the realtimegaugesT.txt has the following as the last entry on the line:

Code: Select all

<#timeUTC format=yyyy,m>-1,<#timeUTC format=d,h,m,s>
EDIT: Also, as you use an extended character set language, the LCD font probably will not be able to display the forecast message, so you need to switch to the 'normal' font in gauges.js

Code: Select all

var g_digitalFont           = false;
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: SteelSeries Gauges - version 1.0

Post by steve »

mcrossley wrote:It may be that Cumulus saves the file as ANSI
For writing out "processed" files, it uses the standard Pascal I/O functions (Rewrite etc) so I suspect that probably does use ANSI encoding.
Steve
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: SteelSeries Gauges - version 1.0

Post by mcrossley »

Ah! I see the problem, you are running Cumulus 1.9.1, the newer versions of the script require version 1.9.2. I did a post on Yet More Gauges thread about how to 'fix' gauges.js to work with version 1.9.1.

But basically around line 716, change:

Code: Select all

                then = eval("Date.UTC("+cumulus.timeUTC+")");
to

Code: Select all

                then = now;
basman
Posts: 29
Joined: Fri 04 Feb 2011 10:45 am
Weather Station: National geographic NE 265
Operating System: Windows Xp
Location: Greece

Re: SteelSeries Gauges - version 1.0

Post by basman »

That was the problem, now everything is working normaly.
Thanks guys for the help
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: SteelSeries Gauges - version 1.0

Post by mcrossley »

Glad to be of help - did you try the Greek forecasts again?

EDIT: I was wrong above, to change just the forecast/status to 'normal' text you need to change:

Code: Select all

var g_digitalForecast = false;
User avatar
TwoDogs
Posts: 26
Joined: Mon 10 Aug 2009 8:45 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 64 bit SP1
Location: White Rock, BC Canada
Contact:

Re: SteelSeries Gauges - version 1.0.1

Post by TwoDogs »

Hello Mark,
Would it be possible to increase the "Forecast" window size to accomodate the Davis Vantage Vue forecast as it overruns the current size?
Great work and many thanks,
Hal
You do not have the required permissions to view the files attached to this post.
If you must choose between two evils, pick the one you've never tried before.

Image

http://www.whiterockweather.com
Post Reply