gsaw
(Georg Sawtschuk)
October 11, 2016, 12:22am
1
Hi,
I have troubles with activating Weather binding using OpenWeatherMap provider. I have in Logs following messages
00:12:44.484 [TRACE] [er.internal.metadata.MetadataHandler] - Added forecast mapping OPENWEATHERMAP: list
00:12:44.486 [TRACE] [er.internal.metadata.MetadataHandler] - Added forecast mapping WUNDERGROUND: forecast.simpleforecast.forecastday
00:12:44.487 [TRACE] [er.internal.metadata.MetadataHandler] - Added forecast mapping FORECASTIO: daily.data
00:12:44.488 [TRACE] [er.internal.metadata.MetadataHandler] - Added forecast mapping WORLDWEATHERONLINE: data.weather
00:12:44.489 [TRACE] [er.internal.metadata.MetadataHandler] - Added forecast mapping YAHOO: query.results.channel.item.forecast
00:12:44.491 [TRACE] [er.internal.metadata.MetadataHandler] - Added forecast mapping HAMWEATHER: response.responses.response.periods
00:12:44.492 [TRACE] [er.internal.metadata.MetadataHandler] - Added forecast mapping METEOBLUE: forecast
00:12:44.648 [ERROR] [.weather.internal.bus.WeatherBinding] - Error activating WeatherBinding: CommonId for provider YAHOO with id 0 already exists
java.lang.IllegalArgumentException: CommonId for provider YAHOO with id 0 already exists
.....
00:12:44.813 [INFO ] [eather.internal.common.WeatherConfig] - ProviderConfig[providerName=OPENWEATHERMAP,apiKey=df16354faee24...
00:12:44.823 [INFO ] [eather.internal.common.WeatherConfig] - LocationConfig[providerName=OPENWEATHERMAP,language=de,updateInterval=30,latitude=48.700001,longitude=9.01667,woeid=<null>,locationId=Sindelfingen,name=Sindelfingen]
....
00:12:47.838 [INFO ] [ternal.scheduler.WeatherJobScheduler] - Disabling weather locationId 'Sindelfingen', no binding available
Log entries seems to be similar this bug 3829 but the bug is closed early this year, but i just installed lattest snapshot 2.0.0 from last week.
Do i some thing wrong? There is my config
apikey.OpenWeatherMap=df16354faee2....
# location configuration, you can specify multiple locations
location.Sindelfingen.name=Sindelfingen
location.Sindelfingen.latitude=48.700001
location.Sindelfingen.longitude=9.01667
#location.Sindelfingen.woeid=111
location.Sindelfingen.provider=OpenWeatherMap
location.Sindelfingen.language=de
location.Sindelfingen.updateInterval=30
What do I wrong or can do better?
Thanks
pahansen
(Paul Hansen)
October 11, 2016, 1:56am
2
Have you tried this:
You are right, entries of cfg files are only added/updated, but other/older entries are not deleted automatically (because they might have come from a different source, so it might be dangerous to delete them).
Instead of manually messing around the cache folder, you can simply use the console to clear your configuration. Do a
openhab> config:list
and you will see all configs that are set in the system. To delete one, simply do a
config:delete org.openhab.weather
Hope this helps!
You can also find the cache files in userdata\cache\org.eclipse.osgi\7\data\config\org\openhab but it’s not ideal to delete these manually.
gsaw
(Georg Sawtschuk)
October 11, 2016, 9:17am
3
I tried that, but without luck. My locationId is still desabled. Same messages in Log about YAHOO and duplicate zero Id and this
Disabling weather locationId 'Sindelfingen', no binding available
The funny is, i’m getting this additional error message after deleting config
09:05:48.706 [ERROR] [org.apache.felix.configadmin ] - [org.osgi.service.cm.ManagedService, org.osgi.service.event.EventHandler, id=334, bundle=195/mvn:org.openhab.binding/org.openhab.binding.weather/1.9.0-SNAPSHOT]: Updating property weather of configuration org.openhab.weather caused a problem: Unable to find any configuration settings for weather binding. Check openhab.cfg.
org.osgi.service.cm.ConfigurationException: weather : Unable to find any configuration settings for weather binding. Check openhab.cfg.
at org.openhab.binding.weather.internal.bus.WeatherBinding.updated(WeatherBinding.java:76)[195:org.openhab.binding.weather:1.9.0.201610060111]
...
But still getting an info message about disabling locationId “Sindelfingen”
I have fresh installation of OH2. I just edited weather.conf to the version in starting post right after installing weather extension.
Georg,
I had similar problems a few days ago, though I am using wunderground rather than yahoo.
Did you restart OpenHAB after you deleted the weather.config file from the cache? Once the weather.config file is re-created, could you check the file to ensure that it matches the weather.cfg file from the services directory?
Chris
gsaw
(Georg Sawtschuk)
October 11, 2016, 3:27pm
5
Hi,
yes I did, and I did more: I removed extension, removed config in console, stopped the server, removed from cache any weather files, re-installed extension, reconfigured it all for wunderground as follow, started server again and still have same error “Disabled…”
#apikey.OpenWeatherMap=df16354faee..
apikey.Wunderground=afd56de...
# location configuration, you can specify multiple locations
#location.sindelfingen.name=Sindelfingen
#location.sindelfingen.latitude=48.700001
#location.sindelfingen.longitude=9.01667
#location.sindelfingen.provider=OpenWeatherMap
#location.sindelfingen.language=de
#location.sindelfingen.updateInterval=30
# location configuration, you can specify multiple locations
location.sindelfingenwund.name=Sindelfingen Wunderground
location.sindelfingenwund.latitude=48.700001
location.sindelfingenwund.longitude=9.01667
location.sindelfingenwund.provider=Wunderground
location.sindelfingenwund.language=de
location.sindelfingenwund.updateInterval=30
there are logs.
2016-10-11 15:16:01.536 [TRACE] [er.internal.metadata.MetadataHandler] - Added forecast mapping OPENWEATHERMAP: list
2016-10-11 15:16:01.549 [TRACE] [er.internal.metadata.MetadataHandler] - Added forecast mapping WUNDERGROUND: forecast.simpleforecast.forecastday
2016-10-11 15:16:01.566 [TRACE] [er.internal.metadata.MetadataHandler] - Added forecast mapping FORECASTIO: daily.data
2016-10-11 15:16:01.570 [TRACE] [er.internal.metadata.MetadataHandler] - Added forecast mapping WORLDWEATHERONLINE: data.weather
2016-10-11 15:16:01.574 [TRACE] [er.internal.metadata.MetadataHandler] - Added forecast mapping YAHOO: query.results.channel.item.forecast
2016-10-11 15:16:01.578 [TRACE] [er.internal.metadata.MetadataHandler] - Added forecast mapping HAMWEATHER: response.responses.response.periods
2016-10-11 15:16:01.582 [TRACE] [er.internal.metadata.MetadataHandler] - Added forecast mapping METEOBLUE: forecast
2016-10-11 15:16:01.746 [DEBUG] [org.openhab.binding.weather ] - ServiceEvent REGISTERED - {org.osgi.service.cm.ManagedService, org.osgi.service.event.EventHandler}={event.topics=openhab/command/*, service.pid=org.openhab.weather, component.name=org.openhab.binding.weather, component.id=168, service.id=320, service.bundleid=200, service.scope=bundle} - org.openhab.binding.weather
2016-10-11 15:16:01.881 [DEBUG] [eather.internal.common.WeatherConfig] - Parsing of weather configuration settings completed.
2016-10-11 15:16:01.898 [INFO ] [eather.internal.common.WeatherConfig] - ProviderConfig[providerName=WUNDERGROUND,apiKey=afd56...]
2016-10-11 15:16:01.906 [INFO ] [eather.internal.common.WeatherConfig] - LocationConfig[providerName=WUNDERGROUND,language=de,updateInterval=30,latitude=48.700001,longitude=9.01667,woeid=<null>,locationId=sindelfingenwund,name=Sindelfingen Wunderground]
2016-10-11 15:16:04.930 [INFO ] [ternal.scheduler.WeatherJobScheduler] - Disabling weather locationId 'sindelfingenwund', no binding available
2016-10-11 15:16:07.400 [DEBUG] [ding.zwave.handler.ZWaveThingHandler] - Initializing ZWave thing handler.
gsaw
(Georg Sawtschuk)
October 11, 2016, 4:25pm
6
I gave up.
I managed to get weather infos using HTTP binding. It works. Anyway Weather extension do not get all infos i need from OpenWeatherMap response…
w2vy
(Thomas Moulton)
February 27, 2017, 12:29pm
7
I am having the same problem.
I needed to regenerate my api key and now the binding reports
[.o.b.w.i.s.WeatherJobScheduler] - Disabling weather locationId 'home-Wu', no binding available
I am using Openhab 1.8
tom