p.kaczmarek2 wrote:I also did a OpenWeatherMap integration
Hi, I cannot get it to work. OBK log:
Info:CMD:[WebApp Cmd 'owm_setup xx.2826381 yy.0207111 a0......f4' Result] OK
Error:HTTP:GET /data/2.5/weather?lat=xx.2826381&lon=yy.0207111&appid=a0......f4&units=metric HTTP/1.1
Host: api.openweathermap.org
Connection: close
Internet is ok, for the first hour the api returned a 401 json error (should wait for the API key to be activated), and it was visible in the OBK log.
If I try it in the browser, result is ok
https://api.openweathermap.org/data/2.5/weather?lat=xx.2826381&lon=yy.0207111&appid=a0......f4&units=metric%20HTTP/1.1
{
"coord": {
...
"weather": [
{
"id": 802,
"main": "Clouds",
...
],
"base": "stations",
"main": {
"temp": 272.05,
"feels_like": 268.78,
"temp_min": 271.02,
"temp_max": 273.66,
"pressure": 1023,
"humidity": 99,
"sea_level": 1023,
"grnd_level": 981
},
"visibility": 10000,
"wind": {
"speed": 2.54,
"deg": 188,
"gust": 5.17
},
"clouds": {
"all": 26
},
"dt": 1733437954,
...