openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.87k stars 3.58k forks source link

[weather] 1.9 weather fails to load API key in OH2 build #320 #964

Closed xsnrg closed 8 years ago

xsnrg commented 8 years ago

I just loaded version 1.9.0.201605230110 of the weather binding tonight. My configuration file for the binding has not changed in months. The API key is printed earlier in the log, but when it goes to use it, the following is the result. This binding has been working flawlessly for months.

22:45:22.294 [INFO ] [ternal.scheduler.WeatherJobScheduler] - Starting and scheduling weatherJob-home with interval of 5 minutes
22:45:22.299 [DEBUG] [eather.internal.scheduler.WeatherJob] - Starting Weather job for location 'home'
22:45:22.763 [WARN ] [ther.internal.parser.CommonIdHandler] - CommonId not found: CommonIdHandler[provider=WUNDERGROUND,id=<null>,icon=<null>]
22:45:22.763 [ERROR] [nal.provider.AbstractWeatherProvider] - WUNDERGROUND[home]: Can't retreive weather data: missingkey
22:45:22.765 [DEBUG] [nal.provider.AbstractWeatherProvider] - WUNDERGROUND[home]: Weather[Temperature[current=<null>,min=<null>,max=<null>,feel=<null>,dewpoint=<null>],Atmosphere[humidity=<null>,visibility=<null>,pressure=<null>,pressureTrend=<null>,ozone=<null>,uvIndex=<null>],Clouds[percent=<null>],Condition[text=<null>,lastUpdate=<null>,observationTime=<null>,id=<null>,icon=<null>,commonId=<null>],Precipitation[rain=0.0,snow=0.0,probability=<null>,total=<null>],Wind[speed=<null>,direction=<null>,degree=<null>,gust=<null>,chill=<null>],Station[name=<null>,id=<null>,latitude=<null>,longitude=<null>],missingkey]

This is a Linux system running the latest OpenHAB2 distribution also from tonight.

I don't know where to put things that might be changes in the compatibility layers, so will start here. Happy to move it if this doesn't make sense.

xsnrg commented 8 years ago

Though this is behaviour I do not recall seeing before, I am going to close this issue as in later attempts it succeeds in using the key. It also appears to work thereafter, so perhaps a resource was not available for the binding early on. There was nothing in the log file to indicate anything missing, and bundle:diag and bundle:list looked normal.