I have updated the SteelSeries library to version 0.11.3…
These changes speed up the library quite a bit so I thought it would be worth providing an updated Weather Gauge specific version (as I normally supply the weather gauges releases). This ‘should’ be a drop in replacement for the existing file on your server.
The main changes are:
Radial
- Fixed Odometer being reinitialised every time the background was redrawn
- Fixed background changes drawing LCD background when Odometer visisble
- Disabled pointer shadow blurring, it was causing performance issues in some browsers
- added check for ‘knob’ parameter in drawRadialForegroundImage()
Odometer
- Added setValueAnimated() method
RadialBargraph
- Fixed issue with LED halo still displaying when LED was off
General
- Added full caching to: trendIndicator, MaxMinIndicators, LCDbackground, LEDimage,
LinearForeground, LinearBackground, LinearFrame,
RadialForeground, RadialBackground, RadialFrame, and RadialPointers - Stopped some variable leakage to the global scope
- Some code styling changes and fixes for minor syntax niggles
EDIT: Script updated, see below…