This folder contains code to generate a set of POIs which correspond to the Weather Stations owned by the Spanish Meteorological Agency (AEMET).
Here you can find the following files:
stations-normalized-wgs84.csv
. This is a list of weather stations owned by AEMET which provide automated readings.stations.py
This is the Python code that was used to generate the former file from an Excel Sheet downloaded.aemet-st.js
. This script loads all the weather stations to Orion Context Broker.
curl http://130.206.83.68:1027/v2/entities?type=PointOfInterest&q=category:WeatherStation
{
"category": "WeatherStation",
"location": {
"type": "Point",
"coordinates": [-7.684722222222222, 43.78611111111111]
},
"name": "Estaca de Bares",
"postalAddress": {
"addressCountry": "ES",
"addressLocality": "Mañón",
"addressRegion": "A Coruña"
},
"source": "http://aemet.es",
"type": "PointOfInterest",
"id": "WeatherStation-ES-1351"
}
If you want to know the Weather Stations close to a certain location, for instance Santander (Spain), you can issue a GET request like
http://130.206.83.68:1027/v2/entities?type=PointOfInterest&q=category:WeatherStation&georel=near;maxDistance=10000&coords=43.4275,-3.8224