Weather Underground binding not getting icon URLs

@Lolodomo

I was using an earlier version of the Weather Underground binding until today, when I installed OH2 build 1004, which contains the WU binding from the latest ESH stable build. I’m no longer getting the weather icon URLs.

This is the version I’m currently running.

191 | Active   |  80 | 0.9.0.201708041325     | WeatherUnderground Binding                             | org.eclipse.smarthome.binding.weatherunderground

The version I was running was very old, possibly from as far back as March (sorry I don’t have the actual build number).

This is what I see in the log when I turn on debug level logging.

2017-08-07 20:03:12.626 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#location with state Holmehurst, Catonsville, Maryland (String)
2017-08-07 20:03:12.632 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#stationId with state KMDCATON25 (String)
2017-08-07 20:03:12.636 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#observationTime with state 2017-08-07T20:03:11.000-0400 (GregorianCalendar)
2017-08-07 20:03:12.641 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#conditions with state Overcast (String)
2017-08-07 20:03:12.648 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#temperature with state 68.9 (BigDecimal)
2017-08-07 20:03:12.654 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#relativeHumidity with state 95 (Integer)
2017-08-07 20:03:12.658 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#windDirection with state WNW (String)
2017-08-07 20:03:12.663 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#windDirectionDegrees with state 300 (BigDecimal)
2017-08-07 20:03:12.667 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#windSpeed with state 0.0 (BigDecimal)
2017-08-07 20:03:12.673 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#windGust with state 0 (BigDecimal)
2017-08-07 20:03:12.678 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#pressure with state 29.89 (BigDecimal)
2017-08-07 20:03:12.682 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#dewPoint with state 68 (BigDecimal)
2017-08-07 20:03:12.686 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#heatIndex with state UNDEF (null)
2017-08-07 20:03:12.691 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#windChill with state UNDEF (null)
2017-08-07 20:03:12.695 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#feelingTemperature with state 68.9 (BigDecimal)
2017-08-07 20:03:12.699 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#visibility with state 16.1 (BigDecimal)
2017-08-07 20:03:12.704 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#solarRadiation with state 4 (BigDecimal)
2017-08-07 20:03:12.708 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#UVIndex with state 0.0 (BigDecimal)
2017-08-07 20:03:12.713 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#precipitationDay with state 0.69 (BigDecimal)
2017-08-07 20:03:12.717 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#precipitationHour with state 0.00 (BigDecimal)
2017-08-07 20:03:12.721 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#iconUrl: Can't get value: org.eclipse.smarthome.binding.weatherunderground.internal.json.WeatherUndergroundJsonCurrent.getIconUrl()
2017-08-07 20:03:12.722 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastToday#forecastTime with state 2017-08-07T19:00:00.000-0400 (GregorianCalendar)
2017-08-07 20:03:12.726 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastToday#conditions with state Overcast (String)
2017-08-07 20:03:12.730 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastToday#minTemperature with state 65 (BigDecimal)
2017-08-07 20:03:12.735 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastToday#maxTemperature with state 72 (BigDecimal)
2017-08-07 20:03:12.739 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastToday#relativeHumidity with state 96 (Integer)
2017-08-07 20:03:12.744 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastToday#iconUrl: Can't get value: org.eclipse.smarthome.binding.weatherunderground.internal.json.WeatherUndergroundJsonForecastDay.getIconUrl()
2017-08-07 20:03:12.744 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastTomorrow#forecastTime with state 2017-08-08T19:00:00.000-0400 (GregorianCalendar)
2017-08-07 20:03:12.748 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastTomorrow#conditions with state Mostly Cloudy (String)
2017-08-07 20:03:12.753 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastTomorrow#minTemperature with state 60 (BigDecimal)
2017-08-07 20:03:12.757 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastTomorrow#maxTemperature with state 79 (BigDecimal)
2017-08-07 20:03:12.761 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastTomorrow#relativeHumidity with state 67 (Integer)
2017-08-07 20:03:12.766 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastTomorrow#iconUrl: Can't get value: org.eclipse.smarthome.binding.weatherunderground.internal.json.WeatherUndergroundJsonForecastDay.getIconUrl()
2017-08-07 20:03:12.768 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastDay2#forecastTime with state 2017-08-09T19:00:00.000-0400 (GregorianCalendar)
2017-08-07 20:03:12.774 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastDay2#conditions with state Clear (String)
2017-08-07 20:03:12.779 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastDay2#minTemperature with state 62 (BigDecimal)
2017-08-07 20:03:12.783 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastDay2#maxTemperature with state 82 (BigDecimal)
2017-08-07 20:03:12.787 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastDay2#relativeHumidity with state 49 (Integer)
2017-08-07 20:03:12.792 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastDay2#iconUrl: Can't get value: org.eclipse.smarthome.binding.weatherunderground.internal.json.WeatherUndergroundJsonForecastDay.getIconUrl()
2017-08-07 20:03:12.792 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastDay3#forecastTime with state 2017-08-10T19:00:00.000-0400 (GregorianCalendar)
2017-08-07 20:03:12.796 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastDay3#conditions with state Partly Cloudy (String)
2017-08-07 20:03:12.801 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastDay3#minTemperature with state 65 (BigDecimal)
2017-08-07 20:03:12.805 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastDay3#maxTemperature with state 80 (BigDecimal)
2017-08-07 20:03:12.809 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastDay3#relativeHumidity with state 58 (Integer)
2017-08-07 20:03:12.814 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastDay3#iconUrl: Can't get value: org.eclipse.smarthome.binding.weatherunderground.internal.json.WeatherUndergroundJsonForecastDay.getIconUrl()

Yes, I was requested to replace icon URL by icon image. So the channel name has changed and the channel has to be linked to an image item now. Please take a look to the binding documentation.

1 Like

Thanks. I completely missed that!

Edit: Hoping this is the last time I have to change all the settings from Metric to English… :cry:

Hi,
could you show how you use the Image item in sitemaps. Cant get the icon to show…
This is my item:
Image Ikon "Icon " {channel=“weatherunderground:weather:cd8316cc:current#iconUrl”}
And sitemap:
Image item=Ikon

The icon channel has changed, see aboce and the binding doc:

https://docs.openhab.org/addons/bindings/weatherunderground/readme.html

Image Ikon "Icon " {channel=“weatherunderground:weather:cd8316cc:current#icon”}

Thank you :slight_smile:
Read all this many times but I missed it in my item…