Weather binding in Openhab2

Has anyone been able to get the weather binging to work in Openhab 2? I have followed the WIKI and the weather.cfg file instructions and came up with:

location.home.name=home
#location.home.latitude= (not required for Yahoo provider)
#location.home.longitude= (not required for Yahoo provider)
location.home.woeid=XXXXXXX
location.provider=yahoo
location.home.language=en
location.home.updateInterval=10

for my weather.cfg and receive

2016-04-10 08:33:03.840 [ERROR] [org.apache.felix.configadmin ] - [org.osgi.service.cm.ManagedService, org.osgi.service.event.EventHandler, id=288, bundle=167/mvn:org.openhab.binding/org.openhab.binding.weather/1.9.0-SNAPSHOT]: Updating property weather of configuration org.openhab.weather caused a problem: Malformed location property ‘location.provider’, please check your openhab.cfg!
org.osgi.service.cm.ConfigurationException: weather : Malformed location property ‘location.provider’, please check your openhab.cfg!
at org.openhab.binding.weather.internal.common.WeatherConfig.parseLocation(WeatherConfig.java:118)[167:org.openhab.binding.weather:1.9.0.201604040111]
at org.openhab.binding.weather.internal.common.WeatherConfig.parse(WeatherConfig.java:80)[167:org.openhab.binding.weather:1.9.0.201604040111]
at org.openhab.binding.weather.internal.bus.WeatherBinding.updated(WeatherBinding.java:77)[167:org.openhab.binding.weather:1.9.0.201604040111]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189)[7:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152)[7:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85)[7:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1444)[7:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1400)[7:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:143)[7:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:110)[7:org.apache.felix.configadmin:1.8.8]
at java.lang.Thread.run(Thread.java:745)[:1.8.0_77]

as the error in the log file. Any help or working examples would be appreciated.

^^ your log says it

I use it with Weater Underground

however HTML templates dont work yet

Thanks for the quick reply. I’m using Openhab 2 and can’t find the openhab.cfg file. Any idea where it should be?

weather.cfg is it…
you just entered something wrong there…
as I use weather underground I can not telll for sure whats that with yahoo.

maybe its

  1. just that the Y is not a capital letter as in in the wiki → Yahoo
  2. yahoo changed quite a bit lately… maybe it doesnt work at all anymore (they rqeuire oauth now)

so play a little or switch to another weather provider

I followed your advice and switched to Weather Underground. Here’s my updated config.

The apikey for the different weather providers, at least one must be specified

Note: Hamweather requires two apikeys: client_id=apikey, client_secret=apikey2

#apikey.ForecastIo=
#apikey.OpenWeatherMap=
#apikey.WorldWeatherOnline=
apikey.Wunderground=XXXXXXXXXXXXXXXX
#apikey.Hamweather=
#apikey2.Hamweather=

location.home.name=home
location.home.latitude=XX.XXXXXX
location.home.longitude=-XX.XXXXXX
#location.home.woeid=XXXXXXXX
#location.provider=Wunderground
location.home.language=en
location.home.updateInterval=10

I Now get this error:
2016-04-10 10:57:24.383 [ERROR] [org.apache.felix.configadmin ] - [org.osgi.service.cm.ManagedService, org.osgi.service.event.EventHandler, id=286, bundle=167/mvn:org.openhab.binding/org.openhab.binding.weather/1.9.0-SNAPSHOT]: Updating property weather of configuration org.openhab.weather caused a problem: Incomplete location config for locationId ‘home’, please check your openhab.cfg!

I checked the demo.items file and it shows a location item:

Location DemoLocation “Brandenburg Gate Berlin”

So put this in mine:

Location home “home”

This had no effect and I still receive the incomplete location error. Is there any way you could post your working weather.cfg file?

1 Like

So I wiped the entire directory and reinstalled using the demo config

2016-04-10 12:25:20.245 [INFO ] [ternal.scheduler.WeatherJobScheduler] - Disabling weather locationId ‘demo’, no binding available

I then added the weather binding through the paper UI and edited the weather config to:

apikey.Wunderground=XXXXXXXXXXXXXXXX
location.demo.latitude=XX.XXXXXX
location.demo.longitude=-XX.XXXXXX
location.demo.provider=Wunderground
location.demo.language=en
location.demo.updateInterval=10

I now receive this in the log file
2016-04-10 12:25:20.245 [INFO ] [ternal.scheduler.WeatherJobScheduler] - Disabling weather locationId ‘demo’, no binding available

I would thing that demo configuration would work without any changes. Everything looks good to me. Any ideas?

I have it working now. I completely wiped my existing directory and started from scratch on a reinstall. Here is my working configurations:

Weather.cfg applicable lines:
apikey.Wunderground=XXXXXXXXXXXXXXXX
location.home.latitude=XX.XXXXXX
location.home.longitude=-XX.XXXXXX
location.home.provider=Wunderground
location.home.language=en
location.home.updateInterval=10

demo.items (copied from https://github.com/openhab/openhab/wiki/Weather-Binding)
// atmosphere
Number Humidity “Humidity [%d %%]” {weather=“locationId=home, type=atmosphere, property=humidity”}
Number Visibility “Visibility [%.2f km]” {weather=“locationId=home, type=atmosphere, property=visibility”}
Number Visibility_Mph “Visibility [%.2f mi]” {weather=“locationId=home, type=atmosphere, property=visibility, unit=mph”}
Number Pressure “Pressure [%.2f mb]” {weather=“locationId=home, type=atmosphere, property=pressure”}
Number Pressure_Inches “Pressure [%.2f in]” {weather=“locationId=home, type=atmosphere, property=pressure, unit=inches”}
String Pressure_Trend “Pressuretrend [%s]” {weather=“locationId=home, type=atmosphere, property=pressureTrend”}
Number Ozone “Ozone [%d ppm]” {weather=“locationId=home, type=atmosphere, property=ozone”}
Number UV_Index “UV Index” {weather=“locationId=home, type=atmosphere, property=uvIndex, scale=0”}

// clouds
Number Clouds “Clouds [%.0f %%]” {weather=“locationId=home, type=clouds, property=percent”}

// condition
String Condition “Condition [%s]” {weather=“locationId=home, type=condition, property=text”}
String Condition_ID “Condition id [%s]” {weather=“locationId=home, type=condition, property=id”}
DateTime ObservationTime “Observation time [%1$td.%1$tm.%1$tY %1$tH:%1$tM]” {weather=“locationId=home, type=condition, property=observationTime”}
DateTime LastUpdate “Last update [%1$td.%1$tm.%1$tY %1$tH:%1$tM]” {weather=“locationId=home, type=condition, property=lastUpdate”}
String CommonId “Common id [%s]” {weather=“locationId=home, type=condition, property=commonId”}

// precipitation
Number Rain “Rain [%.2f mm/h]” {weather=“locationId=home, type=precipitation, property=rain”}
Number Rain_Inches “Rain [%.2f in/h]” {weather=“locationId=home, type=precipitation, property=rain, unit=inches”}
Number Snow “Snow [%.2f mm/h]” {weather=“locationId=home, type=precipitation, property=snow”}
Number Snow_Inches “Snow [%.2f in/h]” {weather=“locationId=home, type=precipitation, property=snow, unit=inches”}
Number Precip_Probability “Precip probability [%d %%]” {weather=“locationId=home, type=precipitation, property=probability”}
// new total property in 1.8, only Wunderground
Number Precip_Total “Precip total [%d mm]” {weather=“locationId=home, type=precipitation, property=total”}
Number Precip_Total_Inches “Precip total [%d in]” {weather=“locationId=home, type=precipitation, property=total, unit=inches”}

// temperature
Number Temperature “Temperature [%.2f °C]” {weather=“locationId=home, type=temperature, property=current”}
Number Temperature_F “Temperature [%.2f °F]” {weather=“locationId=home, type=temperature, property=current, unit=fahrenheit”}
Number Temp_Feel “Temperature feel [%.2f °C]” {weather=“locationId=home, type=temperature, property=feel”}
Number Temp_Feel_F “Temperature feel [%.2f °F]” {weather=“locationId=home, type=temperature, property=feel, unit=fahrenheit”}
Number Temp_Dewpoint “Dewpoint [%.2f °C]” {weather=“locationId=home, type=temperature, property=dewpoint”}
Number Temp_Dewpoint_F “Dewpoint [%.2f °F]” {weather=“locationId=home, type=temperature,
property=dewpoint, unit=fahrenheit”}
// min and max values only available in forecasts
Number Temp_Min “Temperature min [%.2f °C]” {weather=“locationId=home, type=temperature, property=min”}
Number Temp_Min_F “Temperature min [%.2f °F]” {weather=“locationId=home, type=temperature, property=min, unit=fahrenheit”}
Number Temp_Max “Temperature max [%.2f °C]” {weather=“locationId=home, type=temperature, property=max”}
Number Temp_Max_F “Temperature max [%.2f °F]” {weather=“locationId=home, type=temperature, property=max, unit=fahrenheit”}
String Temp_MinMax “Min/Max [%s °C]” {weather=“locationId=home, type=temperature, property=minMax”}
String Temp_MinMax_F “Min/Max [%s °F]” {weather=“locationId=home, type=temperature, property=minMax, unit=fahrenheit”}

// wind
Number Wind_Speed “Windspeed [%.2f km/h]” {weather=“locationId=home, type=wind, property=speed”}
Number Wind_Speed_Beaufort “Windspeed Beaufort [%d]” {weather=“locationId=home, type=wind, property=speed, unit=beaufort”}
Number Wind_Speed_Knots “Windspeed [%.2f kn]” {weather=“locationId=home, type=wind, property=speed, unit=knots”}
Number Wind_Speed_Mps “Windspeed [%.2f mps]” {weather=“locationId=home, type=wind, property=speed, unit=mps”}
Number Wind_Speed_Mph “Windspeed [%.2f mph]” {weather=“locationId=home, type=wind, property=speed, unit=mph”}
String Wind_Direction “Wind direction [%s]” {weather=“locationId=home, type=wind, property=direction”}
Number Wind_Degree “Wind degree [%.0f °]” {weather=“locationId=home, type=wind, property=degree”}
Number Wind_Gust “Wind gust [%.2f km/h]” {weather=“locationId=home, type=wind, property=gust”}
Number Wind_Gust_Beaufort “Wind gust Beaufort [%d]” {weather=“locationId=home, type=wind, property=gust, unit=beaufort”}
Number Wind_Gust_Knots “Wind gust [%.2f kn]” {weather=“locationId=home, type=wind, property=gust, unit=knots”}
Number Wind_Gust_Mps “Wind gust [%.2f mps]” {weather=“locationId=home, type=wind, property=gust, unit=mps”}
Number Wind_Gust_Mph “Wind gust [%.2f mph]” {weather=“locationId=home, type=wind, property=gust, unit=mph”}
Number Wind_Chill “Wind chill [%.2f °C]” {weather=“locationId=home, type=wind, property=chill”}
Number Wind_Chill_F “Wind chill [%.2f °F]” {weather=“locationId=home, type=wind, property=chill, unit=fahrenheit”}

// weather station (only Wunderground and Hamweather), needs version 1.7 or greater of the binding
String Station_Name “Station Name [%s]” {weather=“locationId=home, type=station, property=name”}
String Station_Id “Station Id [%s]” {weather=“locationId=home, type=station, property=id”}
Number Station_Latitude “Station Latitude [%.6f]” {weather=“locationId=home, type=station, property=latitude, scale=6”}
Number Station_Longitude “Station Longitude [%.6f]” {weather=“locationId=home, type=station, property=longitude, scale=6”}

Location home “home”

demo.sitemap example:
Text item=Temperature_F
Text item=Weather_Temp_Min valuecolor=[>25=“orange”,>15=“green”,>5=“orange”,<=5=“blue”]
Text item=Weather_Temp_Max
Text item=Weather_Humidity
Text item=Weather_Forecast_Temp
Text item=Weather_WindSpeed

Hope that helps someone.

Hi, were you able to get weather bubnding working with OH2? what is Location home “home”? where did you add that?

can you share you procedure? thanks

Try a config like this:

root@openhab ~ # cat /opt/openhab/conf/services/weather.cfg | grep -v "#"
apikey.Wunderground=<your weather underground id here>
location.home.latitude=-33.875
location.home.longitude=18.6553
location.home.provider=Wunderground
location.home.language=en
location.home.updateInterval=5

location.homeyahoo.woeid=1579727
location.homeyahoo.provider=Yahoo
location.homeyahoo.language=en
location.homeyahoo.updateInterval=5

I have this as the last 2 lines of my demo.items file:

Location home "home"
Location homey “homey”

Hi Chris,
Did you get the weather binding to work ? I can’t .
I’m trying to use the wunderground.
Are you using the weather binding 1.9.0.b4 or are you using the Yahoo weather binding 0.9.0 snapshot. I have tried both in the paper interface.
The log file shows the following

#weather.cfg file
apikey.Wunderground=nnnnnnnnnnnnnnnn
location.<home>.name=home
location.<home>.latitude=151.nnnnnnn
location.<home>.longitude=-33.nnnnnnn
location.<home>.provider=Wunderground
location.<home>.language=en
location.<home>.updateInterval=5

location.<work>.name=Work
location.<work>.latitude=151.nnnnnnn
location.<work>.longitude=-33.nnnnnnn
location.<work>.provider=Wunderground
location.<work>.language=en
location.<work>.updateInterval=5

#Log file
2016-09-22 20:41:22.040 [INFO ] [eather.internal.common.WeatherConfig] - ProviderConfig[providerName=WUNDERGROUND,apiKey=93b32306211132b5]
2016-09-22 20:41:22.040 [INFO ] [eather.internal.common.WeatherConfig] - LocationConfig[providerName=WUNDERGROUND,language=en,updateInterval=5,latitude=151.728335,longitude=-32.82786,woeid=<null>,locationId=<work>,name=Work]
2016-09-22 20:41:22.040 [INFO ] [eather.internal.common.WeatherConfig] - LocationConfig[providerName=WUNDERGROUND,language=en,updateInterval=5,latitude=151.544993,longitude=-33.009878,woeid=<null>,locationId=<home>,name=Home]
2016-09-22 20:41:25.043 [INFO ] [ternal.scheduler.WeatherJobScheduler] - Disabling weather locationId '<work>', no binding available
2016-09-22 20:41:25.044 [INFO ] [ternal.scheduler.WeatherJobScheduler] - Disabling weather locationId '<home>', no binding available

I used your above examples in the items and site. They show blank field data or -C.

Neil.

Try removing the brackets around home and work. Instead of
location.<<>home>.name=home
use
location.home.name=home

I got weather in OH2 working, well, sort of. I cannot find out what are the names of channels. I have something like thin in items:
Number Weather_fi_Temperature “Temperatura zew. [%.1f °C]” { channel= “weather:location:fiHome:temperature” }
Number Weather_wu_Temperature “Temperatura zew. [%.1f °C]” { channel= “weather:location:wuHome:temperature” }

I have 2 providers configured: Wunderground and ForecastIO. What is correct syntax for channels in weather binding?

Weather binding is installed, but I cannot see any activity from it in karaf console.

I will answer myself :wink:
Weather binding is legacy 1.x, so following config works:
// Legacy 1.x binding format
Number Weather_fi_Temperature “Temperatura zew. [%.1f °C]” {weather=“locationId=fiHome, type=temperature, property=current”}
//Legacy 1.x binding format
Number Weather_wu_Temperature “Temperatura zew. [%.1f °C]” {weather=“locationId=wuHome, type=temperature, property=current”}

1 Like

I’m also using the Weather Binding with OH2 without Problems now.
I think, these points add to the success:

  1. Install the binding
  2. paste the example code from the Wiki
    be sure to use weather.cfg (create this file, it’s not present after install), .items and the changes to .sitemap
  3. be sure to remove the "brackets"
    like location.<home>.name=home to location.home.name=home
  4. be sure to config the provider (I’m using Wunderground)

With the Updates to the Wunderground-API I don’t always get all items, but I guess this one is a issue with the API, not OpenHAB2:

2016-11-20 08:32:43.426 [ItemStateChangedEvent     ] - Weather_Temperature changed from 2.00 to 2.30
2016-11-20 08:32:43.438 [ItemStateChangedEvent     ] - Weather_LastUpdate changed from 2016-11-20T08:17:43.078+0100 to 2016-11-20T08:32:43.403+0100
2016-11-20 08:32:43.483 [ItemStateChangedEvent     ] - Weather_LastUpdate changed from 2016-11-20T08:32:43.403+0100 to 2016-11-20T08:32:43.445+0100
2016-11-20 08:32:43.506 [ItemStateChangedEvent     ] - Weather_Temp_Max changed from UNDEF to 2.30
2016-11-20 08:32:43.528 [ItemStateChangedEvent     ] - Weather_Temp_Min changed from UNDEF to 2.30
2016-11-20 08:32:43.532 [ItemStateChangedEvent     ] - Weather_Humidity changed from 91.00 to 89.00
2016-11-20 08:32:43.580 [ItemStateChangedEvent     ] - Weather_Temp_Max changed from 2.30 to UNDEF
2016-11-20 08:32:43.644 [ItemStateChangedEvent     ] - Weather_Temp_Min changed from 2.30 to UNDEF
2016-11-20 08:32:43.677 [ItemStateChangedEvent     ] - Weather_ObservationTime changed from 2016-11-20T08:12:31.000+0100 to 2016-11-20T08:32:33.000+0100
2016-11-20 08:32:43.689 [ItemStateChangedEvent     ] - Weather_Wind_Degree changed from 223.00 to 233.00

Here I’m worried about the changes from Weather_Temp_Max UNDEF to 2.30 and directly vice versa from 2.30 to UNDEF.

@binderth,

I’m new to OH2, started with OH but been strugling with the weather for weeks so diceded to switch to OH2. But same issue now for a week, really think it is something I am overlooking. Could you please check my settings ?

‘# The apikey for the different weather providers, at least one must be specified
’# Note: Hamweather requires two apikeys: client_id=apikey, client_secret=apikey2
#apikey.ForecastIo=
#apikey.OpenWeatherMap=
#apikey.WorldWeatherOnline=
apikey.Wunderground=xxxxxxxxxxxxxxxx
#apikey.Hamweather=
#apikey2.Hamweather=
#apikey.Meteoblue=

‘# location configuration, you can specify multiple locations
location.home.name=home
location.home.latitude=50.xxxxxx
location.home.longitude=2.xxxxxx
location.home.woeid=xxxxxx
#location.home.provider=Wunderground
location.home.language=en
location.home.updateInterval=15

#location..name=
#location..latitude= (not required for Yahoo provider)
#location..longitude= (not required for Yahoo provider)
#location..woeid= (required for Yahoo provider)
#location..provider=
#location..language=
#location..updateInterval=

And this is the error I am getting:
20:49:41.546 [WARN ] [eather.internal.common.WeatherConfig] - Incomplete location config for locationId ‘’. Check openhab.cfg.
20:49:41.548 [ERROR] [org.apache.felix.configadmin ] - [org.osgi.service.cm.ManagedService, org.osgi.service.event.EventHandler, id=294, bundle=191/mvn:org.openhab.binding/org.openhab.binding.weather/1.9.0.b4]: Updating property weather of configuration org.openhab.weather caused a problem: Incomplete location config for locationId ‘’. Check openhab.cfg.
org.osgi.service.cm.ConfigurationException: weather : Incomplete location config for locationId ‘’. Check openhab.cfg.
at org.openhab.binding.weather.internal.common.WeatherConfig.parse(WeatherConfig.java:97)[191:org.openhab.binding.weather:1.9.0.b4]
at org.openhab.binding.weather.internal.bus.WeatherBinding.updated(WeatherBinding.java:82)[191:org.openhab.binding.weather:1.9.0.b4]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189)[7:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152)[7:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85)[7:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1444)[7:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1400)[7:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:143)[7:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:110)[7:org.apache.felix.configadmin:1.8.8]
at java.lang.Thread.run(Unknown Source)[:1.8.0_111]

Thx for checking,

David

Hi David,

your error nearly perfectly says it all! :wink:
Incomplete location config for locationId ''. Check openhab.cfg.

so, this is your weather.cfg:

so, you just have to change the comments in this part:

# location configuration, you can specify multiple locations
location.home.name=home
location.home.latitude=50.xxxxxx
location.home.longitude=2.xxxxxx
#location.home.woeid=xxxxxx
location.home.provider=Wunderground
location.home.language=en
location.home.updateInterval=15

woeid is only needed for Yahoo!Weather, and as you’re using Wunderground you can delete or comment this line. BUT as you’re using Wunderground for your home-service, you must activate the .provider line.

Hint:
you could add in the first lines more than one provider, this doesn’t matter at all, unless you’re referencing this provider in one ore more Locations. So you could have Wunderground for location.home and e.g.OpenWeatherMap for location.office.

@binderth,

Thx for the very quick reply!! But I’m afraid I did some mistakes in copy pasting the error message, or when fidling with the configuration files themselves…

The actuall error message is:
12:45:58.480 [ERROR] [org.apache.felix.configadmin ] - [org.osgi.service.cm.ManagedService, org.osgi.service.event.EventHandler, id=298, bundle=191/mvn:org.openhab.binding/org.openhab.binding.weather/1.9.0.b4]: Updating property weather of configuration org.openhab.weather caused a problem: Incomplete location config for locationId ‘’. Check openhab.cfg.
org.osgi.service.cm.ConfigurationException: weather : Incomplete location config for locationId ‘’. Check openhab.cfg.
at org.openhab.binding.weather.internal.common.WeatherConfig.parse(WeatherConfig.java:97)[191:org.openhab.binding.weather:1.9.0.b4]
at org.openhab.binding.weather.internal.bus.WeatherBinding.updated(WeatherBinding.java:82)[191:org.openhab.binding.weather:1.9.0.b4]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updated(ManagedServiceTracker.java:189)[7:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:152)[7:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:85)[7:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1444)[7:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1400)[7:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:143)[7:org.apache.felix.configadmin:1.8.8]
at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:110)[7:org.apache.felix.configadmin:1.8.8]
at java.lang.Thread.run(Unknown Source)[:1.8.0_111]

So it actually says while that cinfig is called home and correctly configured (according to mee :slight_smile: )

‘# The apikey for the different weather providers, at least one must be specified
’# Note: Hamweather requires two apikeys: client_id=apikey, client_secret=apikey2
#apikey.ForecastIo=
#apikey.OpenWeatherMap=
#apikey.WorldWeatherOnline=
apikey.Wunderground=xxxxxxxxxxxxxxxxxx
#apikey.Hamweather=
#apikey2.Hamweather=
#apikey.Meteoblue=

‘# location configuration, you can specify multiple locations
location.home.name=home
location.home.latitude=50.xxxxxx
location.home.longitude=2.xxxxxx
#location.home.woeid=xxxxxx
location.home.provider=Wunderground
location.home.language=en
location.home.updateInterval=15

#location..name=
#location..latitude= (not required for Yahoo provider)
#location..longitude= (not required for Yahoo provider)
#location..woeid= (required for Yahoo provider)
#location..provider=
#location..language=
#location..updateInterval=

Greetz,

David

At first, I’m not sure, whether you pasted the trailing ’ on each line from your weather.cfg? I think, they are responsible for the error, you’re getting.

Your weather.cfg should look like this (of course with the real content, not the xxxxx ;)):

# The apikey for the different weather providers, at least one must be specified
# Note: Hamweather requires two apikeys: client_id=apikey, client_secret=apikey2
#apikey.ForecastIo=
#apikey.OpenWeatherMap=
#apikey.WorldWeatherOnline=
apikey.Wunderground=xxxxxxxxxxxxxxxxxx
#apikey.Hamweather=
#apikey2.Hamweather=
#apikey.Meteoblue=

# location configuration, you can specify multiple locations
location.home.name=home
location.home.latitude=50.xxxxxx
location.home.longitude=2.xxxxxx
#location.home.woeid=xxxxxx
location.home.provider=Wunderground
location.home.language=en
location.home.updateInterval=15

No, I manually inserted the ’ because I noticed that the # causes the font to change to bigger and bold :slight_smile:
Probably not the best way to go :slight_smile:

Ik keep getting the same error:
20:55:01.481 [WARN ] [eather.internal.common.WeatherConfig] - Incomplete location config for locationId ‘’. Check openhab.cfg.

But I doesn’t exist, it was overwritten by my home config.