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 4019) - 03 April 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 2.0.0beta4a and WindRoseRadarPlot

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
CrasHBoneS
Posts: 96
Joined: Fri 06 Jan 2012 10:49 am
Weather Station: PCE-FWS20
Operating System: Windows XP SP3
Location: Bellaria Igea Marina (RN)
Contact:

SteelSeries 2.0.0beta4a and WindRoseRadarPlot

Post by CrasHBoneS »

Hi
I have "integrated" into gauges.js (version 2.0.0beta4a) the file gauge.js to have WindRose displayed on my webpage
It seems working, more expert user can tell me if the gauge is working right?
Thank You all.

http://www.meteobellaria.it/stazione1/gaugesSSradar.php

This is Cumulus original "radar"
http://www.meteobellaria.it/stazione1/gauges.php
User avatar
mcrossley
Posts: 12787
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 2.0.0beta4a and WindRoseRadarPlot

Post by mcrossley »

Looks good to me - though there is a slight problem with your temperature min/max indicators.
CrasHBoneS
Posts: 96
Joined: Fri 06 Jan 2012 10:49 am
Weather Station: PCE-FWS20
Operating System: Windows XP SP3
Location: Bellaria Igea Marina (RN)
Contact:

Re: SteelSeries 2.0.0beta4a and WindRoseRadarPlot

Post by CrasHBoneS »

mcrossley wrote:Looks good to me - though there is a slight problem with your temperature min/max indicators.
I have noticed now....................

any help?
CrasHBoneS
Posts: 96
Joined: Fri 06 Jan 2012 10:49 am
Weather Station: PCE-FWS20
Operating System: Windows XP SP3
Location: Bellaria Igea Marina (RN)
Contact:

Re: SteelSeries 2.0.0beta4a and WindRoseRadarPlot

Post by CrasHBoneS »

SteelSeries 166 seems working right
http://www.meteobellaria.it/stazione1/gaugesSSold.php

added the bold code in gauges.js, seems working now


_gaugeTemp.setMinMeasuredValue(+_temp.minValue);//aggiunta
_gaugeTemp.setMaxMeasuredValue(+_temp.maxValue);//aggiunta
_gaugeTemp.setMinMeasuredValue(_temp.low); //aggiunta
_gaugeTemp.setMaxMeasuredValue(_temp.high); //aggiunta

_gaugeTemp.setArea(_temp.areas);
_gaugeTemp.setValueAnimated(+_temp.value);
User avatar
mcrossley
Posts: 12787
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 2.0.0beta4a and WindRoseRadarPlot

Post by mcrossley »

The min/max indicators are a bit 'unusual' in their behaviour especially when using an animated 'needle'.

Though you can set their values, they also 'self update' from the gauge value, so that if you set the min value to 8C, but the current value is -20 (the start value) and then you use setValueAnimated(14) the min value indicator will pick up the -20 value as the gauge starts animating.
CrasHBoneS
Posts: 96
Joined: Fri 06 Jan 2012 10:49 am
Weather Station: PCE-FWS20
Operating System: Windows XP SP3
Location: Bellaria Igea Marina (RN)
Contact:

Re: SteelSeries 2.0.0beta4a and WindRoseRadarPlot

Post by CrasHBoneS »

Now I think the windrose-radarplot is OK

Next step: adding windrun odometer to radarplot

I tried to modify my gauges.js with the one You use on Your site with no success

I have disabled this code because the page "crash"

Code: Select all

			// Create & Paint the odometer
//			gauge_odo = new steelseries.Odometer('canvas_odo', {
//					height: g_size * 0.075,
//					decimals: 1,
//					digits: 4,
					//valueForeColor: odometerParams.valueForeColor,
					//valueBackColor: odometerParams.valueBackColor,
					//decimalForeColor: odometerParams.decimalForeColor,
					//decimalBackColor: odometerParams.decimalBackColor,
//					value: 0
//				});	



			// update the windrun odometer
//			gauge_odo.setValueAnimated(data.windrun);

User avatar
mcrossley
Posts: 12787
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 2.0.0beta4a and WindRoseRadarPlot

Post by mcrossley »

There are HTML changes too to overlay the odometer on top of the wind rose, but the script would also have to be adapted to work with the version 2 format scripts.
Post Reply