API Documentatie

Laatste observatie opvragen opvragen

Je kan de laatste observaite opvragen met het volgende endpoint:

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

Het stationsID kan je terugvinden in de PWS Lijst API

Voorbeeld response

{
  "personal_weather_station_id": "9ab46901-87ea-46c4-970e-2fa6abb3d864",
  "time": "2023-11-26 11:59:51",
  "temperature": 6.5,
  "dewpoint": 5.4,
  "humidity": 93,
  "pressure": 1016.63,
  "wind_speed": 2.4,
  "wind_direction": 133,
  "rainfall": 0.51,
  "rainfall_rate": 0,
  "solar_radiation": 87.1,
  "uv_index": 0,
  "windchill": 6.5,
  "heat_index": 6.5,
  "observation_id": "9ab46953-d9ef-486b-8e47-fc84bae42cb0",
  "stationinfo": {
    "country": "be",
    "name": "Schoonaarde",
    "latitude": "51.0000000",
    "longitude": "4.0000000"
  }
}