Wunderground wrong station

Hi everybody,

I’m just trying to work out Wonderground with weather binding. If I check out the settings for weather.cfg using JSON url http://api.wunderground.com/api/95138b042f24a3d0/geolookup/q/pws:IGTZIS6.json I get the following information:
location.home-WU.name=home-WU
location.home-WU.latitude=47.312088
location.home-WU.longitude=9.635824
location.home-WU.provider=Wunderground
location.home-WU.language=de
location.home-WU.updateInterval=10

Thus if I look up Station Id I get a different station. Can anybody tell me what could be wrong because I am using exactly what the url response tells me.

Thank you!

Try http://api.wunderground.com/api/95138b042f24a3d0/geolookup/q/47.312088,9.635824.json for the JSON url? I don’t believe the binding finds weather by the station ID.

Hi Paul,

of cause you’re right. Maybe my explanation was to short to understand.

What I did was as follows:

  1. I opened the Wonderground map to find the nearest weather station from my home. It is IGTZIS6
  2. To find the correct data for the Wunderground configuration in weather.cfg I used the station url: http://api.wunderground.com/api/95138b042f24a3d0/geolookup/q/pws:IGTZIS6.json
    As you can see there, latitude of IGTZIS6 is 47.312088, longitude of IGTZIS6 is 9.635824
  3. I configured weather.cfg with these values:
location.home-WU.name=home-WU
location.home-WU.latitude=47.312088
location.home-WU.longitude=9.635824
location.home-WU.provider=Wunderground
location.home-WU.language=de
location.home-WU.updateInterval=10
  1. So my expectation was, I should get back data from the configured station IGTZIS6

But… and that’s the problem, although I used the exact values of IGTZIS6, when I configure an item

String Wetter_Stations_Id "Stations Id [%s]" (gWonderground) {weather="locationId=home-WU, type=station, property=id"}

the delivered value is IKOMMING4 instead of the expected IGTZIS6. IKOMMING4 is quite close from here, thus it should be IGTZIS6.

And I don’t know what could be wrong because the only two values for identification of the station are longitude and latitude and I just used exactly what Wonderground delivered.

Could it be that those stations do not report continuesly and at the time of your request the other station reported just recently?
I’ m seeing a similar thing using OpenWeatherMap and I BELIEVE that this is the cause.

I guess no because I don’t even get the right station if it was updated the minute before. On the webpage https://www.wunderground.com/personal-weather-station/dashboard?ID=IGTZIS6 you can see next to “Current Conditions” how long the last update is ago.

I just recognized a strange behaviour of the json url:

If the url has the correct longitude and latitude values ( http://api.wunderground.com/api/95138b042f24a3d0/geolookup/q/47.312088,9.635824.json), it returns 47.31 as latitude and 9,63 as longitude. So it cuts down the values to 2 decimals.

Now I can either have a correct latitude (47.312088,9.63) or a correct longitude (47.31,9.635824). If both values have more than 2 decimal places, both are cut down to 2. This is really strange and at the moment I cannot find an explanation.

Any idea that could help?