Wrong data using weather wunderground

Hi

I have already implemented the weather binding and decided to use wunderground. Now I see that the json-data in url is different to what I see in OpenHAB.

http://api.wunderground.com/api/api_key/conditions/lang:DL/q/47.536346,08.296721.json

This is what I get and looks good:

“observation_location”: {
“full”:“Endingen AG, Endingen, AARGAU”,
“city”:“Endingen AG, Endingen”,
“state”:“AARGAU”,
“country”:“CH”,
“country_iso3166”:“CH”,
“latitude”:“47.536346”,
“longitude”:“8.296721”,
“elevation”:“1453 ft”
},
“estimated”: {
},
“station_id”:“IAARGAUE6”,
“observation_time”:“Last Updated on April 29, 20:05 CEST”,
“observation_time_rfc822”:“Fri, 29 Apr 2016 20:05:14 +0200”,
“observation_epoch”:“1461953114”,
“local_time_rfc822”:“Fri, 29 Apr 2016 20:06:30 +0200”,
“local_epoch”:“1461953190”,
“local_tz_short”:“CEST”,
“local_tz_long”:“Europe/Zurich”,
“local_tz_offset”:"+0200",
“weather”:“Heiter”,
“temperature_string”:“55.0 F (12.8 C)”,
“temp_f”:55.0,
“temp_c”:12.8,
“relative_humidity”:“55%”,
“wind_string”:“From the West at 1.1 MPH Gusting to 2.0 MPH”,
“wind_dir”:“West”,
“wind_degrees”:272,
“wind_mph”:1.1,
“wind_gust_mph”:“2.0”,
“wind_kph”:1.8,
“wind_gust_kph”:“3.2”,
“pressure_mb”:“1016”,
“pressure_in”:“30.01”,
“pressure_trend”:“0”,
“dewpoint_string”:“39 F (4 C)”,
“dewpoint_f”:39,
“dewpoint_c”:4,
“heat_index_string”:“NA”,
“heat_index_f”:“NA”,
“heat_index_c”:“NA”,
“windchill_string”:“NA”,
“windchill_f”:“NA”,
“windchill_c”:“NA”,
“feelslike_string”:“55.0 F (12.8 C)”,
“feelslike_f”:“55.0”,
“feelslike_c”:“12.8”,
“visibility_mi”:“N/A”,
“visibility_km”:“N/A”,
“solarradiation”:“14”,
“UV”:“0.0”,“precip_1hr_string”:“0.00 in ( 0 mm)”,
“precip_1hr_in”:“0.00”,
“precip_1hr_metric”:" 0",
“precip_today_string”:“0.00 in (0 mm)”,
“precip_today_in”:“0.00”,
“precip_today_metric”:“0”,
“icon”:“clear”,

And this is what I see in openHAB

Evereything is different :frowning:

I don’t see any wrong config (api_key is OK):

weather:apikey.Wunderground=api_key

weather:location.home.latitude=47.536346
weather:location.home.longitude=8.296721
weather:location.home.provider=Wunderground
weather:location.home.language=DL
weather:location.home.updateInterval=30

Any help?

Thanks
Michael

PS: Addon 1.8.2 and same with Snapshot 1.9.0

You need to compare what your openhab log shows with what you see in the UI.

It would also help to provide the relevant portions of the log here…

Mmmmh, I think this is the point:

2016-04-30 07:58:08.273 [INFO ] [.o.b.w.i.s.WeatherJobScheduler] - Disabling weather locationId ‘lengnau’, no binding available

But can’t find anything that is wrong :frowning:

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
#weather:apikey.ForecastIo=
#weather:apikey.OpenWeatherMap=
#weather:apikey.WorldWeatherOnline=
weather:apikey.Wunderground=xxxxxxxxxxxxx
#weather:apikey.Hamweather=
#weather:apikey2.Hamweather=

'# location configuration, you can specify multiple locations
weather:location.lengnau.name=Lengnau
weather:location.lengnau.latitude=47.536346
weather:location.lengnau.longitude=8.296721
weather:location.lengnau.provider=Wunderground
weather:location.lengnau.language=de
weather:location.lengnau.updateInterval=30

Items:

String Weather_Condition “Common id [%s]” {weather=“locationId=lengnau, type=condition, property=commonId”}
Number Weather_Precip_Probability “Precip probability [%d %%]” {weather=“locationId=lengnau, type=precipitation, property=probability”}
String Weather_Wind_Direction “Wind direction [%s]” {weather=“locationId=lengnau, type=wind, property=direction”}
String Weather_Forecast_Day0_Condition “Common id [%s]” {weather=“locationId=lengnau, forecast=0, type=condition, property=commonId”}
Number Weather_Forecast_Day0_Temperature_High “Temperature min [%.2f °C]” {weather=“locationId=lengnau, forecast=0, type=temperature, property=max”}
Number Weather_Forecast_Day0_Temperature_Low “Temperature max [%.2f °C]” {weather=“locationId=lengnau, forecast=0, type=temperature, property=min”}
String Weather_Forecast_Day1_Condition “Common id [%s]” {weather=“locationId=lengnau, forecast=1, type=condition, property=commonId”}
Number Weather_Forecast_Day1_Temperature_High “Temperature min [%.2f °C]” {weather=“locationId=lengnau, forecast=1, type=temperature, property=max”}
Number Weather_Forecast_Day1_Temperature_Low “Temperature max [%.2f °C]” {weather=“locationId=lengnau, forecast=1, type=temperature, property=min”}
String Weather_Forecast_Day2_Condition “Common id [%s]” {weather=“locationId=lengnau, forecast=2, type=condition, property=commonId”}
Number Weather_Forecast_Day2_Temperature_High “Temperature min [%.2f °C]” {weather=“locationId=lengnau, forecast=2, type=temperature, property=max”}
Number Weather_Forecast_Day2_Temperature_Low “Temperature max [%.2f °C]” {weather=“locationId=lengnau, forecast=2, type=temperature, property=min”}
String Weather_Forecast_Day3_Condition “Common id [%s]” {weather=“locationId=lengnau, forecast=3, type=condition, property=commonId”}
Number Weather_Forecast_Day3_Temperature_High “Temperature min [%.2f °C]” {weather=“locationId=lengnau, forecast=3, type=temperature, property=max”}
Number Weather_Forecast_Day3_Temperature_Low “Temperature max [%.2f °C]” {weather=“locationId=lengnau, forecast=3, type=temperature, property=min”}

You can set weather binding to DEBUG and look into logs what is actually received from weather service. If you also set item change events to Debug you can see what is going wrong. What also came to mind : did you setup yahoo weather before?