Back to TerraPulse

    Methodology & Data Sources

    How TerraPulse sources, caches, and presents climate data.

    Live local weather & 3-day forecast

    Open-Meteo (open-meteo.com) · hourly upstream · cached 1 hour by us

    Pulled from Open-Meteo's public forecast endpoint, which aggregates national weather services and ECMWF runs. No API key required; non-commercial use is free.

    30-year climate normal

    Open-Meteo Climate API · ECMWF ERA5 reanalysis · static 1991-2020 baseline

    Daily mean 2-meter temperature averaged across the 1991-2020 WMO climate normal period. Computed server-side per coordinate request and cached.

    Active wildfires

    NASA EONET v3 (eonet.gsfc.nasa.gov) · rolling 7 days · cached 1 hour

    We query open wildfire events worldwide and filter to those within 1000 km of the requested coordinate using haversine distance on the most recent geometry vertex.

    Global atmospheric CO₂

    NOAA Global Monitoring Lab — Mauna Loa trend · daily upstream · cached 1 hour

    We use the seasonally-detrended global mean (`co2_trend_gl.json`) so day-to-day display values are stable.

    Terra AI climate assistant

    Lovable AI Gateway · google/gemini-3-flash-preview · real-time

    Terra is grounded with the data above through tool calls. When you ask about a specific place, it fetches live numbers from these sources before composing a reply. Sentiment and topic extraction run on a smaller model in the background and feed the public Trends page.

    Caching

    Lovable Cloud (Postgres `climate_cache` table) · 1-hour TTL per coordinate

    Each coordinate is rounded to 0.01° (~1.1 km) and cached for one hour to respect upstream rate limits and keep responses fast.

    Limitations: Mock/illustrative data is still used for some Monitor page layers (high-resolution global gridded fields). We're migrating those to real sources progressively. If a metric is mock, the Monitor panel will say so.