Best weather API for 3/6 hour prediction for Europe

Moderator: leecollings

Post Reply
Kedi
Posts: 559
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Best weather API for 3/6 hour prediction for Europe

Post by Kedi »

We travel with a camper thru Europe. I already send my camper location to Domoticz.
I know how to process json or xml to Pushover and Telegram alert.
I want to be alerted in advance for upcomming wind/gust and rain and other weather disaster for the current location of where we are in Europe.
3 to 6 hours alerts in advance would be enough. I know how to program that.
What I am looking for the the best weather site API for Europe for that purpose, because I want to use Domoticz for the 'alerts'.
Is it KNMI, Open Weather Map, others?
What are your finding?
Logic will get you from A to B. Imagination will take you everywhere.
janpep
Posts: 225
Joined: Thursday 14 March 2024 10:11
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Best weather API for 3/6 hour prediction for Europe

Post by janpep »

Interesting.
At the moment I am using the KNMI weerlive.nl api for the weather, because it also gives the alert codes and warming information.
I created a Configurable 'KNMI Weerlive' script.
I do not think it will give these warnings outside the Netherlands.

For my Dutch local 'Stookwijzer' I get the needed weather data for location coordinates from https://open-meteo.com/.
As far as I know it does not give warnings for every coordinate, but you can get all kind of weather info for your location.
It also has hourly forcast based for a large number of parameters and based on selectable weather models. So may be you can create your own warnings from that. (e.g. For my stookwijzer I composed the air quality index AND created the forcast for this myself from the needed parameters)
Free and without api key for non-commercial use and less than 10.000 daily API calls per day. (See Documentation and other terms of use on their website).
Perhaps that is a way to go?

And maybe worth looking at: For my airplanes project, I have also created a setup for Working with remote/mobile coordinates..
Domoticz in Ubuntu virtual machine on Synology DS718+ behind FRITZ!Box.
Using: EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
Kedi
Posts: 559
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: Best weather API for 3/6 hour prediction for Europe

Post by Kedi »

Tnx for the info. I will look into the https://open-meteo.com/
If there is no alert for disaster I will manage with wind/gust and rain and make my own warnings.
But it would be nice to have as extra the kind of warning like we have in the Netherlands as yellow, orange and red also for other countries.
GPS coordinates are send to Domoticz every 20 seconds if on the move and every 3 minutes when we are stationary.
So I have GPS coordinates so Domoticz (with dzVents or other language) can find out in which country we are and can call any API to get info based on the country. I hope to get other national API's from the community that I can use in Domoticz.
Because here there are Polish, Italian, Spanisch and user from other countries, which perhaps have those URL's to share.
Last edited by Kedi on Sunday 04 August 2024 19:48, edited 1 time in total.
Logic will get you from A to B. Imagination will take you everywhere.
Kedi
Posts: 559
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: Best weather API for 3/6 hour prediction for Europe

Post by Kedi »

I looked into open-meteo and it looks promissing.
Used someting like https://api.open-meteo.com/v1/forecast? ... ast_days=2 and others.
Now have to check with local weathersites if this data is accurate enough.
Logic will get you from A to B. Imagination will take you everywhere.
janpep
Posts: 225
Joined: Thursday 14 March 2024 10:11
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Best weather API for 3/6 hour prediction for Europe

Post by janpep »

Kedi wrote: Sunday 04 August 2024 19:45 Now have to check with local weathersites if this data is accurate enough.
If you can tell me how you determine what is accurate, I would like to hear it.
Initially I looked at the wind speeds for my "Stookwijzer". When I compared the results (set to location coordinates) of Buienradar, Open-meteo and Weerlive.nl, I always saw differences.
At the moment weerlive gives a wind speed of 0.9 m/s while open-meteo gives 2.2 m/s. Quite a difference. But when I put my wet finger in the air, I don't know which of the two is correct.
I even thought a moment to use the average difference as a correction factor. I have the values in separate log. :-)
Domoticz in Ubuntu virtual machine on Synology DS718+ behind FRITZ!Box.
Using: EvoHome; MELCloud; P1 meter; Z-Stick GEN5; Z-Wave-js-ui; MQTT; Greenwave powernodes 1+6; Fibaro switch, plugs, smoke; FRITZ!DECT 200. Scripts listed in profile interests.
FlyingDomotic
Posts: 318
Joined: Saturday 27 February 2016 0:30
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Contact:

Re: Best weather API for 3/6 hour prediction for Europe

Post by FlyingDomotic »

Speaking about wind, should you wish to compare predictions and reality, you can use an airport where average winds are reported every 30 minutes by automatic station (check for METAR on https://duckduckgo.com) and compare them to predictions. You'll also have temperature and due point (where yo can compute humidity percent).
User avatar
waltervl
Posts: 5361
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Best weather API for 3/6 hour prediction for Europe

Post by waltervl »

Find a foreign api and check it on your own local location. I haven't found a reliable source yet. Better check the local weather apps/sites on your foreign location.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Best weather API for 3/6 hour prediction for Europe

Post by Egregius »

I use several weather services and calculate average of them. These are all based on latitude/longtitude:

Code: Select all

https://api.openweathermap.org/data/3.0/onecall?lat=50.9929&lon=3.2112&exclude=minutely,daily,alerts&units=metric&appid=APPID
https://api.weatherapi.com/v1/current.json?q=50.9929,3.2112&key=KEY
https://api.open-meteo.com/v1/forecast?latitude=50.9929&longitude=3.2112&current_weather=true
https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/50.9929%2C%203.2112?unitGroup=metric&include=current&key=KEY&contentType=json
I only use the current weather from them. At least the first has a hourly prediction, maybe the others also have options like that.
Kedi
Posts: 559
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: Best weather API for 3/6 hour prediction for Europe

Post by Kedi »

waltervl wrote: Sunday 04 August 2024 23:36 Better check the local weather apps/sites on your foreign location.
Yes I know I can use all kind of Apps on my phone to be informed about the weather, and I will use those too.
I see it more like a chalange to get those warnings this way.
My idea is to get a FULL automated weather early warning on my phone in advance (3 to 6 hours) for the current location of my camper (stationairy).
Next step would be to get those warnings on the projectory of the route to my destination, also 3-6 hours in advance.
I know how to do that, but currently lacking good 'local' weather data api's
But open-meteo looks promising. And I already have the API to calculate in which country/city the camper is (or nearby).
So I could switch to an other national API for more accurate weather info.
I could use the WMO codes 55, 65, 75, 82, 86, 95, 96 and 99 to get an nasty alarming Pushover message that has to be acknowledged.

@Egregius Tnx, I will look into those.
Logic will get you from A to B. Imagination will take you everywhere.
Kedi
Posts: 559
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: Best weather API for 3/6 hour prediction for Europe

Post by Kedi »

The framework is there. I will report later when it is out of beta phase and post the complete setup.
Everything is working as intended. There is currently a little problem.
On the projectory to my destination I do reverse geocoding, but it gives me the (most of the time) little towns.

I am looking now for a reverse geocoding api the gives me the nearby biggest town or a nearby town with over 50.000 residents of a lat/lon location.
Anyone knows such an API?
Logic will get you from A to B. Imagination will take you everywhere.
User avatar
FireWizard
Posts: 1755
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Best weather API for 3/6 hour prediction for Europe

Post by FireWizard »

Hi @Kedi,

Use Google and you will find several such as:
Here
LocationIQ
Google

Regards
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Best weather API for 3/6 hour prediction for Europe

Post by Egregius »

Why not just use apis that work with lat/lon? Would be a lot easier.
Kedi
Posts: 559
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: Best weather API for 3/6 hour prediction for Europe

Post by Kedi »

Egregius wrote: Saturday 10 August 2024 17:58 Why not just use apis that work with lat/lon? Would be a lot easier.
The problem with lat/lon apis is that they work perfect, but the give small (never heard of) villages in the return.
So on the projectory I get the name of 2 small villages, and I can get weather info of those villages, but would also like to get the name of a nearby big(ger) city, or a region that I know. The last one (region) I already can get from 'bigdatacloud' and that works, but I rather would have a big city.
On a projectory from my home to Marseille I get 'Wallonia' back from bigdatacloud and from OpenWeatherMap I get back "Léglise" and I rather would have to get back "Neufchâteau" which is the nearby BIG city.
@FireWizard I wil investigate Google if they have something like that.
Logic will get you from A to B. Imagination will take you everywhere.
Kedi
Posts: 559
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: Best weather API for 3/6 hour prediction for Europe

Post by Kedi »

FireWizard wrote: Saturday 10 August 2024 16:11 Hi @Kedi,

Use Google and you will find several such as:
Here
LocationIQ
Google

Regards
I tried Google, but at the end they all present (almost) the same data.
So for the moment I have to live with "Léglise in Wallonia" until I find something better.
Will investigate the others you mentioned.
Until now LocationIQ looks the best.
Logic will get you from A to B. Imagination will take you everywhere.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests