How to Access the Windy Stations Data
-
There are three options to access the data from Windy Stations.
Data from your station for the last 30 days
GET method:
https://stations.windy.com/pws/station/API-KEY/STATION_ID
All stations metadata with Open data policy
GET method:
https://stations.windy.com/pws/stations/API-KEY
Station data with Open data policy for the last 30 days
GET method:
https://stations.windy.com/pws/station/open/API_KEY/STATION_ID
The API-KEY is possible to generate on the Windy Stations website. The
STATION ID
might be found here or by listing all stations metadata. -
Can you provide a way to list all the Open data policy stations? Also it would be nice to have a filter on the map to only see Windy stations (taking out airports and CWOP ..etc).
-
@galfert to list all the open data policy stations you should use the second method and after obtaining station ids apply the first method.
We are planning to add the possibility to filter only Windy Stations. It should be ready soon.
-
It appears that the
temp
anddewpoint
data is being returned incorrectly, as this is what I see for my station ID: f06e5d29.temp: [ 281.75000038147, 281.950000190735, 282.25000038147, 282.54999961853, 282.75000038147, 282.450000190735, 282.349999809265, 282.04999961853, 281.950000190735, 282.54999961853, 283.04999961853, 283.349999809265, 282.950000190735, 282.65, (...) ]
The data displayed in the on-line windy.com map seems to be the same as my weather station.
In addition, there is no rainfall data included.
It would also be useful if you could provide a "last 24 hours" report, or even allow for the time period to be specified in the request. Returning 288 data points per day is really overkill, for some applications, at least.
-
@chezburke I think the APIs use Kelvin for temperatures.
-
@mcrossley Ahh...thank you.
Odd...but at least now I know :)
-
@chezburke You're welcome, and despite the upload API using Pascals as the default unit, the download API uses hectoPascals ;)
-
@TomSlavkovsky said in How to Access the Windy Stations Data:
Why for my user, can't I see any station in url https://stations.windy.com/stations?
-
@fabricio-fgs because you haven't created any stations to upload to. That link is only for your own stations. It doesn't show other people's stations.
-
Thanks! But are not there a way to get data from another stations?
-
@fabricio-fgs You can use the map and find MADIS stations along with other METAR stations and such. But in order to see a Windy personal station you need to know it's ID or go through some trouble with the API and pull a database dump of personal weather stations and then sift through to find a station ID and then use the Windy map to pull the live station since you now have the ID. Most Windy personal stations also report to MADIS so it shouldn't that big of an issue to instead just pull up the MADIS and then it will tell you that there is a duplicate and then you have at the more timely Windy station ID for that personal station.
It would nice if Windy provided a better method of seeing their stations on the map. Maybe in a future site update, I hope.
-
Is the first record, the most recent data (actual value?)
-
@TomSlavkovsky I was not able to successfully get a database dump of weather stations. Everytime I hit this api https://stations.windy.com/pws/stations/myapikey898
I get a 400 bad request error that says "invalid token". I am replacing myapikey898 with my actual api keyDo I need to pass in headers or anything?
-
@windGoggles you are not using valid API key, please generate your api key on stations.windy.com.
-
@TomSlavkovsky you were right, the problem was that I was trying to use the same API key that I am using for the api4 chart.
Anyone else that stumbles upon this issue and is having trouble figuring out which key to use, read the following:
The API key that you receive from this URL, https://api4.windy.com/api-key/, will not work. You need instead to go to https://stations.windy.com/stations and click on "show key" in the banner on the bottom of the page. That is the key you need to access the JSON data from the stations.
-
Hola,porque no me aparecen los datos del pluviometro de mi estación netatmo???
Los demas datos si aparecen,temperaturas,viento,humedad.......pero los datos de lluvia no.
Gracias y seguir con la aplicacion porque esta muy bien.
Un saludo -
@TomSlavkovsky said in How to Access the Windy Stations Data:
https://stations.windy.com/pws/station/open/API_KEY/STATION_ID
None of them work, it says “Invalid token” for each one.
-
Do you ever answer messages?
-
Hello @windywolf-0, you need to add your station ID and API key to the link.
-
Hi Tom,
I've registered my weather station and generated an API Key, but don't know what to do with the key. My weather station reports to Weather Underground and the data is readily available through that portal, but I don't know how to get my data to Windy.
Also, once it's set up, does my station automatically transmit data to Windy?
Best wishes
Gary