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.
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.
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.