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 »

Are you sure you have made the suggested modifications! I just looked at the source code for 'gauges.js' and it is still showing:

Code: Select all

var realTimeURL = "/public_html/Weather/realtimegauges.txt";
var imgPathURL = "/public_html/Weather/images/";
var oldGauges = "/public_html/Weather/gauges.htm"; 
User avatar
FTBoomer
Posts: 29
Joined: Mon 26 Dec 2011 2:14 am
Weather Station: W-1080
Operating System: Win 7
Location: Tampa, FL

Re: SteelSeries Gauges - version 1.0

Post by FTBoomer »

Thanks guys, you were correct, I did not upload the new script, I though it was part of the web update batch. Uploaded the new script and we are goo. Thank you so much for your help and great work on the 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: SteelSeries Gauges - version 1.0

Post by mcrossley »

Playing around with the ciolouring for inch rain gauges I uncovered a bug in the core SteelSeries library (exposed by a bug in gauges.js :lol: ).

So I have rushed out version 1.3.1, this also enables configuration of all the changes I talked about earlier for 1.3.0 at the top of the script.

1.3.1
* Updated the readme file
- With corrected remote file slashes, and details on configuring the standard Cumulus pages
to point to the new SS gauge page
* Updated steelseries.js to library version v0.9.6
- The inch rain gauge exposed a bug in the core library
* Updated gauges.js
- Made tick label orientation a globally configured item
- Made rain gauge colouring configurable from global variables at the top of the script
* Updated realtimegaugesT.txt
- Small changes for future consistency
User avatar
meteotortosa
Posts: 323
Joined: Thu 04 Dec 2008 12:15 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows XP SP3
Location: Tortosa-Baix Ebre- Catalonia
Contact:

Re: SteelSeries Gauges - version 1.0

Post by meteotortosa »

mcrossley wrote:
Anyone got 1.3.0 up and running yet? (about 25 downloads so far)
Can you see here -> http://www.meteotortosa.cat/web3/wxgaugess.php

:clap: :clap:
Weather in Tortosa (NE Spain), updated every 15'
Image Image
gpercival
Posts: 22
Joined: Fri 11 Feb 2011 11:00 am
Weather Station: La Crosse 2355
Operating System: Windows XP
Location: Asquith, NSW, Australia

Re: SteelSeries Gauges - version 1.0

Post by gpercival »

It is 1.3.0 is working for me except for a small problem with the rainfail gauge. Intermittently does not display the LCD number. I am hoping 1.3.1 fixes this.

http://www.rhumbline.com.au/weather
User avatar
FTBoomer
Posts: 29
Joined: Mon 26 Dec 2011 2:14 am
Weather Station: W-1080
Operating System: Win 7
Location: Tampa, FL

Re: SteelSeries Gauges - version 1.0

Post by FTBoomer »

13.3.0 running fine for me, Thank you very much
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,
v1.3.1 is now working for me, with 1 exception - Rainfall LCD is blank. v1.3.0 had the same problem?

http://weather.gktnet.com/gauges-ss_test.php

Otherwise, it looks good.

Cheers,
Cheers,
Graeme.
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 »

GraemeT wrote:Mark,
v1.3.1 is now working for me, with 1 exception - Rainfall LCD is blank. v1.3.0 had the same problem?

http://weather.gktnet.com/gauges-ss_test.php

Otherwise, it looks good.

Cheers,
I have had a look and I cannot see anything wrong/different that may be causing it.

I did notice that your PHP has dropped the hidden DIV towards the bottom of my sample page which forces the early download of the LCD font. The PHP also still includes the parseRealtime.js script that is no longer needed.
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 »

Code: Select all

v1.3.1
I assume v1.3.1 is working - all seems corrector except without rain the rain rate rainfall arn't proven in my page. I do see that the Rainfall gauge is showing the "Rainfall" (0.0) not in lcd type characters but the Rain Rate lcd characters do match the rest of the gauges. When I do a "ChangeLang() the characters then display in the correct style. So far I have failed to find the problem - perhaps a small hint.
http://www.wheelocknet.net/cumulus/gauges4.html?gb

George Wheelock
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 »

I see the same issue on your page George, I'm pretty sure it is a font download timing thing. I think doing the following may help with this...

Move the hidden div to preload the font to be the first thing in the body:

Code: Select all

<body onload="init()">
<!-- Hidden span to force early .ttf font download, required for web servers that do not serve .woff files -->
<span style="visibility:hidden; font-family:LCDMono2Ultra">Dummy</span> 
Move all the scripts from the header to the end of the body or just after:

Code: Select all

</body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script src="scripts/tween.min.js"></script>
<script src="scripts/language.js"></script>
<script src="scripts/steelseries.js"></script>
<script src="scripts/gauges.js"></script>
<script src="scripts/ddimgtooltip.min.js"></script>
</html>
Moving the scripts to the end may help with download blocking.
If someone with the problem could try this and report back...?
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,
Adding the hidden span fixed the rain LCD display problem.

One other 'trap for new players'...
If there is a carriage return character (0x0d) anywhere in the forecast string, the data download will fail, causing all gauges show no data, something that didn't occur before v1.3.0
This can occur if metar data is used, as each line output by mweather is terminated by a CR (0x0d).
For those interested, here's my updated metar.php script.
http://weather.gktnet.com/public/weathe ... cripts.zip

Thanks again.
Cheers,
Graeme.
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 »

Move the hidden div to preload the font to be the first thing in the body:
was all it took to display correctly on startup.

GW
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 »

GraemeT wrote:One other 'trap for new players'...
If there is a carriage return character (0x0d) anywhere in the forecast string, the data download will fail, causing all gauges show no data, something that didn't occur before v1.3.0
This can occur if metar data is used, as each line output by mweather is terminated by a CR (0x0d).
For those interested, here's my updated metar.php script.
http://weather.gktnet.com/public/weathe ... cripts.zip
Thanks for the update Graeme. The <cr> thing is probably a consequence of switching to the JSON data format, thanks for providing a fix for your metar data.
gwheelo wrote:
Move the hidden div to preload the font to be the first thing in the body:
was all it took to display correctly on startup.
Thanks for the update George, I'll amend my HTML for the next release.
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 »

I probably should have been stripping out the CR's anyway. This episode just got me to clean up the code a bit. :lol:
Cheers,
Graeme.
R-II
Posts: 11
Joined: Wed 21 Dec 2011 8:29 pm
Weather Station: Smart Weather WH2080
Operating System: Windows 7
Location: United Kingdom

Re: SteelSeries Gauges - version 1.0

Post by R-II »

R-II wrote:OK I may be being a bit stupid here... it is late but I appar to have a slight problem with the gauges part of my website not working properly

If I click "gauges" I get the old gauges displayed but if i type in a direct url to "gauges-ss.htm" it works fine, what have I done stupid :bash:

Regards

Richard
Thanks for the reply Steve, I knew I was doing something stupid. I notice now a helpful guide in v1.3.1 :D It appears to be working as it should.

Next step is setting the gauges on just 2 lines as I think it looks a lot tidier, but as I'm learning this as I go along it may take a while :bash:

Thanks again for all the hard work people put into this....
Post Reply