Page 1 of 1
Best weather API for 3/6 hour prediction for Europe
Posted: Sunday 04 August 2024 15:59
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?
Re: Best weather API for 3/6 hour prediction for Europe
Posted: Sunday 04 August 2024 17:30
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..
Re: Best weather API for 3/6 hour prediction for Europe
Posted: Sunday 04 August 2024 19:08
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.
Re: Best weather API for 3/6 hour prediction for Europe
Posted: Sunday 04 August 2024 19:45
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.
Re: Best weather API for 3/6 hour prediction for Europe
Posted: Sunday 04 August 2024 21:02
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.

Re: Best weather API for 3/6 hour prediction for Europe
Posted: Sunday 04 August 2024 23:02
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).
Re: Best weather API for 3/6 hour prediction for Europe
Posted: Sunday 04 August 2024 23:36
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.
Re: Best weather API for 3/6 hour prediction for Europe
Posted: Monday 05 August 2024 7:33
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¤t_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.
Re: Best weather API for 3/6 hour prediction for Europe
Posted: Monday 05 August 2024 7:37
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.
Re: Best weather API for 3/6 hour prediction for Europe
Posted: Saturday 10 August 2024 14:18
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?
Re: Best weather API for 3/6 hour prediction for Europe
Posted: Saturday 10 August 2024 16:11
by FireWizard
Hi @Kedi,
Use Google and you will find several such as:
Here
LocationIQ
Google
Regards
Re: Best weather API for 3/6 hour prediction for Europe
Posted: Saturday 10 August 2024 17:58
by Egregius
Why not just use apis that work with lat/lon? Would be a lot easier.
Re: Best weather API for 3/6 hour prediction for Europe
Posted: Sunday 11 August 2024 10:33
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.
Re: Best weather API for 3/6 hour prediction for Europe
Posted: Sunday 11 August 2024 18:49
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.