Problem with weather-binding (weather underground provider)

Hello

a few days before i recognized, that my weather items are not updated correctly anymore.
I did not make any changes to the setup so i don’t know what’s wrong there.
Sometimes i get new values but pretty often i get an error:

2018-06-18 12:39:06.305 [ERROR] [org.openhab.io.net.http.HttpUtil    ] - Fatal transport error: java.net.SocketTimeoutException: Read timed out
2018-06-18 12:39:06.306 [ERROR] [nal.provider.AbstractWeatherProvider] - WUNDERGROUND[home]: Can't retreive weather data: Error: response is empty!
2018-06-18 12:39:06.307 [WARN ] [eather.internal.bus.WeatherPublisher] - Weather forecast day 1 not available for locationId 'home', only 0 available
2018-06-18 12:39:06.308 [WARN ] [eather.internal.bus.WeatherPublisher] - Weather forecast day 1 not available for locationId 'home', only 0 available
2018-06-18 12:39:06.308 [WARN ] [eather.internal.bus.WeatherPublisher] - Weather forecast day 1 not available for locationId 'home', only 0 available
2018-06-18 12:39:06.309 [WARN ] [eather.internal.bus.WeatherPublisher] - Weather forecast day 1 not available for locationId 'home', only 0 available
2018-06-18 12:39:06.310 [WARN ] [eather.internal.bus.WeatherPublisher] - Weather forecast day 1 not available for locationId 'home', only 0 available
2018-06-18 12:39:06.310 [WARN ] [eather.internal.bus.WeatherPublisher] - Weather forecast day 1 not available for locationId 'home', only 0 available
2018-06-18 12:39:06.311 [WARN ] [eather.internal.bus.WeatherPublisher] - Weather forecast day 0 not available for locationId 'home', only 0 available
2018-06-18 12:39:06.311 [WARN ] [eather.internal.bus.WeatherPublisher] - Weather forecast day 1 not available for locationId 'home', only 0 available
2018-06-18 12:39:06.312 [WARN ] [eather.internal.bus.WeatherPublisher] - Weather forecast day 0 not available for locationId 'home', only 0 available

Is this a known problem with the WU server or is my setup working incorrectly?

I noticed that last night too, but don’t use the weather enough to investigate further. May look later if I have a chance

I guess your problem is related to the fact that they don’t support free api’s anymore:

To improve our services and enhance the relationship with our users, we will no longer provide free weather API keys as part of our program.

https://apicommunity.wunderground.com/weatherapi/topics/weather-underground-api-changes

3 Likes

… Okay. Thanks for that information.
Which service would you recommend?
I edited all icons to the CommonID so this will be some work now :wink:
Could you recommend a service that provides a list of the used CommonID’s?
Thank you!

I chose Yahoo for now. Working again!
I can’t find a list of CommonID’s used from yahoo.
do you have a link for me?
At least “partly-cloudy” seems to be the same :wink:

I don’t use any, have my own weather sensors :sunglasses:

Your own weather station will not provide, for example, forecast for 10 days :cowboy_hat_face:. At least mine can’t…
I’m facing the same problem with WU and thinking about switch to darksky.net (forecast.io)

Hi!

I am trying to use Yahoo in the weather binding.
I don’t want to use the dedicated yahoo binding because i need the commonid and the normal weather binding provides more items.
somehow it does not work although i am pretty sure everything is set up correctly …

weather.cfg:

location.home.name=Wohnung
location.home.woeid=12838653      #(required for Yahoo provider)
location.home.provider=Yahoo
location.home.language=de
location.home.updateInterval=10
location.home.units=SI

part of the items-file:

//forecast
Number   Temperature_Tomorrow "Temperature [%.2f °C]"       {weather="locationId=home, forecast=1, type=temperature, property=current"}
Number   Temp_Feel_Tomorrow   "Temperature feel [%.2f °C]"  {weather="locationId=home, forecast=1, type=temperature, property=feel"}
Number   Humidity_Tomorrow    "Humidity [%d %%]"  	        {weather="locationId=home, forecast=1, type=atmosphere, property=humidity"}
String   CommonId_Tomorrow    "[MAP(Wetter.map):%s]"        {weather="locationId=home, forecast=1, type=condition, property=commonId"}
Number   Pressure_Tomorrow    "Pressure [%.2f mb]"          {weather="locationId=home, forecast=1, type=atmosphere, property=pressure"}

i get the following error:

018-06-20 07:45:28.126 [ERROR] [nal.provider.AbstractWeatherProvider] - YAHOO: Invalid uri 'http://query.yahooapis.com/v1/public/yql?format=json&q=SELECT%20*%20FROM%20weather.forecast%20WHERE%20u%3D'c'%20AND%20woeid%20%3D%20'12838653      #(required for Yahoo provider)'': Invalid query
2018-06-20 07:45:28.127 [ERROR] [eather.internal.scheduler.WeatherJob] - Invalid uri 'http://query.yahooapis.com/v1/public/yql?format=json&q=SELECT%20*%20FROM%20weather.forecast%20WHERE%20u%3D'c'%20AND%20woeid%20%3D%20'12838653      #(required for Yahoo provider)'': Invalid query
java.lang.IllegalArgumentException: Invalid uri 'http://query.yahooapis.com/v1/public/yql?format=json&q=SELECT%20*%20FROM%20weather.forecast%20WHERE%20u%3D'c'%20AND%20woeid%20%3D%20'12838653      #(required for Yahoo provider)'': Invalid query
	at org.apache.commons.httpclient.HttpMethodBase.<init>(HttpMethodBase.java:222) [193:org.apache.servicemix.bundles.commons-httpclient:3.1.0.7]
	at org.apache.commons.httpclient.methods.GetMethod.<init>(GetMethod.java:89) [193:org.apache.servicemix.bundles.commons-httpclient:3.1.0.7]
	at org.openhab.io.net.http.HttpUtil.createHttpMethod(HttpUtil.java:314) [194:org.openhab.core.compat1x:2.3.0]
	at org.openhab.io.net.http.HttpUtil.executeUrl(HttpUtil.java:167) [194:org.openhab.core.compat1x:2.3.0]
	at org.openhab.io.net.http.HttpUtil.executeUrl(HttpUtil.java:130) [194:org.openhab.core.compat1x:2.3.0]
	at org.openhab.io.net.http.HttpUtil.executeUrl(HttpUtil.java:87) [194:org.openhab.core.compat1x:2.3.0]
	at org.openhab.io.net.http.HttpUtil.executeUrl(HttpUtil.java:67) [194:org.openhab.core.compat1x:2.3.0]
	at org.openhab.binding.weather.internal.provider.AbstractWeatherProvider.executeRequest(AbstractWeatherProvider.java:96) [288:org.openhab.binding.weather:1.12.0]
	at org.openhab.binding.weather.internal.provider.AbstractWeatherProvider.getWeather(AbstractWeatherProvider.java:50) [288:org.openhab.binding.weather:1.12.0]
	at org.openhab.binding.weather.internal.scheduler.WeatherJob.execute(WeatherJob.java:49) [288:org.openhab.binding.weather:1.12.0]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [107:org.eclipse.smarthome.core.scheduler:0.10.0.oh230]
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [107:org.eclipse.smarthome.core.scheduler:0.10.0.oh230]

what’s that supposed to mean? Thanks!

Try to remove comment

#(required for Yahoo provider)

From your config file

2 Likes

worked!

i thought it is a comment.
i only used // in the past. does # ignore the whole line or how is this used?

thanks a lot!

now i only need to find a list of common-ids used by yahoo …

I’m not sure if this is what you are looking for:
developer.yahoo.com/weather/archive.html#codes