I’m struggling since quite a while with the weather binding.
I don’t see any errors in the openhab b4 (binding-weather1 - 1.9.0.b5) weather.cfg but I don’t manage to get it working. I tried several providers, webview , items. Always the same mess (see logs and weather.cfg below).
I don’t have any idea on wat screws here.
Rainer
Weather as webview kicks out a
HTTP ERROR 500
Problem accessing /weather. Reason:
Server Error
Caused by:
javax.servlet.ServletException: Weather locationId ‘homeHamWeather’ does not exist
Items using the weather bindings remain also NULL
KARAF log:
javax.servlet.ServletException: Weather locationId ‘homeHamWeather’ does not exist
at org.openhab.binding.weather.internal.gfx.WeatherServlet.doGet(WeatherServlet.java:102)[218:org.openhab.binding.weather:1.9.0.b5]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)[19:javax.servlet-api:3.1.0]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)[19:javax.servlet-api:3.1.0]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)[79:org.eclipse.jetty.servlet:9.2.19.v20160908]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[79:org.eclipse.jetty.servlet:9.2.19.v20160908]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71)[170:org.ops4j.pax.web.pax-web-jetty:4.3.0]
Weather binding is active
218 | Active | 80 | 1.9.0.b5 | openHAB Weather Binding
LOG during startup looks ok
19:48:13.305 [INFO ] [eather.internal.common.WeatherConfig] - ProviderConfig[providerName=HAMWEATHER,apiKey=,apiKey2=UFLV7MyQerVgk7cDCu8j2plegfUgm]
19:48:13.309 [INFO ] [eather.internal.common.WeatherConfig] - ProviderConfig[providerName=OPENWEATHERMAP,apiKey=10ca]
19:48:13.313 [INFO ] [eather.internal.common.WeatherConfig] - ProviderConfig[providerName=WUNDERGROUND,apiKey=b6a]
19:48:13.319 [INFO ] [eather.internal.common.WeatherConfig] - ProviderConfig[providerName=FORECASTIO,apiKey=69a676e1773d]
19:48:13.324 [INFO ] [eather.internal.common.WeatherConfig] - LocationConfig[providerName=OPENWEATHERMAP,language=en,updateInterval=240,latitude=,longitude=6.842528,woeid=,locationId=homeOWM,name=_OpenWeatherMap]
19:48:13.326 [INFO ] [eather.internal.common.WeatherConfig] - LocationConfig[providerName=WUNDERGROUND,language=fr,updateInterval=30,latitude=,longitude=,woeid=,locationId=homeWU,name=_WeatherUnderground]
19:48:13.329 [INFO ] [eather.internal.common.WeatherConfig] - LocationConfig[providerName=FORECASTIO,language=fr,updateInterval=10,latitude=,longitude=,woeid=,locationId=homeFIO,name=_Forecast_IO]
19:48:13.331 [INFO ] [eather.internal.common.WeatherConfig] - LocationConfig[providerName=HAMWEATHER,language=en,updateInterval=240,latitude=,longitude=*,woeid=,locationId=homeHamWeather,name=_HamWeather]
LATER IN THE LOG – DISABLES WEATHER BINDINGS !!! WHY ???
19:48:16.376 [INFO ] [ternal.scheduler.WeatherJobScheduler] - Disabling weather locationId ‘homeWU’, no binding available
19:48:16.378 [INFO ] [ternal.scheduler.WeatherJobScheduler] - Disabling weather locationId ‘homeFIO’, no binding available
19:48:16.380 [INFO ] [ternal.scheduler.WeatherJobScheduler] - Disabling weather locationId ‘homeHamWeather’, no binding available
Weather.cfg
apikey.Hamweather=qjRavOspDGr0IW********
apikey2.Hamweather=gp8zoVxVAhdUFLV7MyQerVgk********
location.homeHamWeather.name=********
location.homeHamWeather.latitude=********
location.homeHamWeather.longitude=********
location.homeHamWeather.provider=Hamweather
apikey.Wunderground=********
location.homeWU.name=LesAdrets_WeatherUnderground
location.homeWU.latitude=********
location.homeWU.longitude=********
location.homeWU.provider=Wunderground
apikey.ForecastIo=********
location.homeFIO.name=_IO
location.homeFIO.latitude=43.524664
location.homeFIO.longitude=
location.homeFIO.provider=ForecastIo
location.homeFIO.language=fr
location.homeFIO.updateInterval=10