eigenein / my-iot-rs

Yet another home automation (alpha)
https://eigenein.github.io/my-iot-rs/html
MIT License
32 stars 5 forks source link

[Service] Buienalarm #22

Open eigenein opened 5 years ago

eigenein commented 5 years ago

It's not an official API, but it may work:

https://cdn-secure.buienalarm.nl/api/3.4/forecast.php?lat=52.XXXX&lon=4.YYYYY&region=nl&unit=mm/u

{
  "success": true,
  "start": 1569183000,
  "start_human": "22:10",
  "temp": 18,
  "delta": 300,
  "precip": [
    4.53,
    2.05,
    5.62,
    9.31,
    0.52,
    0.22,
    0,
    0,
    0.52,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0.17,
    0.49,
    0.6,
    1.24,
    2.55,
    0.75
  ],
  "levels": {
    "light": 0.25,
    "moderate": 1,
    "heavy": 2.5
  },
  "grid": {
    "x": 331,
    "y": 402
  },
  "source": "nl",
  "bounds": {
    "N": 55.973602,
    "E": 10.856429,
    "S": 48.895302,
    "W": 0
  }
}