New API (v2) for KNMI Weather

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
toro
Posts: 50
Joined: Wednesday 09 August 2017 23:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

New API (v2) for KNMI Weather

Post by toro »

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.
weather - Claude.js
(27.93 KiB) Downloaded 101 times
Only thing I spotted: With Rain=true, the block shows Hum: 0%.
KNMI Forecast 5days.png
KNMI Forecast 5days.png (108.6 KiB) Viewed 938 times
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?
User avatar
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

Post by madpatrick »

You can better make PR on GIT
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2026.2 -=- Dashticz =-
-= 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

Post by toro »

madpatrick wrote: Saturday 11 July 2026 19:07 You can better make PR on GIT
I looked into that. Can't wrap my head around how that works. :?
User avatar
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

Post by madpatrick »

Create a github account and Fork Dashticz.
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 =-
User avatar
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

Post by madpatrick »

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
-= HP server GEN11 =- ZwaveJS-=- Domoticz v2026.2 -=- Dashticz =-
-= 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

Post by toro »

That's very nice, great to have people here to help others.
Thank you so much!
User avatar
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

Post by madpatrick »

Checkout the Dashticz beta branch
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 =-
Post Reply