SteelSeries Gauges: Difference between revisions

52 bytes added ,  18:06, 19 December 2012
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
{{AddOnBanner|name=SteelSeries Gauges|type=Web Page|author=Mark Crossley|contact='mcrossley' via the forum|updated=19 Dec 2012|version=2.0}}  
{{AddOnBanner|name=SteelSeries Gauges|type=Web Page|author=Mark Crossley|contact='mcrossley' via the forum|updated=19 Dec 2012|version=2.0}}  


[[Image:Steelseries-sshot-1.jpg|thumb]]  
[[Image:Steelseries-sshot-1.jpg|thumb|All Gauges]]  
[[Image:Steelseries-sshot-2.jpg|thumb|No Optional Gauges]]


= SteelSeries JavaScript Gauges  =
= SteelSeries JavaScript Gauges  =
Line 16: Line 16:
3. Configure Cumulus Internet|Files to:  
3. Configure Cumulus Internet|Files to:  


  realtime file:-
realtime file:-
   Local filename  = <path>\Cumulus\web\realtimegaugesT.txt
   Local filename  = <path>\Cumulus\web\realtimegaugesT.txt
   Remote filename = <website_root_path>/realtimegauges.txt
   Remote filename = <website_root_path>/realtimegauges.txt
Line 34: Line 34:
4. If required edit the "gauges.js", the key items are at the top:  
4. If required edit the "gauges.js", the key items are at the top:  


  - The relative path on your website to the "realtimegauges.txt" file.
- The relative path on your website to the "realtimegauges.txt" file.
  - The relative path on your website to your 'trend' graphs folder.
  - The relative path on your website to your 'trend' graphs folder.
  - The relative path on your website to your old 'gauges' page. (users with 'old' browsers will be redirected to this page)
  - The relative path on your website to your old 'gauges' page. (users with 'old' browsers will be redirected to this page)
Line 40: Line 40:
5. If you do not require the UV/Solar Index gauges, then change the lines  
5. If you do not require the UV/Solar Index gauges, then change the lines  


    showUvGauge     : true,
  showUvGauge     : true,
   showSolarGauge   : true,
   showSolarGauge   : true,
  to
  to
Line 68: Line 68:
If you want to redirect browsers that do not have scripting enabled, then you will have to do this in the HTML file itself. In the header section add the following code:  
If you want to redirect browsers that do not have scripting enabled, then you will have to do this in the HTML file itself. In the header section add the following code:  


  <noscript>
<noscript>
  <meta http-equiv="refresh" content="3; url=index.htm"/>
  <meta http-equiv="refresh" content="3; url=index.htm"/>
  </noscript>
  </noscript>
Line 78: Line 78:
To switch statically, you need to edit the "gauges.js" file, and change the line 12:  
To switch statically, you need to edit the "gauges.js" file, and change the line 12:  


    var strings = LANG.EN,
  var strings = LANG.EN,
  to
  to
  var strings = LANG.XX,
  var strings = LANG.XX,
  (where XX is the desired language code).  
  (where XX is the desired language code).  


Line 100: Line 100:
By default for Cumulus the <#forecastenc> message is displayed which shows either the Cumulus generated forecast or the external station generated forecast depending on how Cumulus is configured. Starting with version 1.9.2 Cumulus has additional forecast message options:  
By default for Cumulus the <#forecastenc> message is displayed which shows either the Cumulus generated forecast or the external station generated forecast depending on how Cumulus is configured. Starting with version 1.9.2 Cumulus has additional forecast message options:  


    <#cumulusforecastenc> - Always displays the Cumulus generated Zambretti forecast
  <#cumulusforecastenc> - Always displays the Cumulus generated Zambretti forecast
   <#wsforecastenc>      - Always displays the external weather station forecast  
   <#wsforecastenc>      - Always displays the external weather station forecast  


Line 111: Line 111:
Weather Display users have different options for the forecast message to be used. By default the ccrlocal file uses the Davis VP %vpforecasttext% tag. Change this to what suits you best:  
Weather Display users have different options for the forecast message to be used. By default the ccrlocal file uses the Davis VP %vpforecasttext% tag. Change this to what suits you best:  


   %vpforecasttext%          Davis VP forecast
 %vpforecasttext%          Davis VP forecast
   %forecasticonword%        Words for the (Davis?) forecast icon
   %forecasticonword%        Words for the (Davis?) forecast icon
   %dailywarning/forecast%  forecast from input daily weather
   %dailywarning/forecast%  forecast from input daily weather
Line 129: Line 129:
1. Edit gauges-ssT.htm and remove the comment from around the 'radar' scripts towards the end of the document. Change...  
1. Edit gauges-ssT.htm and remove the comment from around the 'radar' scripts towards the end of the document. Change...  


    <!--
  <!--
     <script src="scripts/windrose.js"></script>
     <script src="scripts/windrose.js"></script>
     <script src="scripts/RGraph.common.core.min.js"></script>
     <script src="scripts/RGraph.common.core.min.js"></script>
Line 141: Line 141:
2. Edit gauges.js, and change...  
2. Edit gauges.js, and change...  


    showRoseGauge : false,
  showRoseGauge : false,
  To...
  To...
   showRoseGauge : true,  
   showRoseGauge : true,  
Line 151: Line 151:
It is easy to 'move' the gauges around the page to create alternative layouts. By default, there are four rows of gauges laid out like this (o = optional gauge)...  
It is easy to 'move' the gauges around the page to create alternative layouts. By default, there are four rows of gauges laid out like this (o = optional gauge)...  


    * * *
  * * *
   * * o
   * * o
   * * *
   * * *
Line 160: Line 160:
I use the following 'horizontal' layout on my personal page (no Solar or UV optional gauges, but with the optional Wind Rose)  
I use the following 'horizontal' layout on my personal page (no Solar or UV optional gauges, but with the optional Wind Rose)  


    * * * *
  * * * *
  * * * * o
  * * * * o