Hi,
There are a few initiatives for weather widgets and their associated icons lately, so I thought I would share my view of how these icons should be handled in those cases (where you don’t need to have them in HABPanel’s icon picker): the proper way using the standard ESH iconset infrastructure.
@kubawolanin made an attempt to use the awesome animated Climacons (https://github.com/noahblon/animated-climacons) and he was kind enough to map several of the icons’ names to the former 1.x binding’s “condition common Id” of the legacy OH 1.x Weather binding.
So I decided to make a bundle like the Classic icon set you already know as an proof-of-concept:
Download the binary here: https://github.com/ghys/org.openhab.ui.iconset.climacons/releases/latest
Source here: https://github.com/ghys/org.openhab.ui.iconset.climacons/
Compile the sources or download the .jar binary and follow the instructions on the GitHub release page.
Once the bundle is installed, you will be able to retrieve the icons in SVG format with URLs like these:
/icon/climacon?iconset=climacons&format=svg&state=snow-flurries
It works quite well in a template!
<img style="filter: invert(60%) sepia(100%) hue-rotate(185deg) saturate(1000%);"
src="/icon/climacon?iconset=climacons&format=svg&state={{itemValue('Weather_Condition')}}"></img>
This approach allows the flexibility of altering the layout with templates (in a custom widget) with the ease of use of the iconset infrastructure - drop the .jar in the addons folder and you’re set.
If you have a weather widget in mind you would like to contribute, simply state this iconset bundle (or another one!) is a prerequisite.
Looking forward to your contributions!