Current best weather API (2023)?

I know this subject comes up quite often, but it's a moving target :wink:

I'm about to revamp my weather flows and thought I would see if there is any consensus around the best UK API to use.
I have been using OWM but I find the icons a bit odd, in that they don't seem to match the descriptions very well, and don't even cover some conditions like hail etc.

Any thoughts appreciated.

The ones I know are still working are:

  • Met Office - generally the most accurate general area forecast
  • Storm Glass - Has some interesting data
  • Norway MET - Highly regarded
  • open-meteo.com - Up to 16 days forecast Fair use policy. Maximum 10,000 calls/day No API key required
  • OWM - OpenWeatherMap's OneCall API One Call API 3.0 - OpenWeatherMap - free tier gives 1000 calls per day. Has air quality and reverse geocode lookups. May be better for micro-climate forecasts?
  • Meteostat - Not sure about this one, a simple query for "sheffield" returns the entry for Sheffield in Australia!

What I would say is that if you aren't already, you should probably think about splitting the data fetch from the display via MQTT or some such. That way you can standardise your outputs even if you have to swap your inputs. You can also combine the best from different services.

1 Like

For current conditions I recommend using METAR data for your nearest airport. They are strongly motivated to have accurate data, though it has less precision than some of the forecast APIs (eg pressure to the nearest hPa not 0.1 hPa).
If you happen to line near a US air base you have to allow for values in degrees Fahrenheit, inches of mercury and probably quarts of water vapour per cubic football pitch. :upside_down_face:

I'm finding it hard to work out which of the long array of values from the met office API represents current values

Yes, those are great if you happen to live somewhere that has matching weather to the airport. :grinning:

No use at all when your nearest airport is 30 miles away and the weather can be totally different 1/2 mile from your house as it is here in Sheffield. :frowning:

Simple: East Midlands, Leeds Bradford, Manchester. calculate a weighted average according to their distance. Apply a current weather stability correction, tweek for prevailing wind direction and add-in a random "Because it's Sheffield" factor.

"What's the weather like?"
"Grim" :grin:

I do know all those hills result in very local weather but it ought to be possible at least to estimate the local variability - more likely if humidity is higher or pressure is lower etc.
A project to serve the local community, which the Met Office are not providing maybe.

2 Likes

Just install a burrometer and learn to read it :goat:

1 Like

image
This burro forecasts rain.

image
Dry & sunny

4 Likes

Cheers for the chuckle.

Actually, I mostly just look out of the window!!!! :rofl:

I generally only use forecasts for when I'm going to be going somewhere, or for seeing if it is worth going cycling or into the garden. The Met Office app does everything I need so I no longer bother with my Node-RED flows unless someone asks a crazy question like this one! :grinning:

The problem is that we are on the edge of the Pennines. So it can be raining/snowing a few hundred meters away and we are in bright sunshine - or the reverse. One one side of the house (which is about 300m up) are the Pennines and on the other is the drop onto the plain that stretches to the North Sea. And Sheffield is basically a bunch of big hills that cause the wind to circulate very oddly.

Weather conditions can be hyper-local.

Well, there are services that do hyper-local forecasts. I think OWM?

But, as I say, it is mostly not terribly useful and looking out the window generally tells me what will happen over the next couple of hours which is enough for most things.

Its the mills ya-know!

1 Like

Me too. And if I don't see the burrometer then it means fogg.

1 Like

So surely a webcam and a bit of AI could automate this ?

8 Likes

I would second the Met Office.
...not the best documentation to set up, but easy if you know how :smirk:

I'm sure we can help with that.

2 Likes

Thanks for the replies, doesn't seem I overlooked any perfect APIs then :wink:

As its for a small touch screen light switch, ideally I just want the conditions for the next hour, and maybe a text summary for today.

I'm looking at Met Office API, at least the icons make sense with reported weather type.

You've reminded me that the one area where I probably would like to integrate weather information is the automated house lighting.

At present, I have lighting based on time of day and sun position but being able to dynamically vary depending on cloudiness (even cloud thickness would be nice though I don't know that any of the services provide that) and rain/snow would be a good indicator of how dark different parts of the house get.

I really should try that. Previously I've tried to use light sensors which kind of worked but you need a few of them in different places which can get complex as you need to account for the difference between artificial and natural light.

1 Like

Would a local light/luminosity sensor would be adequate ? It's not like lights take ages to "warm up" like heating so would be instant reaction rather than needing much of a prediction ?

That's what I've tried before. You have to filter out the impact of the artificial light and once the light is on, it then becomes very complex to understand the natural light and so make decisions about whether the light should go off again.

The processing got so complex and needed constant tweaking so it wasn't really useful and I took it out. Possibly suffering from a lack of "big brain" status. :slight_smile:

The best bet is to put light sensor outside facing the sky where it will never be in the shade. On the roof ? :slight_smile:

Isn't it anyway always raining in UK??

:grinning:

3 Likes

Yes but we need to know how much is it raining!

1 Like

We need to know if we need boots or flippers :rofl: :rofl: :rofl:

1 Like