Hi,
Installed Weather Binding on OH2 and configured it with my location data. My weather.cfg looks like this:
apikey.OpenWeatherMap=xxxxx
location configuration, you can specify multiple locations
location.id.name=locaiton
location.id.provider=OpenWeatherMap
location.id.latitude=xxxx
location.id.longitude=xxxx
location.id.language=de
location.id.updateInterval=10
location.id.units=si
Although I can see updated weather data on my sitemap, there are still some fields which are not populated (rain data etc.) In log file I can see the following error;
2018-01-01 20:28:43.490 [ERROR] [nal.provider.AbstractWeatherProvider] - OPENWEATHERMAP[hittnau]: Can't retreive weather data: Invalid API key. Please see http://openweathermap.org/faq#error401 for more info.
I tested the API key and that work like a charm, but if I do a tcpdump I see the following get request towards OpenweatherMAP servers:
/data/2.5/forecast/daily?lat=xx.yyyyy&lon=cc.ddddd&lang=de&cnt=5&mode=json&units=metric&APPID=xxx
According the the OpenweatherMAP API documentation daily does not exist, but it works with forecast location only.
/data/2.5/forecast?lat=xx.yyyyy&lon=cc.ddddd&lang=de&cnt=5&mode=json&units=metric&APPID=xxx
Does anybody can tell me how to fix this API get request?
Thanks a lot.