Sustainable Weather API

Yes, that's the missing bit!

I'm going to run it for a while and compare results with Darksky (and real conditions) before making any decisions or wholesale changes to my weather flows, but Climacell looks the api of choice at the moment.

Thanks for working your way through the api, it's not the easiest or best documented I've seen.

No, it is a pain. I got lucky by looking at the Stormglass API. :smile:

I did some quick and dirty comparisons of the MetOffice, Norway MET and Climacall API data:

UPDATED Added Climacell, Stormglass and OWM

My Naming UK Met Office Norway MET Climacell - Nowcast Storm Glass Open Weather Map
temperature screenTemperature air_temperature temp airTemperature temp
maxScreenAirTemp
minScreenAirTemp
dewpoint screenDewPointTemperature dew_point_temperature dewpoint dew_point
feelslike feelsLikeTemperature feels_like feels_like
wind_speed windSpeed10m wind_speed wind_speed windSpeed wind_speed
wind_direction windDirectionFrom10m wind_from_direction wind_direction windDirection wind_deg
gust_speed windGustSpeed10m wind_gust gust
max10mWindGust
visibility visibility visibility
humidity screenRelativeHumidity relative_humidity humidity humidity humidity
pressure mslp air_pressure_at_sea_level baro_pressure pressure pressure
uvIndex ultraviolet_index_clear_sky
significantWeatherCode
precipitationRate
totalPrecipAmount precipitation
totalSnowAmount
probOfPrecipitation
cloud_cover cloud_area_fraction cloud_cover cloudCover clouds
cloud_area_fraction_high
cloud_area_fraction_low
cloud_area_fraction_medium
fog_area_fraction
next_hour.summary weather_code weather.id
weather.main
weather.description
weather.icon
next_hour.precipitation_amount
cloud_ceiling
cloud_base
surface_shortwave_radiation (w/sqm)
precipitation_type
sunrise
sunset
airTemperature80m
airTemperature100m
airTemperature200hpa
airTemperature500hpa
airTemperature800hpa
airTemperature1000hpa
waterTemperature
windDirection20m
windDirection30m
windDirection40m
windDirection50m
windDirection80m
windDirection100m
windDirection200hpa
windDirection500hpa
windDirection800hpa
windDirection1000hpa
windSpeed20m
windSpeed30m
windSpeed40m
windSpeed50m
windSpeed80m
windSpeed100m
windSpeed200hpa
windSpeed500hpa
windSpeed800hpa
windSpeed1000hpa
NOTES Amounts measured over PREVIOUS hour

With a view to eventually normalising the data for each API as much as possible.

A real pain that the Met Office claims to be a forecast but then gives values for precipitation & max/min temp over the previous hour not the next hour.

The more traditional weather services are really falling behind when compared to services like Stormglass, Climacell and Norway MET.

Open Weather Map reduces location accuracy down to 2dp - actually not too bad, a couple of minutes away from me.

Accuweather is even worse, reducing the accuracy so badly when searching on an exact geo-location that the actual forecast is based at a point some 2 miles away and 100m lower than my actual location which can make a massive difference to the forecast. Trying to find a location that better matches my real location is extremely hard. Weirdly, a postcode search does better just 1/2 mile away. Worse, the rate limits lock you out very quickly and only allow access to the 12-hour hourly forecast. Not even worth bothering with to be honest compared to the other services.

The newer services seem to use interpolation to adjust location - it will be interesting to see whether that gives better forecasts.

There doesn't really seem to be a single service that provides a truly comprehensive set of data - I suspect that, if I get time to finish this, I will end up with a merged set of data from several sources.

Let me know if you spot any other global forecast API's and I'll try to include them.

Next I'll normalise the data (at least the core data) and dump to a uibuilder bootstrap-vue table for comparison.

Not done a side-by-side comparison for a long time but this seems like a good time to do one.

2 Likes

Depending on your needs, I would like to add an option from a different perspective; If you have a Netatmo weather station, you can get access to all the netatmo devices (api) in their network and there are many worldwide (they actually feed into the norway MET api for norway/sweden/finland).

In the public data you can get live rain/wind/temp/humidity measurements from a square-based lat/lon location.

example fields available (not a complete object as it differs per station and many results are returned), great with jsonata; $average(**.rain_live)

"place": {
      "location": [
        4.488782,
        52.182097
      ],
      "timezone": "Europe/Amsterdam",
      "country": "NL",
      "altitude": 1,
      "city": "Oegstgeest",
      "street": "Lange Voort"
    },
"rain_60min": 0,
"rain_24h": 3.1310000000000002,
"rain_live": 0,
"rain_timeutc": 1593235791

"wind_strength": 1,
"wind_angle": 225,
"gust_strength": 4,
"gust_angle": 241,
"wind_timeutc": 1593235791
"res": {
"1593235948": [
  18.8,
  96
]
},
"type": [
  "temperature",
  "humidity"
]

I have just tried out the Climacell API as I wanted to get wind gusts and it turns out Openweathermap don't send that (for my location at least). So annoying many apps don't acknowledge gusts!

Now I have sussed out the API call I can get the info I need from Climacell.
May have to see how the Met Office API compares as well.

I've been comparing the data obtained from Climacell, with both Darksky and my local sensors for several days now, and although most of the data appears to be fairly consistent, I'm finding the temperature reported by Climacell is usually off by 1 or 2 degrees, compared with the other sources (especially my local sensor).

How are other users finding Climacell?

I just tested it and it's off by about 5 deg F (low) vs. Darksky, Google Weather, AccuWeather.

I'm surprised to hear that, because Climacell have held the US up as their marketing model, listing many US companies who endorse the product.
I thought that their Virtual Sensing data would have been far more prolific due to more airline flights, satellite & car connectivity, etc in the US than the UK, and therefore be more precise. Obviously not!

I'll keep testing to see if that was a one time happening or consistent delta.

1 Like

Check where the data is actually coming from - different datasets have different levels of granularity. Depending on where you live and differences in microclimates, general models may need to be tweaked for your actual location. Also some models are not localised at all and so may only apply to the recording location (often an airport in the UK).

The other thing to watch out for is inaccuracies in your own sensors. If you are using a DHT based sensor for example (which many cheaper "weather stations" might also use), chances are that the readings are not only way off but also drifting further over time.

Interestingly, the CEO of Storm Glass reached out to me after I signed up. I let him know about this thread.

How? I assumed that the source was dictated by the lat/lon coordinates.

If you check how the data is produced, you will spot 2 main types.

One based on models that predict on a set geo pattern. If you've ever read about how weather models are produced, you will get the idea. intermediate locations are predicted based on actual readings from set locations plus a detailed model of various other features such as altitude, landscape, water & vegetation and many other things.

Other weather is purely based on observations from fixed points and those can be wildly different for your location if, like me, you live somewhere that has greatly differing microclimates.

When you check the output from an API, check what geo location it gave back and how far different it is to the one that you put in. Some API's don't even allow lat/long input or if they do, it is translated to the nearest observation point or to a more general location like the nearest city centre (type 2) or may snap you to the nearest model lat/lon (mainly but not exclusively type 1).

For me both are reporting the same lat/long I inputed. I ran 10 minute intervals for 12+ hours overnight and got the following comparison. Hi/lo variance was about 3 degrees with an average of 0. Close enough for the type of flows I use the data in.While Darksky clearly seems more tracking vs Climacel does look more like a model, once again I'm only using it for a handful of trigger thresholds so not a huge deal to me

image

2 Likes

Here is 24 hours of tracking, really interesting mappings of the two. Clearly Climacel uses a less frequent data sampling.

image

3 Likes

Or Darksky uses heavier smoothing.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.