New Weather Underground binding for Eclipse SmartHome / openHAB2

same error here :frowning:
every second request fails. anyone?

For information, I deleted the binding from the marketplace as it is now included in the official Eclipse Smarthome distributions and included in openHAB since the version 2.2.

For all users having communication errors, please enable the DEBUG logs for the binding, it should help to identify what is the error.
log:set DEBUG org.eclipse.smarthome.binding.weatherunderground

For information, I just submitted a code change that introduce new channels containing the icon key:

1 Like

I proposed another enhancement to provide the channel pressureTrend:

Excellentā€¦ thank you! If youā€™re looking for some more, hourly forecast (specifically, Iā€™d like current precip %) and weather alerts would be great to have in the binding!

If I currently have this binding installed, how do I upgrade to the new code that helps fix theā€¦

ā€œā€˜weatherunderground:weather:241f43f2ā€™ changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): An error occurred while running the Weather Underground request.ā€

Thanks!

As requested in the git issue, I need you enable DEBUG log to understand what is this communication error.

I have Debug enabled and this is what I am seeing in the log, I fear it doesnā€™t help much. This happens on every second request and the error is always the same (TimeoutExcption)

2018-02-14 07:25:38.141 [DEBUG] [nd.handler.WeatherUndergroundHandler] - URL = http://api.wunderground.com/api/xxxxxxxxxxxxxxxx/conditions/forecast10day/lang:DL/q/XX.xxxx,X.xxxx.json
2018-02-14 07:26:08.146 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Error running Weather Underground request: java.util.concurrent.TimeoutException
2018-02-14 07:26:08.157 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#observationTime with state UNDEF (null)
2018-02-14 07:26:08.159 [hingStatusInfoChangedEvent] - 'weatherunderground:weather:local' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): An error occurred while running the Weather Underground request.
2018-02-14 07:26:08.160 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#temperature with state UNDEF (null)
2018-02-14 07:26:08.163 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#relativeHumidity with state UNDEF (null)
2018-02-14 07:26:08.169 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#pressure with state UNDEF (null)
2018-02-14 07:26:08.173 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#feelingTemperature with state UNDEF (null)
2018-02-14 07:26:08.177 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel current#icon with state UNDEF (null)
2018-02-14 07:26:08.180 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastToday#conditions with state UNDEF (null)
2018-02-14 07:26:08.183 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastToday#minTemperature with state UNDEF (null)
2018-02-14 07:26:08.186 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastToday#maxTemperature with state UNDEF (null)
2018-02-14 07:26:08.191 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastTomorrow#forecastTime with state UNDEF (null)
2018-02-14 07:26:08.194 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastTomorrow#conditions with state UNDEF (null)
2018-02-14 07:26:08.197 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastTomorrow#minTemperature with state UNDEF (null)
2018-02-14 07:26:08.201 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastTomorrow#maxTemperature with state UNDEF (null)
2018-02-14 07:26:08.213 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastDay2#forecastTime with state UNDEF (null)
2018-02-14 07:26:08.219 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastDay2#minTemperature with state UNDEF (null)
2018-02-14 07:26:08.232 [DEBUG] [nd.handler.WeatherUndergroundHandler] - Update channel forecastDay2#maxTemperature with state UNDEF (null)
2018-02-14 07:26:08.417 [vent.ItemStateChangedEvent] - gl_WeatherLastUpdate changed from 2018-02-14T07:15:08.065+0100 to 2018-02-14T07:26:08.189+0100
2018-02-14 07:26:08.444 [vent.ItemStateChangedEvent] - gl_WeatherLastUpdate changed from 2018-02-14T07:26:08.189+0100 to 2018-02-14T07:26:08.388+0100

Ok so apparently the service is not always available to you.
Timeout for requests is set to 30 seconds which is already very high I think.

Are you using a WiFi connection ?
Maybe you have network problems like internet not available sometimes not available ?

We can see the 30 seconds delay in the 2 first lines in your logs.

Iā€™m having this exact same issue. I have a Personal Weather Station in Weather Underground. I use the binding to pull data into OH2 using the Weather Underground API. My OH2 is running on a wired connection.

Weatherunderground has API outages from time to time.

I donā€™t think it has to do with API outages, as there is a strict pattern for the failures. Every second attempt fails, no matter how often those requests are made. I tried different values for the refresh interval, result is always the same.
I am not using a WIFI connection.

I have no errors of this kind in my logs.
Sorry but I have no idea why WU rejects half of your requests. What refresh value did you set ? How many WU things did you create ?

Please note rhat all my changes implemented last weekend should be now included in snapshot 1212. I will confirm when I am at home.

@Lolodomoā€¦ what is the procedure to update to the latest version of the WU binding? Iā€™ll give it a try. Thanks

I can confirm that new channels iconKey and pressureTrend are available in openHAB snapshot 1212.

If you want the new version of the binding, you need to move to this snapshot.

I have only one thing with 11 items. My current refresh value is 10 minutes, but as I said I tried several other values to no avail. I know, itā€™s strange, but it seems that Iā€™m not the only one with that problem.