SteelSeries Gauges: Difference between revisions

18,873 bytes removed ,  19 December 2012
= Release History =
 
== 2.0.0 ==
 
* Much of the code rewritten and/or reformatted
 
** Most things now contained in a 'gauges' object to avoid polluting the global namespace with numerous variables etc.
2.0.0
** Load orders changed to speed up initial page load/display
 
* Updated gauges.js
* Much of the code rewritten and/or reformatted<br> - Most things now contained in a 'gauges' object to avoid polluting the global namespace with<br> numerous variables etc.<br> - Load orders changed to speed up initial page load/display<br> * Updated gauges.js<br> - Added ability to select the display units:<br> Temp: °C, °F<br> Rain: mm, inch<br> Wind: km/h, m/s, mph, knots<br> Baro: hPa, mb, inHg, kPa<br> - Added (optional) cookie handling to preserve end user unit preferences across sessions<br> - Added variables to set the default min/max values for gauges<br> - Changed the temperature gauge scaling logic so both gauges always use the same range (except<br> for the indoor temperature)<br> - Default units are now 'metric': °C, mm, hPa, km/h<br> - Fixed bug in getord() routine<br> - Added config.dewDisplayType setting to control initial 'dew' gauge display<br> - Added smaller gauge size option for 'mobile' devices<br> * Updated Language handling, all languages now use a single (English by default) template HTML file,<br> calling changeLang(LANG.newLanguage) now updates the HTML as well as the gauges.<br> * Updated realtimeGaugesT.txt &amp; customclientrawlocal.txt<br> - Added todays dominant wind direction<br> * Added Danish, Norwegian, and Italian translations<br> * Changed gauges-ssT.html to use &lt;div&gt;'s for the layout rather than tables.<br> * Removed ddimgtooltip.css - now incorporated into gauges-ss.css<br> * Removed ddimgtooltip.js - now incorporated into gauges.js<br> * Removed tween.min.js - now incorporated into steelseries.min.js<br> * Updated realtimeGaugesT.txt and ccrT.txt files to ver8 - added dominant wind direction<br> * Updated steelseries.js<br> - Updated to v0.11.14<br> * Added optional Wind Rose 'gauge', this also adds the following scripts. The Wind Rose is not enabled by<br> default, and the scripts will not downloaded by the page.<br> - windrose.js<br> - RGraph.common.core.min.js<br> - RGraph.radar.min.js
** Added ability to select the display units:
 
Temp: °C, °F
1.6.6<br> * Updated languages.js<br> - Added Danish translation - thanks Henrik - but no template HTML file<br> - Added Finnish translation - thanks Timo<br> * Updated gauges.js<br> - Fixed the humidty graph being downloaded every realtime update.<br> * Added gauges-ssT-fi.htm<br> - Finnish translation
Rain: mm, inch
 
Wind: km/h, m/s, mph, knots
1.6.5<br> * Updated gauges.js<br> - Fixed last rain date calculation<br> - Added g_weatherProgram variable to indentify Cumulus or Weather Display<br> - Added g_tipImgs array for WD using wxgraphs<br> - Fixed temperature gauge not displaying temperature range colour sections on range change.<br> - Fixed WD baro pressure trend - WD is supplying a 3 hour value, so needed to be divided by 3.<br> - Added localisation of baro trend text<br> - Added extended temperature trend strings "slowly/quickly/rapidly"<br> - Added support for kPa pressure units<br> - Change default gauge scale number orientation to horizontal<br> - Changed WindDir gauge labels to NOT be coloured by default: drawDir() -&gt; "useColorLabels&nbsp;: false"<br> * Updated realtimeGaugesT.txt<br> - Removed pressure trend text - localised string now derived from trend value<br> * Updated customclientrawlocal.txt<br> - Removed pressure trend text - localised string now derived from trend value<br> - Changed forecast tag to use the Davis VP forecast by default<br> - Changed todays max gust direction to use the new tag&nbsp;%maxgstdirectiondegree%<br> * Updated language.js<br> - Added additional strings for barometer/temperature trends<br> - Fixed some NL translations<br> * Updated steelseries.js (&amp; .min)<br> - Updated to v0.11.1<br> - WindDirection, added initialisation parameter 'useColorLabels', default = false<br> * General<br> - Removed any extraneous BOM characters for UTF-8 encoded files (.html .js .css)
Baro: hPa, mb, inHg, kPa
 
Added (optional) cookie handling to preserve end user unit preferences across sessions
1.6.4<br> * Updated gauges.js<br> - Fixed temperature gauges (out &amp; dew) not displaying the min/max shaded area
** Added variables to set the default min/max values for gauges
 
** Changed the temperature gauge scaling logic so both gauges always use the same range (except for the indoor temperature)
1.6.3<br> * Updated gauges.js<br> - Fixed wind max. avg. speed<br> - Added g_showPopupDataGraphs variable to switch off graphs from the popup data<br> - Added different graph image options for each gauge option (dew point, apparent,<br> etc., out and in humidity)<br> * Updated language.js<br> - Dutch translations now complete<br> * Updated ddimagestooltip.js (and min)<br> - Removed explicit graph file names, now they are only specified in gauges.js
** Default units are now 'metric': °C, mm, hPa, km/h
 
** Fixed bug in getord() routine
<br>1.6.2<br> * Updated gauges.js<br> - Fixed max gust today indicator on wind gauge<br> - Fixed baro look-n-feel for 'mb' stations<br> - Fixed Solar gauge area drawing when value &gt; theoretical<br> - Changed Cumulus 'in' pressure units to 'inHg'<br> - Change UV readings to recognise level 0 as unique<br> - Added back links to Cumulus/Weather Display websites<br> * Updated languages.js<br> - French translations now complete<br> - Added additional UV level 0 text
** Added config.dewDisplayType setting to control initial 'dew' gauge display
 
** Added smaller gauge size option for 'mobile' devices
1.6.1<br> * Updated realtimegaugesT.txt<br> - fixed typo for SolarRad
* Updated Language handling, all languages now use a single (English by default) template HTML file, calling changeLang(LANG.newLanguage) now updates the HTML as well as the gauges.
 
* Updated realtimeGaugesT.txt &amp; customclientrawlocal.txt
1.6.0<br> * Updated gauges.js<br> - Made the script more friendly for Weather Display. It now parses all numeric values before<br> use and strips out non-numeric data such as units etc.<br> - Added support for optional Solar Radiation Gauge<br> - Moved changeLang() function to language.js<br> * Added customclientrawlocal.txt<br> - This is the Weather Display equivalent of realtimegaugesT.txt<br> * Updated realtimegaugesT.txt<br> - Removed temptrendtext<br> - Added Solar values<br> - Updated version to 6<br> * Updated languages.js<br> - Added strings for rising/falling/steady, these will now appear localised on the pop-up data rather<br> than in the station language<br> - Added strings for Solar gauge<br> - Added changeLang() function<br> * Updated gauges-ssT.htm (and variants)<br> - Made them more program agnostic<br> - Added Solar Rad. gauge<br> * Updated ddimgtooltip.js<br> - Added support for Solar gauge<br> * Updated steelseries.js<br> - Made WindDirection LCD label colours match the pointer colours
** Added today's dominant wind direction
 
* Added Danish, Norwegian, and Italian translations
1.5.4<br> * Updated gauges.js<br> - Added WindDirection LCD titles to the changeLang() function<br> - Increased default page timeout from 10 to 20 minutes<br> * Updated steelseries.js<br> - Now version 0.10.2; adds the setLcdTitleStrings() method to the WindDirection gauge
* Changed gauges-ssT.html to use &lt;div&gt;'s for the layout rather than tables.
 
* Removed ddimgtooltip.css - now incorporated into gauges-ss.css
1.5.3<br> * Updated gauges.js<br> - Setting g_pageUpdateLimit = 0 disables the page update time limits<br> - Removed the old redundant no HTML5 support code
* Removed ddimgtooltip.js - now incorporated into gauges.js
 
* Removed tween.min.js - now incorporated into steelseries.min.js
1.5.2<br> * Updated gauges.js<br> - Fixes script 'hangs' when the realtimegauges.txt file is zero length (e.g. when it is being<br> updated on the server during the download), and retry after 2 seconds.<br> - Added a page timeout counter, this stops page updates after a specfied time - default 10 minutes<br> You can over ride this with a parameter and password in the URL (default = 'its-me'), for example:<br> http://www.sometwhere.com/gauges-ss.htm?pageUpdate=its-me<br> - Fixed the browser redirect on no HTML5 Canvas support, it has been broken for a few releases.<br> * Updated language.js<br> - Added page timeout string<br> - Restructured to reduce size a little<br> - Removed canvas features not supported string<br> * Updated gauges-ssT.htm<br> - Added 'no script' message<br> * Updated this ReadMe.txt with information about browser redirects for script disabled
* Updated realtimeGaugesT.txt and ccrT.txt files to ver8
 
** added dominant wind direction
1.5.1<br> * Updated SteelSeries library<br> - v0.9.17 - fixes sector/area drawing issues with Chrome Dev release 19<br> * Updated gauges-ss.css<br> - Added references to external ttf, svg, and eot font files for backward compatibility with browsers<br> that do not support the woff font embedded in the css file.<br> - Changed gauge table style so it is centered horizontally on page.<br> * Updated gauges-ssT.htm (+ all translations)<br> - Changed html so gauges are always centered horizontally on page<br> * Adds 'font' folder back in to archive<br> - A subset of the original font files included<br> * Updated gauges.js<br> - minor changes to attempt to fix missing zero values on the rain gauges
* Updated steelseries.js
 
** Updated to v0.11.14
1.5.0<br> * REQUIRES Cumulus 1.9.2 build *1029* or later<br> * Updated gauges.js<br> - Moved popup initialiastion into gauges.js and after gauge initialisation, this<br> speeds up the page display at the expense of the popup images not being available immediately after<br> page load.<br> - Changed launch of init() from onLoad to onDomReady - in supported browsers.<br> * Updated ddimgtooltips.js (+ minimised version)<br> - Moved popup initialiastion into gauges.js<br> * Added Swedish translation<br> - Courtesy of Björn<br> - Updated language.js<br> - Added gauges-ssT-se.htm<br> * Updated gauges-ssT.htm (+ translations)<br> - Removed onLoad() from body tag
* Added optional Wind Rose 'gauge'. The Wind Rose is not enabled by default, and the scripts will not downloaded by the page. This change adds the following scripts
 
** windrose.js
1.4.4<br> * Removed 'font' folder<br> * Updated gauges.css<br> - Embedded the LCD font in the CSS file to avoid download timing problems<br> * Updated steelseries.js (+ minimised version)<br> - Altered LCD font positioning code to try and ensure consistency across browsers (tested on Chrome, IE and FF)
** RGraph.common.core.min.js
 
** RGraph.radar.min.js
1.4.3<br> * Updated gauges.js<br> - Reduced the default range for the barometer from 960-1040 to 990-1030hPa (29.0-30.5 to 29.2-30.4inHg).<br> This should look better on those sites that have very little pressure variation.<br> - Finally(?) at third attempt got the METAR STDY wind calculation correct!<br> - Fixed comma decimal bug with temperature and pressure trends.
 
1.4.2a<br> * Updated steelseries.js (+ minimised)<br> - Up to version 0.9.14, improved TrendIndicator 'glow'<br> - Bug fix from 0.9.13
 
1.4.2<br> * Updated gauges.js<br> - Fixed bug in METAR STDY wind calculation<br> - Fixed Wind Direction titles always displaying in English<br> * Updated language.js<br> - Added Dutch translations for UV gauge (thanks to 'Marc')<br> - HTML5 cleanups<br> * Updated gauge-ssT.htm (+ translations)<br> - HTML5 cleanups<br> * Updated steelseries.js (+ minimised)<br> - Up to version 0.9.13, improved TrendIndicator 'glow'
 
1.4.1<br> * Updated gauges.js<br> - Fixed comma decimal bug in UV gauge<br> * Updated steelseries.js (+ minimised)<br> - Up to version 0.9.12, no functional changes from 0.9.11<br> * Updated gauges-ssT.htm<br> - I left it using the full steelseries script that I debug with rather then the<br> minimised version - oops!<br> * Updated language.js<br> - Partially translated UV gauge
 
1.4.0<br> * Updated gauges-ssT.htm (plus other languages)<br> - Added UV gauge<br> - Made Cumulus version/build fields dymanically updated by the script<br> * Updated ddimgtooltip.js (plus minimised)<br> - Amended to cope with non-graphic pop-ups for UV gauge<br> * Updated language.js<br> - Added UV entries, English only for now, translations required<br> * Updated steelseries.js (plus minimised)<br> - Uplifted to version 0.9.11a, Cumulus cutdown version<br> * Updated realtimeguagesT.txt<br> - Added UV and Cumulus version values
 
1.3.4<br> * Updated ddimgtooltip.js/ddimgtooltip.min.js<br> - Fixes temperature graph issue<br> * Updated steelseries.js to library version 0.9.10<br> - Implements new pointer types TYPE15 &amp; TYPE16<br> - Implements the TURNED gauge background<br> - Improved Trend Indicator<br> - Improved pointer shadows
 
1.3.3<br> * Updated steelseries.js to library version 0.9.7<br> - Implements trend indicators on Radial gauges<br> - Fixes frame redraw bug in Wind gauge<br> * Updated gauges.js<br> - Implements trend indicators<br> * Updated realtimegaugesT.txt<br> - Added temptrend and presstrend values
 
1.3.2<br> * No functional changes from v1.3.1<br> * Updated all HTML pages<br> - Moved hidden DIV to start of the body<br> - Moved all the scripts to the end of the document<br> - Made w3c validator compliant<br> * Updated gauges-ss.css<br> - Part of w3c validator compliance changes<br> * Updated ddimgtooltip.js/ddimgtooltip.min.js<br> - Part of w3c validator compliance changes
 
1.3.1<br> * Updated this readme<br> - With corrected remote file slashes, and details on configuring the standard Cumulus pages<br> to point to the new SS gauge page<br> * Updated steelseries.js to library version 0.9.6<br> - The inch rain gauge exposed a bug in the core library<br> * Updated gauges.js<br> - Made tick label orientation a globally configured item<br> - Made rain gauge colouring configurable from global variables at the top of the script<br> * Updated realtimegaugesT.txt<br> - Small changes for future consistency
 
1.3.0<br> * REQUIRES Cumulus b1025 to function fully (wind direction variation)<br> * Updated steelseries.js<br> - Added WindDirection component, dual pointer for latest &amp; average directions to replace Compass<br> - Switched to a slimed down Cumulus specific version of the library.<br> - For the full library please visit https://github.com/HanSolo/SteelSeries-Canvas<br> * Updated gauges.js<br> - Now uses new WindDirection component, you can switch off the wind direction variation indication<br> using the g_showWindVariation variable (you have a windmilling Fine Offset station for instance!)<br> - Removed Wind Direction LCD panel handling - now redundant with new gauge.<br> - Default gauge size now 251 (was 250), odd number sizes render better<br> - Fixed IE9 javascript exception when realtime txt fetches timed out<br> * Updated gauges-ssT.htm (and other languges)<br> - Removed radio buttons from wind direction gauge<br> - Changed gauge size from 250 to 251<br> * Switched realtimegauges.txt to JSON format data<br> - Removes the need for the parseReatime.js script
 
1.2.2<br> * Updated steelseries.js<br> - Minor tweak to stop filled 'areas' overlapping shaded 'sectors' on radial gauges<br> - Minor fix to LED component redraw when changing colour (the halo density used to increase<br> with each colour change)<br> - Added shadows to LCD text for a more 3D effect - Standard LCD colour only.<br> - Optimised the compass rose drawing routines<br> * Added gauges-altT.htm and gauges-alt.css<br> - Alternative minimal page without any gauge option buttons, and a 'compressed' layout<br> * Updated gauges.js<br> - Removed logo's showing by default
 
1.2.1<br> * Updated gauges.js<br> - Minor: Changed section colours for temperature and rain rates<br> - Changed logo images to use the imgPathURL variable for their path<br> * Updated steelseries.js<br> - Added boolean parameters showDegrees and showRose to the compass component
 
1.2.0<br> * Updated gauges.js<br> - Added demo gauge background image layers to Temperature and Dew Point gauges<br> * Updated steelseries<br> - Added gauge background image layer<br> * Added "images" folder<br> - Two demo background layer images (logoSmall.png, logoLarge.png)
 
1.1.5<br> * Updated gauges.js<br> - Added g_forecast_width variable to easily change the size of the status/forecast display<br> * Updated realtimegaugesT.txt<br> - Changed temperature units to use new Cumulus 1.9.2 &lt;#tempunitnodeg&gt; web tag.<br> The scripts will still work with Cumulus 1.9.1 and the old realtimegaugesT.txt.
 
1.1.4<br> * Updated language.js<br> - added Dutch translation courtesy of Ron "nitrx"<br> * Added gauges-ssT-nl.htm<br> - new Dutch template translation courtesy of Ron "nitrx"<br> * Updated gauges.js<br> - added sector colouring to the rainrate gauge based on the descriptions in the wiki<br> (http://wiki.sandaysoft.com/a/Rain_measurement)
 
1.1.3<br> * Updated gauges.js<br> - fixed incorrect LANG properties .lowest_infoF and .highest_infoF in the temp gauge popup.<br> * Updated language.js<br> - added German translation courtesy of Martin "sharonna"<br> * Added gauges-ssT-de.htm<br> - new German template translation courtesy of Martin "sharonna"
 
1.1.2<br> * Updated gauges.js<br> - changes to the changeLang() function to fix 'flashing' effects<br> * Updated steelseries.js<br> - changes to radial gauge SET methods to better support language switching<br> * Updated .htm files<br> - to remove the calls to changeLang() that ran before the gauges were initialised.
 
1.1.1<br> * Updated gauges.js<br> - fixed temperature popup data strings for languages with masculine/feminine
 
1.1.0<br> * Now works with Cumulus 1.9.1, adds autoscrolling for long forecasts, changes how multiple<br> languages are handled.<br> * Updated steelseries.js<br> - updated to release 'standard release' 0.7.2 from Gerrit<br> - fixed logic around LED blinking<br> - fixed singleLCD panel clipping text with long thin displays<br> - added autoScrolling, automatically scrolls long messages that do not fit in the display,<br> short messages are still displayed statically.<br> * Updated gauges.js<br> - added 'hot' scale shading (above 45C, 110F)<br> - added check for Cumulus build number in 'station off-line' code<br> * Updated realtimegaugesT.txt<br> - added cumulus build number<br> * Updated parseRealtime.js<br> - updated for extra build number field<br> * Updated gauges-ssT.htm, gauges-ssT-Fr.htm<br> - added hidden span to force early .ttf font download from web servers that do serve .woff files<br> - added include for language.js<br> - updated to HTML 5 standards<br> * Added language.js file<br> - contains language translations, default file contains English &amp; French
 
1.0.1<br> * Updated gauges.js, fixed default windspeed unit. Must be 'mph'
 
1.0 * Updated gauges.js<br> - Now checks for existance of gauge in HTML before attempting to draw it<br> - Now checks the results of parseRealtimeGauges() for expected number of values<br> in order to detect incomplete/failed realtime downloads<br> - LED redraws now limited to state changes, stops 'corona' intensity increasing over time<br> - Added changeLang() function, call this after updating the LANG object<br> - General code tidy up<br> * Updated parseRealtime.js<br> - Now returns the number of Cumulus webtag values found<br> * Updated gauges-ss.htm<br> - Renamed file to gauges-ssT.htm as it is intended to be processed by Cumulus<br> - Genernal code tidy up and made to match standard Cumulus templates better<br> * Changed default paths so gauges-ss can be installed in main Cumulus folder<br> on your web site.
 
0.9 * Updated gauges.js<br> - Fixed scale shading for farenheit temperatures<br> - Changed rain and rain rate inches gauges to start range of 0-1 inch<br> - Fixed displaying script version in FireFox<br> * Updated steelseries.js<br> - Added variable decimals to fractionalScale type of radialBargraph gauge
 
0.8 * Updated ddimgtooltip.js &amp; ddimgtooltip.css<br> - Moved all formating out to the CSS file (courtesy of Ray)<br> - Added rounded corners and slightly large graph image (courtesy of Ray)<br> * Updated realtimegaugesT.txt<br> - Added &lt;#timeUTC&gt; data<br> * Updated parseRealtime.js<br> - Added timeUTC handling<br> * Updated gauges.js<br> - Added functionality to display error message, and flash status LED if the<br> data is 'stale' because the realtime file is not updating.<br> - Added string LANG.led_title_offline<br> - Added g_stationOfflineTimeout variable to determine offline limit
 
0.7 * Updated gauges.js:<br> - Reintroduced cache defeat on realtimegauges.txt GET (IE9 requirement)<br> - Added minimum ranges to barometer scale; 970-1040 hPa or 29.0-30.5 inHg<br> - Improved handling/gauge appearance of inHg and inches of rain units<br> - Improved temperature range handling; now C: -40 to +60, F: -30 to +130<br> * Updated steelseries.js:<br> - fix for small fonts on some browser/OS/driver combinations.<br> - added 'blinking' method to the sensor warning led.<br> - added variable number of decimals on factional scales
 
0.6 * Updated gauges.js:<br> - more tweaking of graph downloads.<br> - added option to put 'status' LCD in 'normal' text mode for accented character display.<br> - all embedded strings now in one section for 'easier' language localisation<br> - English language updates<br> - added redirect to 'old' gauges page for incompatible browsers<br> * Updated steelseries.js:<br> - new version from Gerrit<br> - increased radial/radialbargraph scale font size slightly - improves FF5/Windows appearance(?)<br> - added compass point Symbol customisation<br> * Updated gauges-ss.htm:<br> - now formatted like the 'standard' Cumulus template pages<br> * Minified the ddimgtooltip.js, parseRelatime.js, tween.js, and steelseries.js files as these are pretty stable<br> and not much for people to modify in there.
 
0.5 * Updated parseRealtime.js, changes decimal points to match the end users locale<br> * Updated gauges.js, now counts down correctly on http retries.<br> Popup data graphs now only downloaded every 15mins by default.<br> Fixed some remaining comma decimal conversions (hope that is all of them now)
 
0.4 * Updated gauges.js (added forescast .trim() for Davis forecasts, force barometer scale to match expected)<br> * Updated ddimgtooltip.js (initial img path was hard coded)<br> * Updated realtimegaugesT.txt (wrong version included in v0.3)<br>