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

gauge extract?

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
raf
Posts: 2
Joined: Wed 07 Nov 2012 10:38 am
Weather Station: irox
Operating System: xp
Location: bagnacavallo ITA

gauge extract?

Post by raf »

ciao to all, just starting to test the v2 kit and work well but.. any possibility to extract only 1 gauge?

the idea is to make the baro (big) in one page and another page with all gauges (the original)
.. i have try to 'delete' some part on the original html but when i try to delete canvas_wind part baro gauge remain but no load data

tnx in advance, raf new adept (i hope ;) )
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: gauge extract?

Post by CrasHBoneS »

ciao Raf, a questa pagina c'è un test con il barometro "grande"

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

Sorry If I speak Italian, I told raf to go to the web page: I made a test

I made a "new" gauges_raf.js with some modification

Code: Select all

			$('#canvas_dew').parent().remove();

			$('#canvas_hum').parent().remove();
			
			$('#canvasGauge').parent().remove();
			
			$('#canvas_dir').parent().remove();
			
			$('#canvas_rain').parent().remove();
			
			$('#canvas_rrate').parent().remove();
			
			$('#canvas_temp').parent().remove();
			
			$('#canvas_wind').parent().remove();

set the dimension of the only gauge displayed

Code: Select all

gaugeSize         : 599,                    //size of gauges (default 221) - Odd numbers tend to render better than even
and added comment to these lines because they give me problem with countown

Code: Select all

//            _gaugeWind.setUnitString(data.windunit);
//            _gaugeWind.setValue(0);
the web page with only baro should use NOT gauges.js but gauges_raf.js

Code: Select all

	<script src="steelseries/scripts_beta4/gaugesraf.js"></script>
and the dimension of canvas_baro shlud be modified

Code: Select all

<canvas id="canvas_baro" width="600" height="600"></canvas>
Last edited by CrasHBoneS on Thu 08 Nov 2012 10:15 am, edited 1 time in total.
User avatar
mcrossley
Posts: 12778
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: gauge extract?

Post by mcrossley »

Thanks :clap:
raf
Posts: 2
Joined: Wed 07 Nov 2012 10:38 am
Weather Station: irox
Operating System: xp
Location: bagnacavallo ITA

Re: gauge extract?

Post by raf »

..pure vicino a casa !, tnx
Thanks Crashbones, when i have time i try to work with this code..
i hope it can be useful to others,

Raf Bagnacavallo,RA
Post Reply