But I both have the same problem with the js and the scale file I´ve made as well…
Notice the two items. One is using the js, the other item is using a scale file insted.
I have change the transformation in the scale file to lowercase letters, and renamed all icons to lowercase.
Now I wait to get an update, cause openweather binding sometimes result in a UNDF for current wind direction… Dont know why. But usually it will update next time. (15 minutes). Lets see how it goes.
The other item (forecast3hours), using the windorse.js… I´m not sure how to change that file.
EDIT - Change one of the scales in the windrose.js to lowercase… Sitemap showing lowercase now. But icon still not right.
EDIT (again) - openweather just updated… Still icon not showing correctly. I guess I have to either give up or try clear the cache/tmp to see if it makes any changes.
Item changed to String format… Now waiting for openweather to update.
String localCurrentWindDirection "Current wind direction [SCALE(windDirection.scale):%s]" <windrose> { channel="openweathermap:weather-and-forecast:6f8991c0:local:current#wind-direction" }
(Btw… clear cache and tmp didn´t do any good).
Argh damit… The above wont work (ofcouse). The channel is a number… I´ll probably have to use a rule to translate it to a string insted.
Have to look at it tomorrow… times up for now.
I did ask what your Item state was. Dynamic icons use the ‘raw’ state of the Item … before any transformation for display. Its in the docs. I’d missed your Number type Item definitions - no chance
You may have your (string) state in uppercase, the icon selector will handle that, but you must use lowercase icon filename.
Yeah I realise that now… (wonder how come it worked when having made a couple of icons… But that just pulled med off).
I´m fiddling with a rule to tranform the number to string, and then use a second (proxy) item… But the rule I´d found throws an error… Dont know why, yet…