The old API for the KNMI weather block has been deprecated.
The new url for the API is https://weerlive.nl/api/weerlive_api_v2 ... =Amsterdam
It can be used for a 5 day weather forecast.
As a test, I used Claude AI to change the weather.js file (in the components folder) to work with the new API.
That actually worked out quite well. See the attached file.
Only thing I spotted: With Rain=true, the block shows Hum: 0%.
I'm not even sure if the 0 is correct, as there actually will be no rain in the next week.
Is it possible to implement the update for the weather.js file in a current update?
New API (v2) for KNMI Weather
Moderators: leecollings, htilburgs, robgeerts
- madpatrick
- Posts: 889
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2026.1
- Location: Netherlands
- Contact:
Re: New API (v2) for KNMI Weather
You can better make PR on GIT
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2026.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
-= Checkout https://github.com/MadPatrick for the plugins =-
-
toro
- Posts: 50
- Joined: Wednesday 09 August 2017 23:05
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: New API (v2) for KNMI Weather
I looked into that. Can't wrap my head around how that works.
- madpatrick
- Posts: 889
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2026.1
- Location: Netherlands
- Contact:
Re: New API (v2) for KNMI Weather
Create a github account and Fork Dashticz.
After editing the file you can create a PR
After editing the file you can create a PR
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2026.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
-= Checkout https://github.com/MadPatrick for the plugins =-
- madpatrick
- Posts: 889
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2026.1
- Location: Netherlands
- Contact:
Re: New API (v2) for KNMI Weather
i've incorporated your patch in a PR which i'll post soon in de Dashticz GIT.
In the PR I've more updates and fixes add
In the PR I've more updates and fixes add
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2026.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
-= Checkout https://github.com/MadPatrick for the plugins =-
-
toro
- Posts: 50
- Joined: Wednesday 09 August 2017 23:05
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: New API (v2) for KNMI Weather
That's very nice, great to have people here to help others.
Thank you so much!
Thank you so much!
- madpatrick
- Posts: 889
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2026.1
- Location: Netherlands
- Contact:
Re: New API (v2) for KNMI Weather
Checkout the Dashticz beta branch
it has been updated huge and we need people to test
See post viewtopic.php?f=67&t=45078
it has been updated huge and we need people to test
See post viewtopic.php?f=67&t=45078
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2026.2 -=- Dashticz =-
-= Checkout https://github.com/MadPatrick for the plugins =-
-= Checkout https://github.com/MadPatrick for the plugins =-