Can't post a link - I don't post a web page and am working with the interface.
I have done a lot of experimenting trying to figure this out using the rain rate and solar gauges as guides. The best I came up with was the UV gauge would work how I wanted until midnight, then the tick marks disappeared, the needle and high triangle pointed straight up and NaN was displayed - then it worked properly again when the first reading over 0 was observed in the morning
Again, I realize this is probably just me doing this so if you don't want to fool with it I understand. If you can give me more info on adding "today's maximum reading in the calculation for the gauge scale max" I would appreciate it.
Here is what I have done to change from a bargraph to dial gauge:
Code: Select all
Remove: params.gaugeType = steelseries.GaugeType.TYPE3; (which defaults it to TYPE4)
Add: params.maxMeasuredValueVisible = true;
params.thresholdVisible = false;
Change: ssGauge = new steelseries.RadialBargraph('canvas_uv', params);
To: ssGauge = new steelseries.Radial('canvas_uv', params);
Add below: *** function update() {
var tip, indx; ***
cache.maxMeasured = extractDecimal(data.UVTH);
Add above: *** if (ddimgtooltip.showTips) { ***
ssGauge.setMaxMeasuredValue(cache.maxMeasured);
Herb