Not getting simplest weather example working

I used the config from the wiki page

weather:location.home.latitude=47.8011
weather:location.home.longitude=13.0448
weather:location.home.provider=Yahoo
weather:location.home.language=de
weather:location.home.updateInterval=10

and items

Number   Temperature   "Temperature [%.2f °C]"   {weather="locationId=home, type=temperature, property=current"}
Number   Humidity      "Humidity [%d %%]"        {weather="locationId=home, type=atmosphere, property=humidity"}

but the values don’t seem to update.

In the log file I see

2015-10-10 00:55:04.180 [DEBUG] [o.o.b.w.i.bus.WeatherActivator] - Weather binding has been started.
2015-10-10 00:55:04.207 [DEBUG] [.WeatherGenericBindingProvider] - Adding item Temperature with WeatherBindingConfig[locationId=home,type=temperature,property=current,roundingMode=HALF_UP,scale=2]
2015-10-10 00:55:04.208 [DEBUG] [.WeatherGenericBindingProvider] - Adding item Humidity with WeatherBindingConfig[locationId=home,type=atmosphere,property=humidity,roundingMode=HALF_UP,scale=2]

and then lots of like

2015-10-10 00:55:04.222 [TRACE] [b.w.i.metadata.MetadataHandler] - Added provider mapping WUNDERGROUND: ProviderMappingInfo[source=current_observation.relative_humidity,target=atmosphere.humidity,converter=PERCENT_INTEGER]
2015-10-10 00:55:04.222 [TRACE] [b.w.i.metadata.MetadataHandler] - Added provider mapping WUNDERGROUND: ProviderMappingInfo[source=avehumidity,target=atmosphere.humidity,converter=INTEGER]
2015-10-10 00:55:04.222 [TRACE] [b.w.i.metadata.MetadataHandler] - Added provider mapping OPENWEATHERMAP: ProviderMappingInfo[source=humidity,target=atmosphere.humidity,converter=INTEGER]
2015-10-10 00:55:04.222 [TRACE] [b.w.i.metadata.MetadataHandler] - Added provider mapping FORECASTIO: ProviderMappingInfo[source=humidity,target=atmosphere.humidity,converter=FRACTION_INTEGER]
2015-10-10 00:55:04.222 [TRACE] [b.w.i.metadata.MetadataHandler] - Added provider mapping WORLDWEATHERONLINE: ProviderMappingInfo[source=humidity,target=atmosphere.humidity,converter=INTEGER]
2015-10-10 00:55:04.223 [TRACE] [b.w.i.metadata.MetadataHandler] - Added provider mapping YAHOO: ProviderMappingInfo[source=atmosphere.humidity,target=atmosphere.humidity,converter=INTEGER]
2015-10-10 00:55:04.223 [TRACE] [b.w.i.metadata.MetadataHandler] - Added provider mapping HAMWEATHER: ProviderMappingInfo[source=humidity,target=atmosphere.humidity,converter=INTEGER]
2015-10-10 00:55:04.223 [TRACE] [b.w.i.metadata.MetadataHandler] - Added provider mapping WUNDERGROUND: ProviderMappingInfo[source=current_observation.visibility_km,target=atmosphere.visibility,converter=DOUBLE]
2015-10-10 00:55:04.223 [TRACE] [b.w.i.metadata.MetadataHandler] - Added provider mapping FORECASTIO: ProviderMappingInfo[source=visibility,target=atmosphere.visibility,converter=DOUBLE]
2015-10-10 00:55:04.223 [TRACE] [b.w.i.metadata.MetadataHandler] - Added provider mapping WORLDWEATHERONLINE: ProviderMappingInfo[source=visibility,target=atmosphere.visibility,converter=DOUBLE]
2015-10-10 00:55:04.224 [TRACE] [b.w.i.metadata.MetadataHandler] - Added provider mapping YAHOO: ProviderMappingInfo[source=atmosphere.visibility,target=atmosphere.visibility,converter=DOUBLE]

So I seem to be missing something like
ProviderConfig[providerName=xx, apiKey=xxx] and/or LocationConfig[providerName=xxx, language=xx, updateInterval=xx, latitude=xx.xxxx, longitude=xx.xxxx, locationId=xxx]

But as I did simply use the sample config indicated on the wiki page, I’m completely lost what went wrong.

I’m using latest 1.7.1 on ubunto from the apt repository

Found the issue myself. I also had openhab-addon-action-weather installed, after uninstalling that one. everything seems to work fine.

@tarioch Thank you very much for posting this! I had exactly the same problem - and after uninstalling the openhab-addon-action-weather package (openhab 1.7.1 on RPi/Ubuntu) the weather plugin works as expected. I have opened a ticked in the openhab issue tracker.

Patrick - I seem to be having the same issue, however, I do not see openhab-addon-action-weather in my addons folder.

Where would I find this openhab-addon-action-weather file?

Also, I do notice a different icon (see image) next to my org.openhab.binding.weather-1,7,1.jar file as if it has not been extracted like the MQTT and NTP addons - which are both working fine. I have run openhab_debug.sh and received the following log which appears to be the same results you received regarding weather addon.

There are a couple statements that do not appear correct, however, I am new to openhab so don’t know if they are typical behavior or some problem. Any ideas about these odd statements would be greatly appreciated.

17:06:50.604 [DEBUG] [.s.internal.SchedulerActivator:36   ] - Scheduler has been started.
17:06:50.849 [INFO ] [uartz.impl.StdSchedulerFactory:1175 ] - Using default implementation for ThreadExecutor
17:06:50.975 [INFO ] [rtz.core.SchedulerSignalerImpl:61   ] - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
17:06:50.978 [INFO ] [rg.quartz.core.QuartzScheduler:243  ] - Quartz Scheduler v.2.1.7 created.
17:06:50.986 [INFO ] [org.quartz.simpl.RAMJobStore  :154  ] - RAMJobStore initialized.
17:06:50.994 [INFO ] [rg.quartz.core.QuartzScheduler:268  ] - Scheduler meta-data: Quartz Scheduler (v2.1.7) 'openHAB-job-scheduler' with instanceId 'NON_CLUSTERED'
  Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 2 threads.
  Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

17:06:50.996 [INFO ] [uartz.impl.StdSchedulerFactory:1324 ] - Quartz scheduler 'openHAB-job-scheduler' initialized from specified file: './etc/quartz.properties'
17:06:50.998 [INFO ] [uartz.impl.StdSchedulerFactory:1328 ] - Quartz scheduler version: 2.1.7
17:06:51.001 [INFO ] [rg.quartz.core.QuartzScheduler:534  ] - Scheduler openHAB-job-scheduler_$_NON_CLUSTERED started.
17:06:51.025 [DEBUG] [o.config.core.ConfigDispatcher:146  ] - Processing openHAB default configuration file '/opt/openhab/configurations/openhab_default.cfg'.
17:06:51.327 [DEBUG] [o.config.core.ConfigDispatcher:168  ] - Processing openHAB main configuration file '/opt/openhab/configurations/openhab.cfg'.
17:06:51.496 [DEBUG] [.o.core.internal.CoreActivator:93   ] - UUID file already exists at '/opt/openhab/webapps/static/uuid' with content 'ad0c7f79-3990-48f4-a505-8b190bac6a42'
17:06:51.504 [DEBUG] [.o.core.internal.CoreActivator:115  ] - Created file '/opt/openhab/webapps/static/version' with content '1.7.1'
17:06:51.506 [INFO ] [.o.core.internal.CoreActivator:61   ] - openHAB runtime has been started (v1.7.1).
17:06:51.681 [DEBUG] [a.internal.AutoUpdateActivator:31   ] - AutoUpdate binding has been started.
17:06:56.480 [DEBUG] [.p.i.PersistenceModelActivator:23   ] - Registered 'persistence' configuration parser
17:06:56.585 [DEBUG] [.c.t.i.TransformationActivator:38   ] - Transformation Service has been started.
17:06:56.793 [DEBUG] [m.internal.MultimediaActivator:34   ] - Multimedia I/O bundle has been started.
17:06:56.908 [DEBUG] [.s.i.DiscoveryServiceActivator:27   ] - Discovery service has been started.
17:06:56.933 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl:93   ] - mDNS service has been started
17:06:57.021 [DEBUG] [.io.transport.mqtt.MqttService:123  ] - Starting MQTT Service...
17:06:57.742 [INFO ] [o.o.i.s.i.DiscoveryServiceImpl:53   ] - Service Discovery initialization completed.
17:06:57.770 [INFO ] [.io.transport.mqtt.MqttService:108  ] - MQTT Service initialization completed.
17:06:57.775 [INFO ] [o.i.t.m.i.MqttBrokerConnection:114  ] - Starting MQTT broker connection 'mymosquitto'
17:06:57.841 [DEBUG] [o.i.t.m.i.MqttBrokerConnection:294  ] - Creating new client for 'tcp://localhost:1883' using id 'root.1445893617829' and file store '/tmp/mymosquitto'
17:06:58.114 [DEBUG] [.i.internal.ItemModelActivator:24   ] - Registered 'item' configuration parser
17:06:58.609 [DEBUG] [o.o.c.i.items.ItemRegistryImpl:137  ] - Item provider 'GenericItemProvider' has been added.
17:07:02.009 [DEBUG] [.o.m.s.i.SitemapModelActivator:23   ] - Registered 'sitemap' configuration parser
17:07:02.446 [DEBUG] [io.rest.internal.RESTActivator:33   ] - REST API has been started.
17:07:02.752 [INFO ] [org.atmosphere.util.IOUtils   :370  ] - META-INF/services/org.atmosphere.cpr.AtmosphereFramework not found in class loader
17:07:02.999 [INFO ] [sphere.cpr.AtmosphereFramework:2601 ] - Atmosphere is using org.atmosphere.cpr.DefaultAnnotationProcessor for processing annotation
17:07:03.004 [INFO ] [cpr.DefaultAnnotationProcessor:138  ] - AnnotationProcessor class org.atmosphere.cpr.DefaultAnnotationProcessor$BytecodeBasedAnnotationProcessor being used
17:07:03.130 [WARN ] [cpr.DefaultAnnotationProcessor:178  ] - Unable to detect annotations. Application may fail to deploy.
17:07:03.326 [INFO ] [sphere.cpr.AtmosphereFramework:1891 ] - Auto detecting atmosphere handlers /WEB-INF/classes/
17:07:03.438 [INFO ] [sphere.cpr.AtmosphereFramework:639  ] - Installed AtmosphereHandler org.atmosphere.handler.ReflectorServletProcessor mapped to context-path /* and Broadcaster Class org.atmosphere.jersey.JerseyBroadcaster
17:07:03.440 [INFO ] [sphere.cpr.AtmosphereFramework:1945 ] - Auto detecting WebSocketHandler in /WEB-INF/classes/
17:07:03.448 [INFO ] [sphere.cpr.AtmosphereFramework:1602 ] - Installed WebSocketProtocol org.atmosphere.websocket.protocol.SimpleHttpProtocol 
17:07:03.673 [INFO ] [.a.h.ReflectorServletProcessor:103  ] - Installing Servlet com.sun.jersey.spi.container.servlet.ServletContainer
17:07:04.287 [INFO ] [c.s.j.s.i.a.WebApplicationImpl:815  ] - Initiating Jersey application, version 'Jersey: 1.18.1 02/19/2014 03:28 AM'
17:07:04.300 [INFO ] [c.s.j.s.i.a.WebApplicationImpl:826  ] - Adding the following classes declared in META-INF/services/jersey-server-components to the resource configuration:
  class org.atmosphere.jersey.AtmosphereResourceConfigurator
17:07:05.167 [INFO ] [j.s.i.a.DeferredResourceConfig:101  ] - Instantiated the Application class org.openhab.io.rest.RESTApplication
17:07:05.748 [INFO ] [c.internal.ModelRepositoryImpl:80   ] - Loading model 'default.sitemap'
17:07:06.691 [INFO ] [c.internal.ModelRepositoryImpl:80   ] - Loading model 'default.items'
17:07:06.871 [DEBUG] [i.internal.GenericItemProvider:154  ] - Processing binding configs for items from model 'default.items'
17:07:06.895 [DEBUG] [i.internal.GenericItemProvider:133  ] - Read items from model 'default.items'
17:07:09.390 [INFO ] [sphere.cpr.AtmosphereFramework:2435 ] - AtmosphereInterceptor CORS Interceptor Support will always be executed first
17:07:09.392 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor CORS Interceptor Support with priority FIRST_BEFORE_DEFAULT 
17:07:09.395 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor Default Response's Headers Interceptor with priority AFTER_DEFAULT 
17:07:09.402 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor Android Interceptor Support with priority AFTER_DEFAULT 
17:07:09.408 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor SSE Interceptor Support with priority AFTER_DEFAULT 
17:07:09.412 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor JSONP Interceptor Support with priority AFTER_DEFAULT 
17:07:09.420 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor Atmosphere JavaScript Protocol with priority AFTER_DEFAULT 
17:07:09.424 [INFO ] [sphere.cpr.AtmosphereFramework:2404 ] - Installed AtmosphereInterceptor Browser disconnection detection with priority AFTER_DEFAULT 
17:07:09.447 [INFO ] [sphere.cpr.AtmosphereFramework:935  ] - Using EndpointMapper class org.atmosphere.util.DefaultEndpointMapper
17:07:09.454 [WARN ] [sphere.cpr.AtmosphereFramework:941  ] - No BroadcasterCache configured. Broadcasted message between client reconnection will be LOST. It is recommended to configure the org.atmosphere.cache.UUIDBroadcasterCache
17:07:09.456 [INFO ] [sphere.cpr.AtmosphereFramework:949  ] - Default Broadcaster Class: org.atmosphere.jersey.JerseyBroadcaster
17:07:09.459 [INFO ] [sphere.cpr.AtmosphereFramework:950  ] - Broadcaster Polling Wait Time 100
17:07:09.462 [INFO ] [sphere.cpr.AtmosphereFramework:951  ] - Shared ExecutorService supported: true
17:07:09.465 [INFO ] [sphere.cpr.AtmosphereFramework:958  ] - Messaging Thread Pool Size: 10
17:07:09.468 [INFO ] [sphere.cpr.AtmosphereFramework:968  ] - Async I/O Thread Pool Size: 10
17:07:09.470 [INFO ] [sphere.cpr.AtmosphereFramework:979  ] - Using BroadcasterFactory: org.atmosphere.cpr.DefaultBroadcasterFactory
17:07:09.473 [INFO ] [sphere.cpr.AtmosphereFramework:980  ] - Using WebSocketProcessor: org.atmosphere.websocket.DefaultWebSocketProcessor
17:07:09.482 [INFO ] [sphere.cpr.AtmosphereFramework:990  ] - Invoke AtmosphereInterceptor on WebSocket message true
17:07:09.485 [INFO ] [sphere.cpr.AtmosphereFramework:991  ] - HttpSession supported: false
17:07:09.487 [INFO ] [sphere.cpr.AtmosphereFramework:993  ] - Atmosphere is using DefaultAtmosphereObjectFactory for dependency injection and object creation
17:07:09.491 [INFO ] [sphere.cpr.AtmosphereFramework:994  ] - Atmosphere is using async support: org.atmosphere.container.JettyAsyncSupportWithWebSocket running under container: jetty/8.1.3.v20120522 with WebSocket enabled.
17:07:09.498 [INFO ] [sphere.cpr.AtmosphereFramework:996  ] - Atmosphere Framework 2.2.5 started.
17:07:09.501 [INFO ] [sphere.cpr.AtmosphereFramework:998  ] - 

	For Atmosphere Framework Commercial Support, visit 
	http://www.async-io.org/ or send an email to support@async-io.org

17:07:09.506 [INFO ] [penhab.io.rest.RESTApplication:144  ] - Started REST API at /rest
17:07:09.513 [DEBUG] [o.o.i.s.i.DiscoveryServiceImpl:66   ] - Registering new service _openhab-server._tcp.local. at port 8080
17:07:12.237 [DEBUG] [o.o.i.s.i.DiscoveryServiceImpl:66   ] - Registering new service _openhab-server-ssl._tcp.local. at port 8443
17:07:15.127 [INFO ] [.o.u.w.i.servlet.WebAppServlet:79   ] - Started Classic UI at /openhab.app
17:07:16.658 [DEBUG] [.r.internal.RuleModelActivator:42   ] - Registered 'rules' configuration parser
17:07:16.714 [DEBUG] [m.r.internal.engine.RuleEngine:77   ] - Started rule engine
17:07:20.561 [DEBUG] [.o.b.ntp.internal.NtpActivator:31   ] - NTP binding has been started.
17:07:20.605 [DEBUG] [i.internal.GenericItemProvider:341  ] - Start processing binding configuration of Item 'Date (Type=DateTimeItem, State=Uninitialized)' with 'NtpGenericBindingProvider' reader.
17:07:20.655 [INFO ] [.service.AbstractActiveService:169  ] - NTP Refresh Service has been started
17:07:20.690 [DEBUG] [o.o.b.w.i.bus.WeatherActivator:32   ] - Weather binding has been started.
17:07:20.737 [DEBUG] [i.internal.GenericItemProvider:341  ] - Start processing binding configuration of Item 'Condition_Id (Type=StringItem, State=Uninitialized)' with 'WeatherGenericBindingProvider' reader.
17:07:20.875 [DEBUG] [.WeatherGenericBindingProvider:57   ] - Adding item Condition_Id with WeatherBindingConfig[locationId=home,type=condition,property=id]
17:07:20.877 [DEBUG] [i.internal.GenericItemProvider:341  ] - Start processing binding configuration of Item 'Weather_Temperature (Type=NumberItem, State=Uninitialized)' with 'WeatherGenericBindingProvider' reader.
17:07:20.883 [DEBUG] [.WeatherGenericBindingProvider:57   ] - Adding item Weather_Temperature with WeatherBindingConfig[locationId=home,type=temperature,property=current,roundingMode=HALF_UP,scale=2,unit=FAHRENHEIT]
17:07:20.885 [DEBUG] [i.internal.GenericItemProvider:341  ] - Start processing binding configuration of Item 'Weather_Humidity (Type=NumberItem, State=Uninitialized)' with 'WeatherGenericBindingProvider' reader.
17:07:20.889 [DEBUG] [.WeatherGenericBindingProvider:57   ] - Adding item Weather_Humidity with WeatherBindingConfig[locationId=home,type=atmosphere,property=humidity,roundingMode=HALF_UP,scale=2]
17:07:21.218 [DEBUG] [.w.internal.gfx.WeatherServlet:72   ] - Starting up weather servlet at /weather
17:07:21.228 [DEBUG] [.b.mqtt.internal.MqttActivator:34   ] - MQTT binding has been started.
17:07:21.291 [DEBUG] [i.internal.GenericItemProvider:341  ] - Start processing binding configuration of Item 'Node01Temperature (Type=NumberItem, State=Uninitialized)' with 'MqttGenericBindingProvider' reader.
17:07:21.309 [DEBUG] [b.mqtt.internal.MqttItemConfig:71   ] - Loaded MQTT config for item 'Node01Temperature' : 1 subscribers, 0 publishers
17:07:21.312 [DEBUG] [o.i.t.m.i.MqttBrokerConnection:476  ] - Starting message consumer for broker 'mymosquitto' on topic 'home/bedroom/temperature'
17:07:21.333 [DEBUG] [i.internal.GenericItemProvider:341  ] - Start processing binding configuration of Item 'Node01Humidity (Type=NumberItem, State=Uninitialized)' with 'MqttGenericBindingProvider' reader.
17:07:21.336 [DEBUG] [b.mqtt.internal.MqttItemConfig:71   ] - Loaded MQTT config for item 'Node01Humidity' : 1 subscribers, 0 publishers
17:07:21.346 [DEBUG] [o.i.t.m.i.MqttBrokerConnection:476  ] - Starting message consumer for broker 'mymosquitto' on topic 'home/bedroom/humidity'
17:07:21.351 [DEBUG] [i.internal.GenericItemProvider:341  ] - Start processing binding configuration of Item 'Node01Light (Type=NumberItem, State=Uninitialized)' with 'MqttGenericBindingProvider' reader.
17:07:21.353 [DEBUG] [b.mqtt.internal.MqttItemConfig:71   ] - Loaded MQTT config for item 'Node01Light' : 1 subscribers, 0 publishers
17:07:21.355 [DEBUG] [o.i.t.m.i.MqttBrokerConnection:476  ] - Starting message consumer for broker 'mymosquitto' on topic 'home/bedroom/light'
17:07:21.362 [DEBUG] [i.internal.GenericItemProvider:341  ] - Start processing binding configuration of Item 'Node01Motion (Type=NumberItem, State=Uninitialized)' with 'MqttGenericBindingProvider' reader.
17:07:21.364 [DEBUG] [b.mqtt.internal.MqttItemConfig:71   ] - Loaded MQTT config for item 'Node01Motion' : 1 subscribers, 0 publishers
17:07:21.366 [DEBUG] [o.i.t.m.i.MqttBrokerConnection:476  ] - Starting message consumer for broker 'mymosquitto' on topic 'home/bedroom/motion'
17:07:21.411 [DEBUG] [i.internal.GenericItemProvider:341  ] - Start processing binding configuration of Item 'Node01Door (Type=NumberItem, State=Uninitialized)' with 'MqttGenericBindingProvider' reader.
17:07:21.414 [DEBUG] [b.mqtt.internal.MqttItemConfig:71   ] - Loaded MQTT config for item 'Node01Door' : 1 subscribers, 0 publishers
17:07:21.416 [DEBUG] [o.i.t.m.i.MqttBrokerConnection:476  ] - Starting message consumer for broker 'mymosquitto' on topic 'home/bedroom/door'
17:07:21.421 [DEBUG] [i.internal.GenericItemProvider:341  ] - Start processing binding configuration of Item 'LEDSwitch (Type=SwitchItem, State=Uninitialized)' with 'MqttGenericBindingProvider' reader.
17:07:21.429 [DEBUG] [b.mqtt.internal.MqttItemConfig:71   ] - Loaded MQTT config for item 'LEDSwitch' : 0 subscribers, 2 publishers
17:07:21.460 [DEBUG] [m.internal.MqttEventBusBinding:61   ] - MQTT: Activating event bus binding.
17:07:22.831 [INFO ] [sphere.cpr.AtmosphereFramework:1053 ] - Latest version of Atmosphere's JavaScript Client 2.2.12
17:07:22.832 [INFO ] [sphere.cpr.AtmosphereFramework:1060 ] - 

	Atmosphere Framework Updates:
	Minor Update available (bugs fixes): 2.2.8
17:07:30.850 [DEBUG] [inding.ntp.internal.NtpBinding:83   ] - Got time from 0.us.pool.ntp.org: Monday, October 26, 2015 5:07:30 PM EDT
17:08:32.739 [DEBUG] [inding.ntp.internal.NtpBinding:83   ] - Got time from 0.us.pool.ntp.org: Monday, October 26, 2015 5:08:32 PM EDT
17:09:38.468 [DEBUG] [inding.ntp.internal.NtpBinding:83   ] - Got time from 0.us.pool.ntp.org: Monday, October 26, 2015 5:09:38 PM EDT

Sorry for the delayed response. As far as I remember the weather action file was in the addons folder.

I have the same issue like Tim (I don’t have weather action either).
What’s strange is that somtimes the weather forecast works as expected but then - after a reboot or openhab restart it stope working with “HTTP ERROR 500 - Weather LocationId ‘home’ does not exist”

But it exists and works most of the time.
Only a shutdown (unlugging the cord) helps - but not even always.

2016-01-11 15:08:41.681 [WARN ] [e.jetty.servlet.ServletHandler] - /weather
javax.servlet.ServletException: Weather locationId 'home' does not exist

Any other conflict known or any suggestions?