Iconset: Animated Climacons

Works like a charm! Thanks a lot @ysc!!!

thanks!

Sorry for the numpty question but is this in the nightly builds?

No, this isn’t part of the openHAB distribution.

Now it works (by the way: they look beautiful on my HABPanel @ysc !, thanx) , but it spits another error :slight_smile:

1 Like

Just fixed the above. Download a new version at https://github.com/ghys/org.openhab.ui.iconset.climacons/releases/latest

(OP edited)

1 Like

Excellent ! Thanx Yannick!

2017-08-06 21:08:42.084 [INFO ] [org.apache.felix.fileinstall        ] - Updating bundle org.openhab.ui.iconset.climacons / 2.2.0.201707061209
2017-08-06 21:08:42.107 [DEBUG] [org.openhab.ui.iconset.climacons    ] - BundleEvent UNRESOLVED - org.openhab.ui.iconset.climacons
2017-08-06 21:08:42.164 [DEBUG] [org.openhab.ui.iconset.climacons    ] - BundleEvent UPDATED - org.openhab.ui.iconset.climacons
2017-08-06 21:08:42.263 [DEBUG] [org.openhab.ui.iconset.climacons    ] - BundleEvent RESOLVED - org.openhab.ui.iconset.climacons
2017-08-06 21:08:42.268 [DEBUG] [org.openhab.ui.iconset.climacons    ] - BundleEvent STARTING - org.openhab.ui.iconset.climacons
2017-08-06 21:08:42.269 [DEBUG] [org.openhab.ui.iconset.climacons    ] - BundleEvent STARTED - org.openhab.ui.iconset.climacons
2017-08-06 21:08:42.283 [DEBUG] [org.openhab.ui.iconset.climacons    ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.ui.icon.IconProvider}={component.name=org.openhab.ui.iconset.climacons, component.id=66, service.id=517, service.bundleid=175, service.scope=bundle} - org.openhab.ui.iconset.climacons

(running org.openhab.ui.iconset.climacons 2.2.0.201708061635 on OH2.2 Snapshot Build #1003)

@ysc I submitted a pull request to fix the issue with the sun rotating around the clouds. Any chance you can look at it?

https://github.com/ghys/org.openhab.ui.iconset.climacons/pull/5

@david finally spent the time to configure the Travis build/releases for this repo -
new release @ https://github.com/ghys/org.openhab.ui.iconset.climacons/releases/latest
I trust you on the change (I don’t use these icons actually), would probably have been better to fix it upstream but looks like it’s been abandoned for years…
Thanks!

2 Likes

Installed the new icons today from your release and everything looks good. Granted, the forcast is sunny for the week :slight_smile:

Thanks for updating these!!

Did you ever find a good solution to this? Would you share your .replace solution? I currently have this issue, it appears partly-cloud-day and partly-cloudy-night never work.

i havent got day and night working

I use this:

rule "Weather Conditions Changed"
when
    Item WeatherConditions changed
then
    var urlicon = triggeringItem.state.toString()
    urlicon = urlicon.replace("-","") + "icon.svg"
    urlicon = "http://192.168.0.12:8080/static/" + urlicon
    WeatherIcon.postUpdate(urlicon)
end

The icons are as follow:

cleardayicon.svg
clearnighticon.svg
cloudyicon.svg
fogicon.svg
partlycloudydayicon.svg
partlycloudynighticon.svg
rainicon.svg
sleeticon.svg
snowicon.svg
sunnyicon.svg
UNDEFicon.svg
windicon.svg

The items:

String               WeatherConditions          "Current Conditions"                                   (Weather)               { weather="locationId=home, type=condition, property=commonId" }
String               WeatherIcon                "Current Conditions Icons"                             (Weather)               // Set in weather.rules

I use the weather binding with darksky/ForecastIo as a provider

And in HABpanel:

A frame widdget with the following settings:
image

Thank you! After a bit more effort, I was able to find the list of Weather Underground conditions. I now map those conditions back to the appropriate Climacon name. Here they are:

Drizzle=rain
Rain=rain
Snow=snow
Snow\ Grains=snow
Ice\ Crystals=freezing-drizzle
Ice\ Pellets=sleet
Hail=sleet
Mist=fog
Fog=fog
Fog\ Patches=fog
Smoke=dust
Volcanic\ Ash=dust
Widespread\ Dust=dust
Sand=dust
Haze=fog
Spray=rain
Dust\ Whirls=dust
Sandstorm=dust
Low\ Drifting\ Snow=blowing-snow
Low\ Drifting\ Widespread\ Dust=dust
Low\ Drifting\ Sand=dust
Blowing\ Snow=blowing-snow
Blowing\ Widespread\ Dust=dust
Blowing\ Sand=dust
Rain\ Mist=rain
Rain\ Showers=few-showers
Snow\ Showers=snow-showers
Snow\ Blowing\ Snow\ Mist=snow-showers
Ice\ Pellet\ Showers=sleet
Hail\ Showers=rain-and-sleet
Small\ Hail\ Showers=rain-and-sleet
Thunderstorm=thunder
Thunderstorms\ and\ Rain=thunder
Thunderstorms\ and\ Snow=thunder
Thunderstorms\ and\ Ice\ Pellets=thunder
Thunderstorms\ with\ Hail=thunder
Thunderstorms\ with\ Small\ Hail=thunder
Freezing\ Drizzle=freezing-drizzle
Freezing\ Rain=freezing-rain
Freezing\ Fog=fog
Light\ Drizzle=rain
Light\ Rain=rain
Light\ Snow=snow
Light\ Snow\ Grains=snow
Light\ Ice\ Crystals=freezing-drizzle
Light\ Ice\ Pellets=sleet
Light\ Hail=sleet
Light\ Mist=fog
Light\ Fog=fog
Light\ Fog\ Patches=fog
Light\ Smoke=dust
Light\ Volcanic\ Ash=dust
Light\ Widespread\ Dust=dust
Light\ Sand=dust
Light\ Haze=fog
Light\ Spray=rain
Light\ Dust\ Whirls=dust
Light\ Sandstorm=dust
Light\ Low\ Drifting\ Snow=blowing-snow
Light\ Low\ Drifting\ Widespread\ Dust=dust
Light\ Low\ Drifting\ Sand=dust
Light\ Blowing\ Snow=blowing-snow
Light\ Blowing\ Widespread\ Dust=dust
Light\ Blowing\ Sand=dust
Light\ Rain\ Mist=rain
Light\ Rain\ Showers=few-showers
Light\ Snow\ Showers=snow-showers
Light\ Snow\ Blowing\ Snow\ Mist=snow-showers
Light\ Ice\ Pellet\ Showers=sleet
Light\ Hail\ Showers=rain-and-sleet
Light\ Small\ Hail\ Showers=rain-and-sleet
Light\ Thunderstorm=thunder
Light\ Thunderstorms\ and\ Rain=thunder
Light\ Thunderstorms\ and\ Snow=thunder
Light\ Thunderstorms\ and\ Ice\ Pellets=thunder
Light\ Thunderstorms\ with\ Hail=thunder
Light\ Thunderstorms\ with\ Small\ Hail=thunder
Light\ Freezing\ Drizzle=freezing-drizzle
Light\ Freezing\ Rain=freezing-rain
Light\ Freezing\ Fog=fog
Heavy\ Drizzle=rain
Heavy\ Rain=rain
Heavy\ Snow=snow
Heavy\ Snow\ Grains=snow
Heavy\ Ice\ Crystals=freezing-drizzle
Heavy\ Ice\ Pellets=sleet
Heavy\ Hail=sleet
Heavy\ Mist=fog
Heavy\ Fog=fog
Heavy\ Fog\ Patches=fog
Heavy\ Smoke=dust
Heavy\ Volcanic\ Ash=dust
Heavy\ Widespread\ Dust=dust
Heavy\ Sand=dust
Heavy\ Haze=fog
Heavy\ Spray=rain
Heavy\ Dust\ Whirls=dust
Heavy\ Sandstorm=dust
Heavy\ Low\ Drifting\ Snow=blowing-snow
Heavy\ Low\ Drifting\ Widespread\ Dust=dust
Heavy\ Low\ Drifting\ Sand=dust
Heavy\ Blowing\ Snow=blowing-snow
Heavy\ Blowing\ Widespread\ Dust=dust
Heavy\ Blowing\ Sand=dust
Heavy\ Rain\ Mist=rain
Heavy\ Rain\ Showers=few-showers
Heavy\ Snow\ Showers=snow-showers
Heavy\ Snow\ Blowing\ Snow\ Mist=snow-showers
Heavy\ Ice\ Pellet\ Showers=sleet
Heavy\ Hail\ Showers=rain-and-sleet
Heavy\ Small\ Hail\ Showers=rain-and-sleet
Heavy\ Thunderstorm=thunder
Heavy\ Thunderstorms\ and\ Rain=thunder
Heavy\ Thunderstorms\ and\ Snow=thunder
Heavy\ Thunderstorms\ and\ Ice\ Pellets=thunder
Heavy\ Thunderstorms\ with\ Hail=thunder
Heavy\ Thunderstorms\ with\ Small\ Hail=thunder
Heavy\ Freezing\ Drizzle=freezing-drizzle
Heavy\ Freezing\ Rain=freezing-rain
Heavy\ Freezing\ Fog=fog
Patches\ of\ Fog=fog
Shallow\ Fog=fog
Partial\ Fog=fog
Overcast=cloudy
Clear=clear-night
Partly\ Cloudy=partly-cloudy-day
Mostly\ Cloudy=mostly-cloudy-day
Scattered\ Clouds=partly-cloudy-day
Small\ Hail=sleet
Squalls=storm
Funnel\ Cloud=storm
Unknown\ Precipitation=rain
Unknown=unknown

Then I have a rule that does this:

rule "Update conditions for HABPanel icon selection"
when
        Item LocalWeather_Current_Conditions_Formatted received update
then
        postUpdate(LocalWeather_Current_Conditions, transform("MAP", "weather_conditions.map", LocalWeather_Current_Conditions_Formatted.state.toString()))
end

Problem solved, however I would love advice on how to create a solution that would take the day or night into account for those appropriate conditions.

rule "Update conditions for HABPanel icon selection"
when
    Item LocalWeather_Current_Conditions_Formatted received update
then
    if (TimeOfDay.state = "DAY") {
        LocalWeather_Current_Conditions.postUpdate(transform("MAP", "weather_conditions_day.map", LocalWeather_Current_Conditions_Formatted.state.toString()))
    } else if (TimeOfDay = "NIGHT" {
        LocalWeather_Current_Conditions.postUpdate(transform("MAP", "weather_conditions_night.map", LocalWeather_Current_Conditions_Formatted.state.toString()))
    }
end

For TimeOfDay, see: Design Pattern: Time Of Day

2 Likes

Hi @david & @ysc,

I use these icon sets for my HABPanel weather panel for the last 3 years. Now that I’m upgrading to OH 3.x this binding isn’t loading now.

Would you consider rebuilding it against the OH 3.x branch?

Best, Jay

I’ll consider it (or in fact I would appreciate a PR), this could become a nice addition to the #marketplace!

I think I did it right, this is the first PR I’ve done.

Upgrade 2.5 Climacons JAR from 2.5 to 3.x · Issue #10 · ghys/org.openhab.ui.iconset.climacons (github.com)

Best, Jay

this is an issue, not a PR (where you bring along the code), but okay :laughing:

1 Like

You can ignore this request back on Nov 21st. I have moved away from using that binding since you didn’t have time to convert it to the OH 3.x framework.

Best, Jay