Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4021) - 04 May 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

SteelSeries Gauges - version 1.0

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

captzero
Posts: 363
Joined: Wed 03 Mar 2010 10:20 am
Weather Station: Vantage Pro2 w/ daytime FARS
Operating System: Windows 10
Location: Brisbane, Australia
Contact:

Re: SteelSeries Gauges - version 1.0

Post by captzero »

Smithee wrote:I have set up a SteelSeries Guages page formatted for the iPad
Hi Andy.

Nice work. It looks like your box overs containing the Wind and Rain graphs are transposed. Rainfall gauge shows Wind speed graph etc.

Cheers
Dan

http://www.brisbaneliveweather.com




A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: SteelSeries Gauges - version 1.0

Post by nitrx »

Mark, I saw some led settings and alarm settings in the scripts are these hidden features :roll:
User avatar
mcrossley
Posts: 12800
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 don't think so Ron. :? The status LED is displayed on the sample page, not sure what the alarms are (?) but is it the download timeouts and station off-line stuff?
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: SteelSeries Gauges - version 1.0

Post by nitrx »

Well I mean this code

Code: Select all

// Create audio tag for alarm sound
        if (playAlarm && alarmSound !== false) {
            var audioElement = doc.createElement('audio');
            audioElement.setAttribute('src', alarmSound);
            //audioElement.setAttribute('src', 'js/alarm.mp3');
            audioElement.setAttribute('preload', 'auto');
        }
in the steelseries.js and

this led on your windgauge (it was blinking red once for a while)
You do not have the required permissions to view the files attached to this post.
User avatar
mcrossley
Posts: 12800
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, right. That is a feature of the gauge library I have not used. If enabled, a LED is shown on the gauge and when you set the value a tick mark is displayed on the scale. You can also set an optional audio file. When the gauge reading exceeds the alarm threshold value the LED will blink and the audio file play (if set).
Last edited by mcrossley on Sat 15 Oct 2011 8:42 am, edited 1 time in total.
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: SteelSeries Gauges - version 1.0

Post by nitrx »

Ok thanks
staccermaccer
Posts: 24
Joined: Thu 29 Sep 2011 8:37 am
Weather Station: Davis Vantage Pro II, UV, Solar
Operating System: Win10
Location: Antwerp
Contact:

Re: SteelSeries Gauges - version 1.0

Post by staccermaccer »

Here's My Dutch translation, made some changes to the forecasts,

[Forecast]
Forecast=Weersverwachting
notavailable=Niet beschikbaar
exceptional=Extreem Weer
forecast1=Standvastig Weer
forecast2=Helder, Mooi Weer
forecast3=Het wordt beter Weer!
forecast4=Mooi weer, Onstabiliteit neemt toe
forecast5=Mooi, Bui blijft mogelijk
forecast6=Tamelijk mooi, naar standvastig Weer
forecast7=Tamelijk mooi, nog een Bui mogelijk
forecast8=Tamelijk mooi, later Buiig
forecast9=Regenachtig begin, later droger
forecast10=Wisselvallig Weer, later standvastiger
forecast11=Tamelijk mooi, kleine kans op een Bui
forecast12=Nogal wisselvallig later mogelijk standvastiger
forecast13=Regenachtig weer
forecast14=Buiig, met enkele opklaringen
forecast15=Regenachtig, minder standvastig Weer
forecast16=Veranderlijk Weer, kans op wat neerslag
forecast17=Veranderlijk Weer, met mooie opklaringen
forecast18=Veranderlijk Weer, gevolgd door neerslag
forecast19=Veranderlijk Weer, Bui mogelijk
forecast20=Onbestendig weer
forecast21=Af en toe neerslag, later meer neerslag
forecast22=Af en toe neerslag, erg onstabiel weer
forecast23=Perioden met regen
forecast24=Neerslag, erg onstuimig weer
forecast25=Stormachtig, later verbetering
forecast26=Stormachtig, veel neerslag
[MoonPhases]
Newmoon=Niewe maan
WaxingCrescent=Wassende maan
FirstQuarter=Eerste kwartier
WaxingGibbous=Wassende maan
Fullmoon=Volle maan
WaningGibbous=Afnemende maan
LastQuarter=Laatste kwartier
WaningCrescent=Afnemende maan
[Beaufort]
Calm=windstil
Lightair=zwakke wind
Lightbreeze=zwakke wind
Gentlebreeze=matige wind
Moderatebreeze=matige wind
Freshbreeze=vrij krachtige wind
Strongbreeze=krachtige wind
Neargale=harde wind
Gale=zeer harde wind
Stronggale=Stormachtig
Storm=Storm
Violentstorm=Zware storm
Hurricane=Orkaan
[Trends]
Risingveryrapidly=Zeer snel stijgend
Risingquickly=Snel stijgend
Rising=Stijgend
Risingslowly=Langzaam stijgend
Steady=Stabiel
Fallingslowly=Langzaam dalend
Falling=Dalend
Fallingquickly=Snel dalend
Fallingveryrapidly=Zeer snel dalend
[Compass]
N=N
NNE=NNO
NE=NO
ENE=ONO
E=O
ESE=OZO
SE=ZO
SSE=ZZO
S=Z
SSW=ZZW
SW=ZW
WSW=WZW
W=W
WNW=WNW
NW=NW
NNW=NNW
[Graphs]
SmallGraphWindSpeedTitle=Windsnelheid
SmallGraphOutsideTemperatureTitle=Buitentemperatuur
SmallGraphInsideTemperatureTitle=Binnentemperatuur
SmallGraphPressureTitle=Luchtdruk
SmallGraphRainfallRateTitle=Regenintensiteit
SmallGraphWindDirectionTitle=Windrichting
SmallGraphTempMinMaxAvgTitle=Temp Min/Max/Gem
SmallGraphHumidityTitle=Vochtigheid
SmallGraphRainTodayTitle=Regen vandaag
SmallGraphDailyRainTitle=Dagelijkse neerslag
LargeGraphWindSpeedTitle=Windsnelheid
LargeGraphWindGustTitle=Windvlaag
LargeGraphOutsideTempTitle=Temperatuur
LargeGraphHeatIndexTitle=Hitte-index
LargeGraphDewPointTitle=Dauwpunt
LargeGraphWindChillTitle=Wind Chill
LargeGraphApparentTempTitle=Voelt Als
LargeGraphInsideTempTitle=Binnentempertatuur
LargeGraphPressureTitle=Luchtdruk
LargeGraphRainfallRateTitle=Regenintensiteit
LargeGraphWindDirectionTitle=Windrichting
LargeGraphWindAvgDirectionTitle=Gemiddelde
LargeGraphMinTempTitle=Min Temp
LargeGraphMaxTempTitle=Max Temp
LargeGraphAvgTempTitle=Gem Temp
LargeGraphInsideHumidityTitle=Luchtvochtigheid binnen
LargeGraphOutsideHumidityTitle=Luchtvochtigheid buiten
LargeGraphRainfallTodayTitle=Neerslag vandaag
LargeGraphDailyRainfallTitle=Dagelijkse neerslag


Greetings,

Marc,
Image
Fritz
Posts: 7
Joined: Wed 05 Oct 2011 2:02 pm
Weather Station: Zephyr PWS1000-TD
Operating System: Windows XP, Ubuntu, Debian, Mint
Location: Export, PA USA
Contact:

Re: SteelSeries Gauges - version 1.0

Post by Fritz »

I am trying to integrate the Steel Series gauges with the Carter Lake/Saratoga-Weather Templates, calling "gauges-ssT.htm" with a php include.

I'm getting the goofy BOM characters "  " on the page and haven't a clue as to how to get rid of them.

Tried changing the whole template set from ISO-8859-1 to UTF-8 and also commenting out the UTF-8 in gauges-ssT but the characters are still there.

Anybody have any ideas ?

http://www.westmorelandweather.com/wxssgauge.php

Thanks

Fritz

EDIT: Could it be that I edited gauges.js in notepad ?

EDIT#2: I was on the right path, edited the gauges-ssT.htm in notepad, found the answer in a Joomla! forum. See here on how to fix it if you have the same problem.
You do not have the required permissions to view the files attached to this post.
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: SteelSeries Gauges - version 1.0

Post by nitrx »

You probaby did not save it as UTF-8 use notepad +
SpeedyGJ
Posts: 13
Joined: Thu 19 Mar 2009 8:26 am
Weather Station: Davis Vantage Pro 2
Location: Holwerd / Netherlands
Contact:

Re: SteelSeries Gauges - version 1.0

Post by SpeedyGJ »

I have a question.
Why i can only 6sec intervall and not 2sec?
User avatar
mcrossley
Posts: 12800
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 »

New version 1.1.4 just posted, the only changes are the addition of a Dutch translation and some colouring of the rain rate gauge sectors (which could probably do with some tweaking!)

SpeedyGJ: I'm not sure what you mean, the "g_count" variable controls the interval between realtime downloads (in whole seconds only). Are you saying it does not work when set to 2? Can you provide a link to your page so I can see what is going on?
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 »

Mark, there is one modification I have made to the 'gauges.js' script which I think other people might find useful... I have added a new variable near the top of the script (line 16):

Code: Select all

var forecast_width = 550;  //width of the forecast gauge (default value)
And at line 220 (of version 1.1.4), I have modified from:

Code: Select all

width : 550,
to:

Code: Select all

width : forecast_width,
The (suggested) modification would allow me (the station operator) to easily change the width of the display without having to re-edit the script every times a new version is released... :D

There are a few additional modifications I have been trying implement but have half succeeded... :(

My idea is/was to add a sub-routine to change the colours/types of the gauges according to the seasons. Well. that part of the modification works well. What I am/was also trying to do was to pass the status (on/off) of a variable from the 'gauges.js' script to the HTML/PHP script, but with that part, I have failed miserably (limited knowledge of JavaScript)... :oops:

Would you have some suggestions/recommendations... :mrgreen:
User avatar
mcrossley
Posts: 12800
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, I have added that new variable to the code, so it will be incorporated in the next release.

I'm not quite sure what you are doing with the colouring? To pass variables to PHP you would just use the standard "?variable=value" at the end of the URL to a GET or POST would you not?
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:I'm not quite sure what you are doing with the colouring? To pass variables to PHP you would just use the standard "?variable=value" at the end of the URL to a GET or POST would you not?
Mark, the gauges have to change colours depending on the seasons... :mrgreen:

Basically, I have different types of settings for the 'look'n'feel' of the gauges, thus, during the warmer months, my gauges use the default colours (or the colours as set in the script) and during the colder months (started at the beginning of this month) my gauges use a darker (carbon) background and red pointers - cold dark months of winter with temperatures in the red... :twisted:

But you completely miss my other point, the one about passing the status of a variable from the 'gauges.js' JavaScript to either an HTML or PHP template - I know how to pass variables status/values from PHP scripts to PHP scripts but I have not yet figure out if a similar operation/way exists to pass the status/value of a variable from a JavaScript (such as 'gauges.js') to a PHP script... :?
Fritz
Posts: 7
Joined: Wed 05 Oct 2011 2:02 pm
Weather Station: Zephyr PWS1000-TD
Operating System: Windows XP, Ubuntu, Debian, Mint
Location: Export, PA USA
Contact:

Re: SteelSeries Gauges - version 1.0

Post by Fritz »

Mark,
I've been fooling with this for 2 days and I've tried everything that I can think of but I can't seem to get the "°F" to not display on my gauges.

http://westmorelandweather.com/wxssgauge.php

I see in the .js file...

// clean up temperature units - remove html encoding
cumulus.tempunit.replace('°','°');

But it just doesn't want to cooperate with me.

Could you point me in the right direction ?

Running V 1.1.4 as of this morning and it is still there.

Thanks

Fritz
You do not have the required permissions to view the files attached to this post.
Post Reply