Page 1 of 1

Steel Series Gauges automatic scaling

Posted: Tue Oct 10, 2017 6:36 am
by Luc
When a steel series gauge value exceeds the maximum setting of a particular gauge the maximum value (scale) will increase automatically.

This feature is handy for the rain and rain rate gauges where the daily maximum can be set to e.g. 10 mm or 2 inches. No need to set the gauge maximum value to the maximum recorded day value ever. When the daily rain exceeds 10 mm the maximum is adjusted to 20 mm and so on.

The same principle could be used for wind and gust speeds or other gauges.

Note: the steel series block (ssGauges) use the settings of the steel series plugin (Steel Series).

Re: Steel Series Gauges automatic scaling

Posted: Tue Oct 10, 2017 8:55 am
by Jachym
Hi,
this is not technically possible because the gauges are generated upon loading the page, static, and only the values are updated so the scale must be set before the values start populating.

Re: Steel Series Gauges automatic scaling

Posted: Tue Oct 10, 2017 10:38 am
by Luc
Hi Jachym,

It is not only technical possible. It is how it works right now! :-)

The gauges are redrawn 'automagically' as soon as they get a value above the current max.

See my website where I have set (as a test) wind to max=5 and solar radiation max=50.

Re: Steel Series Gauges automatic scaling

Posted: Tue Oct 10, 2017 10:47 am
by Jachym
OK :D Cool. See this is the only plugin/block I did not write myself from scratch, it uses Mark“s SteelSeries scripts and given the length of them I did not look at every single line of it and only adapted parts of the code which were necessary