Cannot get weather forecast with Open Weather Map

Moderator: leecollings

Post Reply
User avatar
andrehj
Posts: 78
Joined: Sunday 06 January 2019 14:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.4
Location: NL
Contact:

Cannot get weather forecast with Open Weather Map

Post by andrehj »

I need the temperature forecast for the current day to control my AC.

So I checked https://wiki.domoticz.com/Weather and learned that I had to use Open Weather Map for that purpose. So I followed the instructions on https://wiki.domoticz.com/Open_Weather_Map and created a free subscription with an API key. .
Everything went OK. When I manually enter the URL https://api.openweathermap.org/data/2.5 ... &appid=xxx I get a json with all the data that I need with 40 future weather forecasts (numbers 0-39), 3 hours apart:

Code: Select all

{
  "cod": "200",
  "message": 0,
  "cnt": 40,
  "list": [
    {
      "dt": 1787400000,
      "main": {
        "temp": 290.74,
        "feels_like": 290.49,
        "temp_min": 290.74,
        "temp_max": 292.87,
        "pressure": 1017,
        "sea_level": 1017,
        "grnd_level": 1016,
        "humidity": 74,
        "temp_kf": -2.13,
        "dew_point": 286.06
      },
      "weather": [
        {
          "id": 500,
          "main": "Rain",
          "description": "light rain",
          "icon": "10d"
        }
      ],
      "clouds": {
        "all": 52
      },
      "wind": {
        "speed": 5.63,
        "deg": 316,
        "gust": 6.39
      },
      "visibility": 10000,
      "pop": 1,
      "rain": {
        "3h": 0.36
      },
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-22 12:00:00"
    },
    {
      "dt": 1787410800,
      "main": {
        "temp": 291.88,
        "feels_like": 291.43,
        "temp_min": 291.88,
        "temp_max": 292.99,
        "pressure": 1019,
        "sea_level": 1019,
        "grnd_level": 1017,
        "humidity": 62,
        "temp_kf": -1.11,
        "dew_point": 284.46
      },
      "weather": [
        {
          "id": 804,
          "main": "Clouds",
          "description": "overcast clouds",
          "icon": "04d"
        }
      ],
      "clouds": {
        "all": 85
      },
      "wind": {
        "speed": 4.74,
        "deg": 314,
        "gust": 6.3
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-22 15:00:00"
    },
    {
      "dt": 1787421600,
      "main": {
        "temp": 291.6,
        "feels_like": 291.12,
        "temp_min": 291.6,
        "temp_max": 291.6,
        "pressure": 1021,
        "sea_level": 1021,
        "grnd_level": 1018,
        "humidity": 62,
        "temp_kf": 0,
        "dew_point": 281.91
      },
      "weather": [
        {
          "id": 804,
          "main": "Clouds",
          "description": "overcast clouds",
          "icon": "04d"
        }
      ],
      "clouds": {
        "all": 87
      },
      "wind": {
        "speed": 3.73,
        "deg": 325,
        "gust": 7.11
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-22 18:00:00"
    },
    {
      "dt": 1787432400,
      "main": {
        "temp": 288.48,
        "feels_like": 288.08,
        "temp_min": 288.48,
        "temp_max": 288.48,
        "pressure": 1023,
        "sea_level": 1023,
        "grnd_level": 1020,
        "humidity": 77,
        "temp_kf": 0,
        "dew_point": 281.31
      },
      "weather": [
        {
          "id": 800,
          "main": "Clear",
          "description": "clear sky",
          "icon": "01n"
        }
      ],
      "clouds": {
        "all": 6
      },
      "wind": {
        "speed": 2.6,
        "deg": 289,
        "gust": 4.16
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "n"
      },
      "dt_txt": "2026-08-22 21:00:00"
    },
    {
      "dt": 1787443200,
      "main": {
        "temp": 289.06,
        "feels_like": 288.56,
        "temp_min": 289.06,
        "temp_max": 289.06,
        "pressure": 1023,
        "sea_level": 1023,
        "grnd_level": 1020,
        "humidity": 71,
        "temp_kf": 0,
        "dew_point": 282.03
      },
      "weather": [
        {
          "id": 803,
          "main": "Clouds",
          "description": "broken clouds",
          "icon": "04n"
        }
      ],
      "clouds": {
        "all": 52
      },
      "wind": {
        "speed": 2.64,
        "deg": 278,
        "gust": 6.11
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "n"
      },
      "dt_txt": "2026-08-23 00:00:00"
    },
    {
      "dt": 1787454000,
      "main": {
        "temp": 288.78,
        "feels_like": 288.38,
        "temp_min": 288.78,
        "temp_max": 288.78,
        "pressure": 1023,
        "sea_level": 1023,
        "grnd_level": 1020,
        "humidity": 76,
        "temp_kf": 0,
        "dew_point": 282.62
      },
      "weather": [
        {
          "id": 500,
          "main": "Rain",
          "description": "light rain",
          "icon": "10n"
        }
      ],
      "clouds": {
        "all": 98
      },
      "wind": {
        "speed": 2.71,
        "deg": 282,
        "gust": 6.21
      },
      "visibility": 10000,
      "pop": 0.2,
      "rain": {
        "3h": 0.1
      },
      "sys": {
        "pod": "n"
      },
      "dt_txt": "2026-08-23 03:00:00"
    },
    {
      "dt": 1787464800,
      "main": {
        "temp": 288.45,
        "feels_like": 288.07,
        "temp_min": 288.45,
        "temp_max": 288.45,
        "pressure": 1024,
        "sea_level": 1024,
        "grnd_level": 1021,
        "humidity": 78,
        "temp_kf": 0,
        "dew_point": 282.7
      },
      "weather": [
        {
          "id": 804,
          "main": "Clouds",
          "description": "overcast clouds",
          "icon": "04d"
        }
      ],
      "clouds": {
        "all": 86
      },
      "wind": {
        "speed": 2.79,
        "deg": 294,
        "gust": 6.86
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-23 06:00:00"
    },
    {
      "dt": 1787475600,
      "main": {
        "temp": 290.2,
        "feels_like": 289.55,
        "temp_min": 290.2,
        "temp_max": 290.2,
        "pressure": 1025,
        "sea_level": 1025,
        "grnd_level": 1022,
        "humidity": 61,
        "temp_kf": 0,
        "dew_point": 281.76
      },
      "weather": [
        {
          "id": 804,
          "main": "Clouds",
          "description": "overcast clouds",
          "icon": "04d"
        }
      ],
      "clouds": {
        "all": 92
      },
      "wind": {
        "speed": 3.88,
        "deg": 296,
        "gust": 5.53
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-23 09:00:00"
    },
    {
      "dt": 1787486400,
      "main": {
        "temp": 293.16,
        "feels_like": 292.44,
        "temp_min": 293.16,
        "temp_max": 293.16,
        "pressure": 1024,
        "sea_level": 1024,
        "grnd_level": 1021,
        "humidity": 47,
        "temp_kf": 0,
        "dew_point": 281.1
      },
      "weather": [
        {
          "id": 804,
          "main": "Clouds",
          "description": "overcast clouds",
          "icon": "04d"
        }
      ],
      "clouds": {
        "all": 86
      },
      "wind": {
        "speed": 4.71,
        "deg": 316,
        "gust": 5.5
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-23 12:00:00"
    },
    {
      "dt": 1787497200,
      "main": {
        "temp": 294.02,
        "feels_like": 293.42,
        "temp_min": 294.02,
        "temp_max": 294.02,
        "pressure": 1024,
        "sea_level": 1024,
        "grnd_level": 1021,
        "humidity": 48,
        "temp_kf": 0,
        "dew_point": 281.35
      },
      "weather": [
        {
          "id": 803,
          "main": "Clouds",
          "description": "broken clouds",
          "icon": "04d"
        }
      ],
      "clouds": {
        "all": 51
      },
      "wind": {
        "speed": 3.91,
        "deg": 332,
        "gust": 5.36
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-23 15:00:00"
    },
    {
      "dt": 1787508000,
      "main": {
        "temp": 293.27,
        "feels_like": 293.03,
        "temp_min": 293.27,
        "temp_max": 293.27,
        "pressure": 1025,
        "sea_level": 1025,
        "grnd_level": 1022,
        "humidity": 65,
        "temp_kf": 0,
        "dew_point": 283.14
      },
      "weather": [
        {
          "id": 803,
          "main": "Clouds",
          "description": "broken clouds",
          "icon": "04d"
        }
      ],
      "clouds": {
        "all": 57
      },
      "wind": {
        "speed": 3.23,
        "deg": 329,
        "gust": 6.04
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-23 18:00:00"
    },
    {
      "dt": 1787518800,
      "main": {
        "temp": 289.31,
        "feels_like": 289.04,
        "temp_min": 289.31,
        "temp_max": 289.31,
        "pressure": 1025,
        "sea_level": 1025,
        "grnd_level": 1022,
        "humidity": 79,
        "temp_kf": 0,
        "dew_point": 281.92
      },
      "weather": [
        {
          "id": 802,
          "main": "Clouds",
          "description": "scattered clouds",
          "icon": "03n"
        }
      ],
      "clouds": {
        "all": 30
      },
      "wind": {
        "speed": 2.6,
        "deg": 0,
        "gust": 3.27
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "n"
      },
      "dt_txt": "2026-08-23 21:00:00"
    },
    {
      "dt": 1787529600,
      "main": {
        "temp": 286.81,
        "feels_like": 286.48,
        "temp_min": 286.81,
        "temp_max": 286.81,
        "pressure": 1025,
        "sea_level": 1025,
        "grnd_level": 1022,
        "humidity": 86,
        "temp_kf": 0,
        "dew_point": 282.03
      },
      "weather": [
        {
          "id": 802,
          "main": "Clouds",
          "description": "scattered clouds",
          "icon": "03n"
        }
      ],
      "clouds": {
        "all": 50
      },
      "wind": {
        "speed": 1.23,
        "deg": 26,
        "gust": 1.23
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "n"
      },
      "dt_txt": "2026-08-24 00:00:00"
    },
    {
      "dt": 1787540400,
      "main": {
        "temp": 283.83,
        "feels_like": 283.28,
        "temp_min": 283.83,
        "temp_max": 283.83,
        "pressure": 1024,
        "sea_level": 1024,
        "grnd_level": 1021,
        "humidity": 89,
        "temp_kf": 0,
        "dew_point": 282.05
      },
      "weather": [
        {
          "id": 800,
          "main": "Clear",
          "description": "clear sky",
          "icon": "01n"
        }
      ],
      "clouds": {
        "all": 6
      },
      "wind": {
        "speed": 0.8,
        "deg": 51,
        "gust": 0.83
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "n"
      },
      "dt_txt": "2026-08-24 03:00:00"
    },
    {
      "dt": 1787551200,
      "main": {
        "temp": 285.92,
        "feels_like": 285.42,
        "temp_min": 285.92,
        "temp_max": 285.92,
        "pressure": 1024,
        "sea_level": 1024,
        "grnd_level": 1021,
        "humidity": 83,
        "temp_kf": 0,
        "dew_point": 283.01
      },
      "weather": [
        {
          "id": 800,
          "main": "Clear",
          "description": "clear sky",
          "icon": "01d"
        }
      ],
      "clouds": {
        "all": 3
      },
      "wind": {
        "speed": 1.01,
        "deg": 74,
        "gust": 1.16
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-24 06:00:00"
    },
    {
      "dt": 1787562000,
      "main": {
        "temp": 291.6,
        "feels_like": 291.09,
        "temp_min": 291.6,
        "temp_max": 291.6,
        "pressure": 1024,
        "sea_level": 1024,
        "grnd_level": 1021,
        "humidity": 61,
        "temp_kf": 0,
        "dew_point": 283.84
      },
      "weather": [
        {
          "id": 800,
          "main": "Clear",
          "description": "clear sky",
          "icon": "01d"
        }
      ],
      "clouds": {
        "all": 0
      },
      "wind": {
        "speed": 2.63,
        "deg": 94,
        "gust": 3.17
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-24 09:00:00"
    },
    {
      "dt": 1787572800,
      "main": {
        "temp": 295.23,
        "feels_like": 294.67,
        "temp_min": 295.23,
        "temp_max": 295.23,
        "pressure": 1022,
        "sea_level": 1022,
        "grnd_level": 1019,
        "humidity": 45,
        "temp_kf": 0,
        "dew_point": 282.73
      },
      "weather": [
        {
          "id": 800,
          "main": "Clear",
          "description": "clear sky",
          "icon": "01d"
        }
      ],
      "clouds": {
        "all": 6
      },
      "wind": {
        "speed": 3.75,
        "deg": 78,
        "gust": 4.06
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-24 12:00:00"
    },
    {
      "dt": 1787583600,
      "main": {
        "temp": 296.42,
        "feels_like": 295.82,
        "temp_min": 296.42,
        "temp_max": 296.42,
        "pressure": 1020,
        "sea_level": 1020,
        "grnd_level": 1017,
        "humidity": 39,
        "temp_kf": 0,
        "dew_point": 281.6
      },
      "weather": [
        {
          "id": 800,
          "main": "Clear",
          "description": "clear sky",
          "icon": "01d"
        }
      ],
      "clouds": {
        "all": 6
      },
      "wind": {
        "speed": 4.15,
        "deg": 81,
        "gust": 4.71
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-24 15:00:00"
    },
    {
      "dt": 1787594400,
      "main": {
        "temp": 292.23,
        "feels_like": 291.58,
        "temp_min": 292.23,
        "temp_max": 292.23,
        "pressure": 1018,
        "sea_level": 1018,
        "grnd_level": 1015,
        "humidity": 53,
        "temp_kf": 0,
        "dew_point": 282.38
      },
      "weather": [
        {
          "id": 801,
          "main": "Clouds",
          "description": "few clouds",
          "icon": "02d"
        }
      ],
      "clouds": {
        "all": 24
      },
      "wind": {
        "speed": 3.33,
        "deg": 68,
        "gust": 6.79
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-24 18:00:00"
    },
    {
      "dt": 1787605200,
      "main": {
        "temp": 288.43,
        "feels_like": 287.61,
        "temp_min": 288.43,
        "temp_max": 288.43,
        "pressure": 1018,
        "sea_level": 1018,
        "grnd_level": 1015,
        "humidity": 61,
        "temp_kf": 0,
        "dew_point": 281.02
      },
      "weather": [
        {
          "id": 804,
          "main": "Clouds",
          "description": "overcast clouds",
          "icon": "04n"
        }
      ],
      "clouds": {
        "all": 88
      },
      "wind": {
        "speed": 4.06,
        "deg": 72,
        "gust": 11.74
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "n"
      },
      "dt_txt": "2026-08-24 21:00:00"
    },
    {
      "dt": 1787616000,
      "main": {
        "temp": 286.7,
        "feels_like": 285.91,
        "temp_min": 286.7,
        "temp_max": 286.7,
        "pressure": 1017,
        "sea_level": 1017,
        "grnd_level": 1014,
        "humidity": 69,
        "temp_kf": 0,
        "dew_point": 280.95
      },
      "weather": [
        {
          "id": 803,
          "main": "Clouds",
          "description": "broken clouds",
          "icon": "04n"
        }
      ],
      "clouds": {
        "all": 51
      },
      "wind": {
        "speed": 4.15,
        "deg": 61,
        "gust": 10.93
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "n"
      },
      "dt_txt": "2026-08-25 00:00:00"
    },
    {
      "dt": 1787626800,
      "main": {
        "temp": 285.05,
        "feels_like": 284.33,
        "temp_min": 285.05,
        "temp_max": 285.05,
        "pressure": 1016,
        "sea_level": 1016,
        "grnd_level": 1014,
        "humidity": 78,
        "temp_kf": 0,
        "dew_point": 281.36
      },
      "weather": [
        {
          "id": 802,
          "main": "Clouds",
          "description": "scattered clouds",
          "icon": "03n"
        }
      ],
      "clouds": {
        "all": 47
      },
      "wind": {
        "speed": 3.79,
        "deg": 66,
        "gust": 9.51
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "n"
      },
      "dt_txt": "2026-08-25 03:00:00"
    },
    {
      "dt": 1787637600,
      "main": {
        "temp": 286.68,
        "feels_like": 285.94,
        "temp_min": 286.68,
        "temp_max": 286.68,
        "pressure": 1016,
        "sea_level": 1016,
        "grnd_level": 1013,
        "humidity": 71,
        "temp_kf": 0,
        "dew_point": 281.54
      },
      "weather": [
        {
          "id": 803,
          "main": "Clouds",
          "description": "broken clouds",
          "icon": "04d"
        }
      ],
      "clouds": {
        "all": 51
      },
      "wind": {
        "speed": 4.63,
        "deg": 75,
        "gust": 11.05
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-25 06:00:00"
    },
    {
      "dt": 1787648400,
      "main": {
        "temp": 294.96,
        "feels_like": 294.29,
        "temp_min": 294.96,
        "temp_max": 294.96,
        "pressure": 1015,
        "sea_level": 1015,
        "grnd_level": 1012,
        "humidity": 42,
        "temp_kf": 0,
        "dew_point": 281.48
      },
      "weather": [
        {
          "id": 801,
          "main": "Clouds",
          "description": "few clouds",
          "icon": "02d"
        }
      ],
      "clouds": {
        "all": 21
      },
      "wind": {
        "speed": 6.36,
        "deg": 100,
        "gust": 8.95
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-25 09:00:00"
    },
    {
      "dt": 1787659200,
      "main": {
        "temp": 299.45,
        "feels_like": 299.45,
        "temp_min": 299.45,
        "temp_max": 299.45,
        "pressure": 1014,
        "sea_level": 1014,
        "grnd_level": 1011,
        "humidity": 34,
        "temp_kf": 0,
        "dew_point": 282.54
      },
      "weather": [
        {
          "id": 802,
          "main": "Clouds",
          "description": "scattered clouds",
          "icon": "03d"
        }
      ],
      "clouds": {
        "all": 47
      },
      "wind": {
        "speed": 6.12,
        "deg": 114,
        "gust": 8.06
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-25 12:00:00"
    },
    {
      "dt": 1787670000,
      "main": {
        "temp": 298.93,
        "feels_like": 298.66,
        "temp_min": 298.93,
        "temp_max": 298.93,
        "pressure": 1013,
        "sea_level": 1013,
        "grnd_level": 1010,
        "humidity": 42,
        "temp_kf": 0,
        "dew_point": 285.1
      },
      "weather": [
        {
          "id": 804,
          "main": "Clouds",
          "description": "overcast clouds",
          "icon": "04d"
        }
      ],
      "clouds": {
        "all": 100
      },
      "wind": {
        "speed": 4.96,
        "deg": 166,
        "gust": 7.11
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-25 15:00:00"
    },
    {
      "dt": 1787680800,
      "main": {
        "temp": 291.8,
        "feels_like": 292.02,
        "temp_min": 291.8,
        "temp_max": 291.8,
        "pressure": 1014,
        "sea_level": 1014,
        "grnd_level": 1011,
        "humidity": 88,
        "temp_kf": 0,
        "dew_point": 289.66
      },
      "weather": [
        {
          "id": 500,
          "main": "Rain",
          "description": "light rain",
          "icon": "10d"
        }
      ],
      "clouds": {
        "all": 100
      },
      "wind": {
        "speed": 1.3,
        "deg": 239,
        "gust": 2.56
      },
      "visibility": 10000,
      "pop": 0.2,
      "rain": {
        "3h": 0.21
      },
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-25 18:00:00"
    },
    {
      "dt": 1787691600,
      "main": {
        "temp": 291.03,
        "feels_like": 291.09,
        "temp_min": 291.03,
        "temp_max": 291.03,
        "pressure": 1014,
        "sea_level": 1014,
        "grnd_level": 1011,
        "humidity": 85,
        "temp_kf": 0,
        "dew_point": 288.39
      },
      "weather": [
        {
          "id": 804,
          "main": "Clouds",
          "description": "overcast clouds",
          "icon": "04n"
        }
      ],
      "clouds": {
        "all": 90
      },
      "wind": {
        "speed": 2.91,
        "deg": 72,
        "gust": 4.24
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "n"
      },
      "dt_txt": "2026-08-25 21:00:00"
    },
    {
      "dt": 1787702400,
      "main": {
        "temp": 290.65,
        "feels_like": 290.47,
        "temp_min": 290.65,
        "temp_max": 290.65,
        "pressure": 1014,
        "sea_level": 1014,
        "grnd_level": 1011,
        "humidity": 77,
        "temp_kf": 0,
        "dew_point": 286.63
      },
      "weather": [
        {
          "id": 804,
          "main": "Clouds",
          "description": "overcast clouds",
          "icon": "04n"
        }
      ],
      "clouds": {
        "all": 95
      },
      "wind": {
        "speed": 2.3,
        "deg": 172,
        "gust": 3.78
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "n"
      },
      "dt_txt": "2026-08-26 00:00:00"
    },
    {
      "dt": 1787713200,
      "main": {
        "temp": 291.1,
        "feels_like": 291.3,
        "temp_min": 291.1,
        "temp_max": 291.1,
        "pressure": 1013,
        "sea_level": 1013,
        "grnd_level": 1010,
        "humidity": 90,
        "temp_kf": 0,
        "dew_point": 289.44
      },
      "weather": [
        {
          "id": 500,
          "main": "Rain",
          "description": "light rain",
          "icon": "10n"
        }
      ],
      "clouds": {
        "all": 98
      },
      "wind": {
        "speed": 3.62,
        "deg": 143,
        "gust": 9.87
      },
      "visibility": 10000,
      "pop": 0.49,
      "rain": {
        "3h": 0.39
      },
      "sys": {
        "pod": "n"
      },
      "dt_txt": "2026-08-26 03:00:00"
    },
    {
      "dt": 1787724000,
      "main": {
        "temp": 291.15,
        "feels_like": 291.46,
        "temp_min": 291.15,
        "temp_max": 291.15,
        "pressure": 1014,
        "sea_level": 1014,
        "grnd_level": 1011,
        "humidity": 94,
        "temp_kf": 0,
        "dew_point": 290.16
      },
      "weather": [
        {
          "id": 500,
          "main": "Rain",
          "description": "light rain",
          "icon": "10d"
        }
      ],
      "clouds": {
        "all": 98
      },
      "wind": {
        "speed": 2.83,
        "deg": 153,
        "gust": 6.19
      },
      "visibility": 10000,
      "pop": 1,
      "rain": {
        "3h": 1.42
      },
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-26 06:00:00"
    },
    {
      "dt": 1787734800,
      "main": {
        "temp": 295.87,
        "feels_like": 296.03,
        "temp_min": 295.87,
        "temp_max": 295.87,
        "pressure": 1015,
        "sea_level": 1015,
        "grnd_level": 1012,
        "humidity": 70,
        "temp_kf": 0,
        "dew_point": 290
      },
      "weather": [
        {
          "id": 500,
          "main": "Rain",
          "description": "light rain",
          "icon": "10d"
        }
      ],
      "clouds": {
        "all": 68
      },
      "wind": {
        "speed": 4.02,
        "deg": 175,
        "gust": 5.2
      },
      "visibility": 10000,
      "pop": 0.87,
      "rain": {
        "3h": 0.59
      },
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-26 09:00:00"
    },
    {
      "dt": 1787745600,
      "main": {
        "temp": 297.38,
        "feels_like": 297.43,
        "temp_min": 297.38,
        "temp_max": 297.38,
        "pressure": 1015,
        "sea_level": 1015,
        "grnd_level": 1012,
        "humidity": 60,
        "temp_kf": 0,
        "dew_point": 289.14
      },
      "weather": [
        {
          "id": 803,
          "main": "Clouds",
          "description": "broken clouds",
          "icon": "04d"
        }
      ],
      "clouds": {
        "all": 84
      },
      "wind": {
        "speed": 3.68,
        "deg": 200,
        "gust": 5.26
      },
      "visibility": 10000,
      "pop": 0.47,
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-26 12:00:00"
    },
    {
      "dt": 1787756400,
      "main": {
        "temp": 295.84,
        "feels_like": 295.97,
        "temp_min": 295.84,
        "temp_max": 295.84,
        "pressure": 1014,
        "sea_level": 1014,
        "grnd_level": 1011,
        "humidity": 69,
        "temp_kf": 0,
        "dew_point": 289.83
      },
      "weather": [
        {
          "id": 500,
          "main": "Rain",
          "description": "light rain",
          "icon": "10d"
        }
      ],
      "clouds": {
        "all": 97
      },
      "wind": {
        "speed": 1.41,
        "deg": 230,
        "gust": 1.69
      },
      "visibility": 10000,
      "pop": 0.32,
      "rain": {
        "3h": 0.32
      },
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-26 15:00:00"
    },
    {
      "dt": 1787767200,
      "main": {
        "temp": 293.55,
        "feels_like": 293.81,
        "temp_min": 293.55,
        "temp_max": 293.55,
        "pressure": 1013,
        "sea_level": 1013,
        "grnd_level": 1011,
        "humidity": 83,
        "temp_kf": 0,
        "dew_point": 290.61
      },
      "weather": [
        {
          "id": 500,
          "main": "Rain",
          "description": "light rain",
          "icon": "10d"
        }
      ],
      "clouds": {
        "all": 88
      },
      "wind": {
        "speed": 0.9,
        "deg": 26,
        "gust": 0.94
      },
      "visibility": 10000,
      "pop": 1,
      "rain": {
        "3h": 1.62
      },
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-26 18:00:00"
    },
    {
      "dt": 1787778000,
      "main": {
        "temp": 291.22,
        "feels_like": 291.48,
        "temp_min": 291.22,
        "temp_max": 291.22,
        "pressure": 1013,
        "sea_level": 1013,
        "grnd_level": 1010,
        "humidity": 92,
        "temp_kf": 0,
        "dew_point": 289.82
      },
      "weather": [
        {
          "id": 802,
          "main": "Clouds",
          "description": "scattered clouds",
          "icon": "03n"
        }
      ],
      "clouds": {
        "all": 48
      },
      "wind": {
        "speed": 3.24,
        "deg": 55,
        "gust": 6.21
      },
      "visibility": 10000,
      "pop": 0.02,
      "sys": {
        "pod": "n"
      },
      "dt_txt": "2026-08-26 21:00:00"
    },
    {
      "dt": 1787788800,
      "main": {
        "temp": 290.84,
        "feels_like": 290.99,
        "temp_min": 290.84,
        "temp_max": 290.84,
        "pressure": 1011,
        "sea_level": 1011,
        "grnd_level": 1008,
        "humidity": 89,
        "temp_kf": 0,
        "dew_point": 289.06
      },
      "weather": [
        {
          "id": 803,
          "main": "Clouds",
          "description": "broken clouds",
          "icon": "04n"
        }
      ],
      "clouds": {
        "all": 65
      },
      "wind": {
        "speed": 3.42,
        "deg": 67,
        "gust": 6.78
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "n"
      },
      "dt_txt": "2026-08-27 00:00:00"
    },
    {
      "dt": 1787799600,
      "main": {
        "temp": 290.93,
        "feels_like": 291.06,
        "temp_min": 290.93,
        "temp_max": 290.93,
        "pressure": 1008,
        "sea_level": 1008,
        "grnd_level": 1006,
        "humidity": 88,
        "temp_kf": 0,
        "dew_point": 288.87
      },
      "weather": [
        {
          "id": 804,
          "main": "Clouds",
          "description": "overcast clouds",
          "icon": "04n"
        }
      ],
      "clouds": {
        "all": 98
      },
      "wind": {
        "speed": 3.21,
        "deg": 83,
        "gust": 5.62
      },
      "visibility": 10000,
      "pop": 0,
      "sys": {
        "pod": "n"
      },
      "dt_txt": "2026-08-27 03:00:00"
    },
    {
      "dt": 1787810400,
      "main": {
        "temp": 291.32,
        "feels_like": 291.62,
        "temp_min": 291.32,
        "temp_max": 291.32,
        "pressure": 1009,
        "sea_level": 1009,
        "grnd_level": 1006,
        "humidity": 93,
        "temp_kf": 0,
        "dew_point": 289.97
      },
      "weather": [
        {
          "id": 500,
          "main": "Rain",
          "description": "light rain",
          "icon": "10d"
        }
      ],
      "clouds": {
        "all": 100
      },
      "wind": {
        "speed": 2.57,
        "deg": 151,
        "gust": 6.01
      },
      "visibility": 10000,
      "pop": 1,
      "rain": {
        "3h": 2.04
      },
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-27 06:00:00"
    },
    {
      "dt": 1787821200,
      "main": {
        "temp": 296.36,
        "feels_like": 296.59,
        "temp_min": 296.36,
        "temp_max": 296.36,
        "pressure": 1008,
        "sea_level": 1008,
        "grnd_level": 1005,
        "humidity": 71,
        "temp_kf": 0,
        "dew_point": 290.8
      },
      "weather": [
        {
          "id": 500,
          "main": "Rain",
          "description": "light rain",
          "icon": "10d"
        }
      ],
      "clouds": {
        "all": 100
      },
      "wind": {
        "speed": 4.62,
        "deg": 145,
        "gust": 7.42
      },
      "visibility": 10000,
      "pop": 1,
      "rain": {
        "3h": 0.78
      },
      "sys": {
        "pod": "d"
      },
      "dt_txt": "2026-08-27 09:00:00"
    }
  ],
  "city": {
[removed my location data]
  }
}
These are the Hardware setting that I use:
2026-08-22 Domoticz Open Weather HW.png
2026-08-22 Domoticz Open Weather HW.png (38.16 KiB) Viewed 957 times
However, in Domoticz only 7 devices are generated and there is an error message that no forecast data is available and that I should use a paid subscription for that :(
But looking at the json above that statement is clearly incorrect, because Open Weather Map is supplying the weather forecast data, only somehow Domoticz doesn't recognize it.

Code: Select all

2026-08-22 11:52:24.160  Status: Open Weather: Forecast data is not available with the Current Weather API (Free plan). Please use OneCall API with a paid subscription for forecast data.
2026-08-22 11:52:24.162  Open Weather: General/Text (Weather Description)
2026-08-22 11:52:24.167  Open Weather: Temp + Humidity + Baro (TempHumBaro)
2026-08-22 11:52:24.171  Open Weather: Temp (Feel Temperature)
2026-08-22 11:52:24.176  Open Weather: Wind (Wind)
2026-08-22 11:52:24.180  Open Weather: General/Visibility (Visibility)
2026-08-22 11:52:24.185  Open Weather: General/Percentage (Clouds %)
2026-08-22 11:52:24.190  Open Weather: Rain (Precipitation)
(and the forecast screen in the tab Weather → Forecast stays blank).

(I also tried enabling the bottom two options regarding the hourly forecast, but that did not make any difference)

Questions:
  1. Is this a bug or am I doing something wrong?
  2. What is the easiest way to get todays forecast temperature in Domoticz?
User avatar
habahabahaba
Posts: 285
Joined: Saturday 18 March 2023 14:44
Target OS: Windows
Domoticz version: 2024.4
Contact:

Re: Cannot get weather forecast with Open Weather Map

Post by habahabahaba »

IMHO thу easiest way to forecast is to write dzvents script and put the needed data to yout sensor
User avatar
andrehj
Posts: 78
Joined: Sunday 06 January 2019 14:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.4
Location: NL
Contact:

Re: Cannot get weather forecast with Open Weather Map

Post by andrehj »

Thanks for the suggestion, but then I have to write a script which decodes the json myself, instead of using the out-of-the-box functionality.... That doesn't seam like a very logical solution to me. The out-of-the box Open Weather Plugin should work imho.
User avatar
andrehj
Posts: 78
Joined: Sunday 06 January 2019 14:26
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.4
Location: NL
Contact:

Re: Cannot get weather forecast with Open Weather Map

Post by andrehj »

Just a heads-up to report how this ended. For the Netherlands the KNMI (Royal Dutch Meteorological Institute) has a similar API available. I used this API, and combined it with a script already availaible: viewtopic.php?t=42341 to get today's predicted temperature in Domoticz.
User avatar
gizmocuz
Posts: 3054
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Cannot get weather forecast with Open Weather Map

Post by gizmocuz »

The free Current Weather plan only provides the current weather, the forecast in Domoticz comes from the OneCall API. OpenWeatherMap offers OneCall 3.0 as the "One Call by Call" subscription, which according to their pricing page is free for the first 1000 calls per day (it does ask for payment details); select "3.0 OneCall" in the hardware settings and the forecast and forecast devices work.
Quality outlives Quantity!
Post Reply