API Documentatie

Historische stationsgegevens opvragen

Je kan de historische gegevens van jouw weerstation opvragen met de volgende endpoint:

curl -H "Authorization: Bearer {token}" https://skyz.be/api/v1/pws/{id}/history/{date}

Het stationsID kan je terugvinden in de PWS Lijst API

Parameters:

  • {token}: Jouw API Token
  • {id}: Het stations ID waarvan je de historische gegevens wenst op te vragen
  • {date}: De datum, in YYYY-MM-DD formaat

Voorbeeld response

[
    ...
    {
        "personal_weather_station_id": "994a50d5-69d6-457e-9e8c-67fbce2632bf",
        "time": "2023-05-30 13:09:34",
        "temperature": 17.3,
        "dewpoint": 9.5,
        "humidity": 60,
        "pressure": 1026.31,
        "wind_speed": 4.5,
        "wind_direction": 303,
        "rainfall": 0,
        "rainfall_rate": 0,
        "solar_radiation": 685.33,
        "uv_index": 6,
        "windchill": 17.3,
        "heat_index": 17.3
    },
    {
        "personal_weather_station_id": "994a50d5-69d6-457e-9e8c-67fbce2632bf",
        "time": "2023-05-30 13:14:38",
        "temperature": 17.9,
        "dewpoint": 9,
        "humidity": 56,
        "pressure": 1026.31,
        "wind_speed": 13.8,
        "wind_direction": 21,
        "rainfall": 0,
        "rainfall_rate": 0,
        "solar_radiation": 705.75,
        "uv_index": 6,
        "windchill": 17.9,
        "heat_index": 17.9
    }
    ...
]