When you open ClimApp, the dashboard atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/elenacarino-max/mas-climapp/llms.txt
Use this file to discover all available pages before exploring further.
/ automatically requests your browser’s geolocation. Once you grant permission, your GPS coordinates are sent to the backend, which locates the closest official AEMET weather station and displays its live readings — all without a page reload.
What you see on the dashboard
The dashboard shows the following meteorological values, updated each time the page fetches your location:Temperature
Current air temperature in degrees Celsius, sourced from the
ta field in the AEMET observation.Humidity
Relative humidity as a percentage, sourced from the
hr field.Wind speed
Wind speed in km/h, sourced from the
vv field.Atmospheric pressure
Pressure in hPa, sourced from the
pres field.Precipitation
Accumulated rainfall in mm, sourced from the
prec field. Trace amounts reported by AEMET as ip are displayed as 0.0 mm.Alerts
Any active meteorological alerts evaluated from the live reading, such as
ROJA_CALOR or NARANJA_VIENTO.How your nearest station is found
ClimApp uses the Haversine formula to calculate the straight-line distance (in kilometres, accounting for the Earth’s curvature) between your GPS coordinates and every active AEMET station. The station with the smallest distance is selected and its observation is returned.How AEMET delivers its data
AEMET’s API uses a double-request pattern. A single query is not enough to retrieve observations:Send the authenticated request
ClimApp calls the AEMET observations endpoint with your API key. AEMET responds with a metadata object that contains a temporary
datos URL, not the actual weather data.Download the data payload
ClimApp immediately follows up with a second GET request to that temporary URL. This second response contains the full list of station observations in JSON format.
Find the nearest station
The backend iterates over every observation, applies the Haversine formula to your coordinates, and keeps the closest result.
API response format
After normalization, the/api/clima endpoint returns a JSON object with the following fields:
ciudad field is mapped from AEMET’s internal ubi (station name) field. The alertas array contains one or more alert codes — VERDE means no thresholds were exceeded.
Retry logic for resilient connections
Because AEMET’s temporary data URLs can occasionally be slow to generate, ClimApp uses aRetryService that wraps every HTTP request in a session with automatic retries. This means transient network errors or short AEMET delays are handled transparently — you see data rather than an error.
This feature requires your browser to grant geolocation permission. If you deny the request or your browser blocks location access, ClimApp cannot determine your coordinates and will not be able to fetch live weather data.