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

How to run one page with Wind Rose & Solar and one without

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
gpercival
Posts: 22
Joined: Fri 11 Feb 2011 11:00 am
Weather Station: La Crosse 2355
Operating System: Windows XP
Location: Asquith, NSW, Australia

How to run one page with Wind Rose & Solar and one without

Post by gpercival »

I have been successfully running SteelSeries for some time and am very happy with them (thanks Mark). I am looking forward to the Cloud base gauge.

I decided that I would create a page optimised for my Galaxy S4 so set about removing gauges and reformatting so they would fit nicely. I then discovered that the gauges no longer worked. After testing it turned out that removing the Wind Rose and Solar Radiation gauges while having them turned on in the gauges.js file causes an error.

I want to keep them turned on on my main page (http://www.rhumbline.com.au/weather/index.htm) but not to show them on my mobile page (http://www.rhumbline.com.au/weather/mobile.htm). I also don't want to set up separate configurations for each.

Any help would be appreciated.

Geoff
water01
Posts: 3246
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: How to run one page with Wind Rose & Solar and one witho

Post by water01 »

Copy gauges.js to say mgauges.js and then in that version change

Code: Select all

            showUvGauge       : true,                   //Display the UV Index gauge
            showSolarGauge    : true,                   //Display the Solar gauge
            showRoseGauge     : true,                   //Show the optional Wind Rose gauge
            showRoseGaugeOdo  : true,                   //Show the optional Wind Rose gauge Windrun Odometer
to

Code: Select all

            showUvGauge       : false,                   //Display the UV Index gauge
            showSolarGauge    : false,                   //Display the Solar gauge
            showRoseGauge     : false,                   //Show the optional Wind Rose gauge
            showRoseGaugeOdo  : false,                   //Show the optional Wind Rose gauge Windrun Odometer
and in the code for mobile.htm change

Code: Select all

  <script src="scripts/gauges.js"></script>    
to

Code: Select all

  <script src="scripts/mgauges.js"></script>    
David
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: How to run one page with Wind Rose & Solar and one witho

Post by gpercival »

Thanks David,

That works

Geoff
Post Reply