Weather Binding "CommonId not found" since upgrad 1.8.0

Thank you for the new org.openhab.binding.weather-1.9.0-SNAPSHOT.jar
…which also works with 1.8.0. :slightly_smiling:

1 Like

Hallo
the new org.openhab.binding.weather-1.9.0-SNAPSHOT.jar also works for me under 1.8.0.

1 Like

confirmed working
for the WOEID i only used the numbers and it works :slight_smile: thnx for the quick support

1 Like

@watou
I’ve copied your weather binding’s jar file to my 1.8 version.
Unfortunately it doesn’t work.

My openhab.cfg has these entries

#weather:location.home.latitude=48.xxxx
#weather:location.home.longitude=9.yyyy
weather:location.home.provider=Yahoo
weather:location.home.language=de
weather:location.home.woeid=70327
weather:location.home.name=Waiblingen
weather:location.home.updateInterval=10

On my HTML page the ${weather:temperature.current(%.1f)}, ${weather:atmosphere.humidity}, ${weather:condition.observationTime(%1$td.%1$tm.%1$tY %1$tH:%1$tM)}, ${weather:atmosphere.pressure(%.1f)} are empty

OpenHAB’s protocol contains these entries at the beginning:

2016-01-27 19:55:06.218 [WARN ] [o.b.w.i.parser.CommonIdHandler] - CommonId not found: CommonIdHandler[provider=YAHOO,id=<null>,icon=<null>]
2016-01-27 19:55:06.233 [WARN ] [o.o.b.w.i.bus.WeatherPublisher] - Weather forecast day 1 not available for locationId 'home', only 0 available
2016-01-27 19:55:06.234 [WARN ] [o.o.b.w.i.bus.WeatherPublisher] - Weather forecast day 2 not available for locationId 'home', only 0 available
2016-01-27 19:55:06.235 [WARN ] [o.o.b.w.i.bus.WeatherPublisher] - Weather forecast day 1 not available for locationId 'home', only 0 available
2016-01-27 19:55:06.236 [WARN ] [o.o.b.w.i.bus.WeatherPublisher] - Weather forecast day 0 not available for locationId 'home', only 0 available
2016-01-27 19:55:06.236 [WARN ] [o.o.b.w.i.bus.WeatherPublisher] - Weather forecast day 4 not available for locationId 'home', only 0 available
2016-01-27 19:55:06.240 [WARN ] [o.o.b.w.i.bus.WeatherPublisher] - Weather forecast day 3 not available for locationId 'home', only 0 available
2016-01-27 19:55:06.241 [WARN ] [o.o.b.w.i.bus.WeatherPublisher] - Weather forecast day 2 not available for locationId 'home', only 0 available
2016-01-27 19:55:06.242 [WARN ] [o.o.b.w.i.bus.WeatherPublisher] - Weather forecast day 4 not available for locationId 'home', only 0 available
2016-01-27 19:55:06.242 [WARN ] [o.o.b.w.i.bus.WeatherPublisher] - Weather forecast day 3 not available for locationId 'home', only 0 available
2016-01-27 19:55:06.255 [WARN ] [o.o.b.w.i.bus.WeatherPublisher] - Weather forecast day 2 not available for locationId 'home', only 0 available
2016-01-27 19:55:06.255 [WARN ] [o.o.b.w.i.bus.WeatherPublisher] - Weather forecast day 1 not available for locationId 'home', only 0 available
2016-01-27 19:55:06.257 [WARN ] [o.o.b.w.i.bus.WeatherPublisher] - Weather forecast day 3 not available for locationId 'home', only 0 available
2016-01-27 19:55:06.258 [WARN ] [o.o.b.w.i.bus.WeatherPublisher] - Weather forecast day 0 not available for locationId 'home', only 0 available
2016-01-27 19:55:06.259 [WARN ] [o.o.b.w.i.bus.WeatherPublisher] - Weather forecast day 4 not available for locationId 'home', only 0 available

For each forecast entry exeptions follow later on.

I made a request manually with my woeid

query.yahooapis.com/v1/public/yql?format=json&q=SELECT * FROM weather.forecast WHERE u%3D'c' AND woeid%3D'703274'

and got a result with forecasts at the end

{"query":{"count":1,"created":"2016-01-27T20:03:10Z","lang":"de","results":{"channel":{"title":"Yahoo! Weather - Waiblingen, DE","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Waiblingen__DE/*http://weather.yahoo.com/forecast/GMXX4501_c.html","description":"Yahoo! Weather for Waiblingen, DE","language":"en-us","lastBuildDate":"Wed, 27 Jan 2016 7:59 pm CET","ttl":"60","location":{"city":"Waiblingen","country":"Germany","region":"BW"},"units":{"distance":"km","pressure":"mb","speed":"km/h","temperature":"C"},"wind":{"chill":"13","direction":"210","speed":"11.27"},"atmosphere":{"humidity":"53","pressure":"1020.3","rising":"0","visibility":""},"astronomy":{"sunrise":"7:58 am","sunset":"5:11 pm"},"image":{"title":"Yahoo! Weather","width":"142","height":"18","link":"http://weather.yahoo.com","url":"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"},"item":{"title":"Conditions for Waiblingen, DE at 7:59 pm CET","lat":"48.83","long":"9.31","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Waiblingen__DE/*http://weather.yahoo.com/forecast/GMXX4501_c.html","pubDate":"Wed, 27 Jan 2016 7:59 pm CET","condition":{"code":"26","date":"Wed, 27 Jan 2016 7:59 pm CET","temp":"13","text":"Cloudy"},"description":"\n<img src=\"http://l.yimg.com/a/i/us/we/52/26.gif\"/><br />\n<b>Current Conditions:</b><br />\nCloudy, 13 C<BR />\n<BR /><b>Forecast:</b><BR />\nWed - Cloudy. High: 14 Low: 10<br />\nThu - Light Rain. High: 11 Low: 3<br />\nFri - Partly Cloudy. High: 11 Low: 2<br />\nSat - Mostly Sunny. High: 13 Low: 8<br />\nSun - Light Rain/Wind. High: 12 Low: 11<br />\n<br />\n<a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/Waiblingen__DE/*http://weather.yahoo.com/forecast/GMXX4501_c.html\">Full Forecast at Yahoo! Weather</a><BR/><BR/>\n(provided by <a href=\"http://www.weather.com\" >The Weather Channel</a>)<br/>\n","forecast":[{"code":"26","date":"27 Jan 2016","day":"Wed","high":"14","low":"10","text":"Cloudy"},{"code":"11","date":"28 Jan 2016","day":"Thu","high":"11","low":"3","text":"Light Rain"},{"code":"30","date":"29 Jan 2016","day":"Fri","high":"11","low":"2","text":"Partly Cloudy"},{"code":"34","date":"30 Jan 2016","day":"Sat","high":"13","low":"8","text":"Mostly Sunny"},{"code":"11","date":"31 Jan 2016","day":"Sun","high":"12","low":"11","text":"Light Rain/Wind"}],"guid":{"isPermaLink":"false","content":"GMXX4501_2016_01_31_7_00_CET"}}}}}}

Maybe I’m wrong, but it looks like you used your postal code as woeid … ?
You can look up your woeid f.e. here.

Edit: ahh, okay, now I see: in your manually approach you are using a six digit woeid (looks correct) while in your openhab.cfg you only use 5 digits. Why the difference?

Putting Waiblingen in Yahoo weather, it looks like you missed the digit 4 at the end of your woeid.

@sihui @watou :+1:your eyes are much better than mine.
In every comment in my openhab.cfg the woeid has the correct five digits. But not there where it is really important.
Problem is solved now. Thanx!

Now I see the really bad weather also for the next days

1 Like

Keep warm and dry!

Hallo
Yahoo weather binding doesn’t work, I get this error:
2016-03-24 17:48:48.440 [ERROR] [.w.i.p.AbstractWeatherProvider] - YAHOO[home]: Can’t retreive weather data: HTTP/1.0 400 Bad Request

Openhab 1.8.1 and weather binding 1.9.snapshot

Same problem, started yesterday, First thought that this is only my problem, but it seems to involve more people. So has anyone got any solution already or have to change Yahoo weather for something else?

There’s this messahe on weather api page:

To increase the security measure and better serving our YDN customers, weather data source will enforce OAuth 1 starting March 15, 2016. Please update your API calls with OAuth 1 enabled (via the OAuth /v1/yql end point if using YQL) using your Yahoo App key and secret.
old: https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22nome%2C%20ak%22)&format=json
new: https://query.yahooapis.com/v1/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22nome%2C%20ak%22)&format=json

I started receiving this same message this morning (Weather forecast day 1 not available for locationId ‘home’, only 0 available etc…) and as at 9:18am NZL time, my temperature has changed from Celsius to Fahrenheit. I have made NO configuration changes. Is anyone else seeing their weather binding start outputting temp’s in Fahrenheit randomly?

Yes, same here since this morning.
°C changed to Fahrenheit.
Additionally I have UTF-8 issues again:

Bew��lkt - 38/43°C

Hello Community

This morning i tried to update my openhab from 1.7.1 to 1.8.2 because of an issue with the homematic binding.

The last few hours i tried to fix my weather bindings, because it stopped working since the update.

But I’m not only using Yahoo, I also use ForecastIo and WorldWeatherOnline. All three stopped working with my 1.7.2 config. I’ve checked to config files but could find any difference.

Doing a rollback corrects the problem with the weather binding.
So I may guess the 1.8 weahter bindings have an problem.

Both Versions are in seperate direcotories, so i can switch between them.

regrads and happy easter

Are you using features of the weather binding that were later removed?

Hello @chimera I am also seeing the same issues you describe above, with everything changing to F from C

I check again this morning was Fahrenheit, just checked again right now my persistence graph shows it changed back to Celsius as at midday NZL time!

I wonder if yahoo screwed up something.

I still have an issue where my webview (using example.html layout) works under local wifi but fails remotely via my.openhab.org view on my iPhone. Throws an error:

Cannot GET /weather?locationId=home&layout=example&iconset=colorful

Sorry I did not get it.

I think I am not using something special.
Here is my config of my primary weather provider:

Number home_Temperatur “Temperatur [%.1f °C]” { weather=“locationId=home, type=temperature, property=current” }
Number home_Temperatur_Min “Temperatur min [%.1f °C]” { weather=“locationId=home, forecast=0, type=temperature, property=min” }
Number home_Temperatur_Max “Temperatur max [%.1f °C]” { weather=“locationId=home, forecast=0, type=temperature, property=max” }

Number home_Temperatur_Feel “Temperatur gefühlt [%.1f °C]” { weather=“locationId=home, type=temperature, property=feel” }
Number home_Temperatur_Taupunkt “Taupunkt [%.1f °C]” { weather=“locationId=home, type=temperature, property=dewpoint” }
Number home_Luftfeuchtigkeit “Luftfeuchte [%d %%]” { weather=“locationId=home, type=atmosphere, property=humidity” }
Number home_Luftdruck “Luftdruck [%.0f mb]” { weather=“locationId=home, type=atmosphere, property=pressure” }
Number home_Bewoelkung “Bewölkung [%.0f %%]” { weather=“locationId=home, type=clouds, property=percent” }
String home_Wetter “Wetter [%s]” { weather=“locationId=home, type=condition, property=text” }
Number home_Regen “Regen [%.2f mm/h]” { weather=“locationId=home, type=precipitation, property=rain” }
Number home_Vorhersage “Regenwahrscheinlichkeit [%d %%]” { weather=“locationId=home, type=precipitation, property=probability” }
Number home_Windgeschwindigkeit “Windgeschwindigkeit [%.0f km/h]” { weather=“locationId=home, type=wind, property=speed” }
String home_Windrichtung “Windrichtung [%s]” { weather=“locationId=home, type=wind, property=direction” }
Number home_Windrichtung_Grad “Windrichtung [%d°]” { weather=“locationId=home, type=wind, property=degree” }
Number home_Ozon “Ozon [%d ppm]” { weather=“locationId=home, type=atmosphere, property=ozone” }
Number home_Niederschlag “Niederschlagswahrscheinlichkeit [%d %%]” { weather=“locationId=home, forecast=0, type=precipitation, property=probability” }
Number home_Regen_Pro “Nierschlag Regen [%.2f mm/h]” { weather=“locationId=home, forecast=0, type=precipitation, property=rain” }
Number home_Schnee_Pro “Niederschalg Schnee [%.2f mm/h]” { weather=“locationId=home, forecast=0, type=precipitation, property=snow” }
Number home_Temperatur_Zeitraum “Temperatur - Zeitraum”
DateTime home_Letztes_Update “Letztes Update [%1$td.%1$tm.%1$tY %1$tH:%1$tM]” { weather=“locationId=home, type=condition, property=lastUpdate” }

Do you mean, some features where removed? Because the complete addon did not get any data. Are was no updates in the event.log regarding weather data.

Kind regrads
Manuel

The item token was removed some time ago, so entries in your web view like ${item:WeatherWind.value} don’t work in the current binding. Later, Yahoo! changed their weather API so that there is no longer a practical way to take a lat,long as input to produce a woeid, so for Yahoo provider you have to specify woeid in your openhab.cfg. Any recent hiccups are due (I think) to changes or problems with the weather API provider(s).

First of all I’m not using Yahoo. So this will not cause any trouble.

The removal of the item token will require updating my item.cfg file. Or do I have to update my sitemap.cfg file or both?
I’ve just read the wiki page of the weather plugin multiple times and don’t understand how to change my configs to have a valid and working one. The docu only refers to a new config “html layout” section. Also I don’t understand how to refer to multiple data providers.

Maybe someone can post a short example for the item.cfg and sitemap.cfg.

Thanks a lot