I’m trying to use a scale transformation to convert wind strengh (mph) to beaufort index.
The problem is the wind strengh can be decimal, not only integer: eg. 3.51 mph
And in that case I’m not able to work with scale:
2018-08-21 15:08:45.028 [WARN ] [rm.AbstractFileTransformationService] - Could not transform '3.51' with the file 'beaufort_mph.scale' : No matching range for '3.51'
My item:
Number Http_darkSKY_fore_windgust "Gust Strength [%.0f mph]" (gOutdoor, gWeather) { http="<[darkSKY:10000:JSONPATH($.daily.data[1].windGust)]"}
Sitemap:
Text item=Http_darkSKY_fore_windgust label="Beaufort (Gust) [SCALE(beaufort_mph.scale):%s]" icon="meteoalarm_wind" valuecolor=[>=73="purple",>=55="fuchsia",>=39="red",>=25="orange",<25="green"]
I didn’t see this example in the doc’s but other than the first and last entry would the result be the same if the left bracket only was turned ( i.e. ]1…4]=Light Air ) or what is the difference?