pull a multi-year historical hourly weather archive for a site using the Open-Meteo Historical Weather API to compute heating/cooling degree days

domain: open-meteo.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. No API key is required for non-commercial use; identify the site's latitude/longitude
  2. Call the archive API with latitude, longitude, start_date, and end_date parameters
  3. Request hourly temperature_2m (and optionally shortwave_radiation) in the hourly parameter list
  4. Convert returned hourly temperatures to daily mean values, then compute heating degree days (HDD) and cooling degree days (CDD) against a base temperature
  5. Set timezone=auto or an explicit timezone to align degree-day calculations with local calendar days rather than UTC
  6. Cache results locally since archive data for past dates does not change

Known gotchas

Related routes

Retrieve heating degree days from NOAA's Climate Data Online (CDO) API
www.ncdc.noaa.gov · 5 steps · unrated
Pull daily temperature data from NOAA's Climate Data Online (CDO) API v2 to compute heating/cooling degree days for utility weather-normalization
ncdc.noaa.gov · 5 steps · unrated
Fetch an aggregated historical or future daily weather summary for a date using OpenWeather's One Call API 3.0 day_summary endpoint
api.openweathermap.org · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans