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 »

gwheelo wrote:I failed to mention that it was also necessary to change line 50 of gauges_french.js as well so that the LANG.dew.info.web variable was consistent throughout.
The 'LANG.dew_info_web' is the wrong variable - it should have been (and will be in futur versions) 'LANG.dew_web' (as it appears in line 1420 of the the 'gauges.js' script and in line 50 of the 'gauges_french.js' template).

The variable 'LANG.dew_info' (as well as all the variables with the '_info' ending) is only used to display the gauge title inside the mouse-hover graphic images - this allows for the display of a longer title (longer than the maximum 11 characters allowed for the title inside the gauges).
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 »

CheroKiwi wrote:Is there a way to turn the forecast off.
Ron, the 'Sunny' displayed in the forecast gauges is the forecast as produced by Cumulus... :roll:

There is no switch as such to turn off the display of the forecast ... but you can certainly edit your 'wxgauges.php' to either remove the forecast line completely or place a PHP condition to tell the page to display the forecast only during day time hours (when the probabilities of being sunny are greater ;) ). On one of my test pages, I have moved both the LED and the count down time to the bottom of the page in order to increase the length (width) of the forecast gauge to (try to) contain the longer forecasts produced by my Vantage Pro2 console.
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 »

gemini06720 wrote:Ron, the 'Sunny' displayed in the forecast gauges is the forecast as produced by Cumulus... :roll:
The word "Sunny" does not appear in the default forecasts as produced by Cumulus.
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: SteelSeries Gauges - version 1.0

Post by gemini06720 »

steve wrote:The word "Sunny" does not appear in the default forecasts as produced by Cumulus.
Thanks Steve - the 'Sunny' appearing in Ron's forecast gauge comes from the webtag '<#forecast>' - can a La Crosse WS1081 weather station produce its own forecast texts (such as produced by the Vantage weather stations)?
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 »

gemini06720 wrote:can a La Crosse WS1081 weather station produce its own forecast texts
Yes, they supply a number from zero to 2 inclusive, which are equivalent to "Rainy", "Cloudy", and "Sunny", respectively. I think it's probably just a representation of an icon on the console display, in which case I would expect some sort of sun icon to appear on the console at the time that the station is sending the "Sunny" forecast - unless the console does something different at night? I could probably change Cumulus to convert "Sunny" to "Clear" between sunset and sunrise - in fact, I will.
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: SteelSeries Gauges - version 1.0

Post by gemini06720 »

steve wrote:I could probably change Cumulus to convert "Sunny" to "Clear" between sunset and sunrise - in fact, I will.
Steve, again, thank you on behalf of all the La Crosse WS1081 weather station operators/owners... :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 »

The 'LANG.dew_info_web' is the wrong variable
I will correct all scripts on my static test site to conform.

gwheelo
Image
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 »

gwheelo wrote:I will correct all scripts on my static test site to conform.
I guess it should be mentioned in the next updates :) that the 'language' template should be used when translating into another language - I have sent Mark a modified french language template as well as a 'default' template to be used for language translation (the language inside that default template is english) - I have attached the ZIP should you want to check/use the templates.
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 use the <#currcond> tag to provide METAR data from the local airport. In realtimegaugesT.txt I've changed the <#forecast> tag to <#currcond>, thus giving the current METAR rather than Cumulus' forecast.

I've attached a .zip file with the scripts I use, in conjunction with a free program called mweather (http://www.nirsoft.net/utils/mweather.html).

It shouldn't be difficult to set up, although it may require some tweaking if you use a hosted site - I use a home server.
You do not have the required permissions to view the files attached to this post.
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 »

Version 1.1.0 is ready.

A few changes this time, so please read the readme file.

Here are the changes
  • 1.1.0
  • Now works with Cumulus 1.9.1, adds autoscrolling for long forecasts, changes how multiple
    languages are handled.
  • Updated steelseries.js
    - updated to release 'standard release' 0.7.2 from Gerrit
    - fixed logic around LED blinking
    - fixed singleLCD panel clipping text with long thin displays
    - added autoScrolling, automatically scrolls long messages that do not fit in the display,
    short messages are still displayed statically.
  • Updated gauges.js
    - added 'hot' scale shading (above 45C, 110F)
    - added check for Cumulus build number in 'station off-line' code
  • Updated realtimegaugesT.txt
    - added cumulus build number
  • Updated parseRealtime.js
    - updated for extra build number field
  • Updated gauges-ssT.htm, gauges-ssT-Fr.htm
    - added hidden span to force early .ttf font download from web servers that do serve .woff files
    - added include for language.js
    - updated to HTML 5 standards
  • Added language.js file
    - contains language translations, default file contains English & French
I have attached the file to the first message in this thread so we always know where the latest version is!
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 »

:clap: Thanks for the update Mark. Scrolling display works great.
If you must choose between two evils, pick the one you've never tried before.

Image

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

Thanks, that is good to know - though of course now I look at your page you have a short forecast that doesn't need to scroll :roll:

Edit: Do you really have such a low pressure variation at your location? (about 1008 - 1027) You could change the limits for the pressure gauge to bring the minimum up to say 990.
RayProudfoot
Posts: 3602
Joined: Wed 06 May 2009 6:29 pm
Weather Station: Davis VP2 with Daytime FARS
Operating System: Windows XP SP3
Location: Cheadle Hulme, Cheshire, England
Contact:

Re: SteelSeries Gauges - version 1.0

Post by RayProudfoot »

Thanks too Mark from me up the A34 in Cheadle Hulme. I even remembered to edit the file with the path to my fonts folder to add the 's'.
Cheers,
Ray, Cheshire.

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

Ray has pointed out that there was a slight problem with the temperature popup data in French (and other languages that are masculine/feminine).

So version 1.1.1 has been posted, only the "gauges.js" file has been changed, and you only need to bother upgrading from 1.1.0 if you intend to use languages other than English.
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 »

ss v1.1.1 now married to my gauges page without a hitch except one feature. The status window changes language for all messages on command except when the text overrides the window width and starts scrolling. Something is happening or not happening when autoscroll goes into action. Text starts jittering with multiple languages while scrolling. Obviously my language scheme is incompatible with autoscroll. This is not a big thing for me as all my forecasts fit within the window - but I like the feature and would love to implement on my site. Any ideas? One other question - how might I change the status text color - I'm thinking "red" for instance.

Currently I change the status language with:

if (gauge_baro) { doBaro(); }
if (gauge_rain) { doRain(); }
if (gauge_rrate){ doRRate();}
if (gauge_hum) { doHum(); }
if (gauge_wind) { doWind(); }
if (gauge_wdir) { doDir(); }

setStatus(LANG.forecastlong[cumulus.forecastnumber]); //set for testing

George Wheelock
Image
Post Reply