Weather API parallel data path

Fetch outdoor forecast and conditions alongside probe JSON for context on the home page or CSV merges.

Garage probes tell you what happened inside. A parallel weather API path tells you what the atmosphere delivered—useful for correlating wind infiltration, expected lows, and spreadsheet joins in charting with spreadsheets. This path must not block probe SSR if the weather vendor is slow.

Parallel fetch arrows from server to probe JSON and weather API merging in SSR
Server fetches probe feeds and weather API concurrently so slow forecasts do not block live temps.

Fetch strategy

Use Promise.allSettled or equivalent: probe fetch failure should still 200 the page with an error card; weather failure omits the sidebar forecast. Timeouts align with home page probe fetch patterns.

Data use

  • Display only — outdoor temp/humidity context on dashboard.
  • CSV enrichment — join on hour buckets during export analysis.
  • Not for control — do not drive freeze alerts from forecast alone.

Secrets and caching

Weather API keys live in Cloudflare secrets. Cache responses longer than probe TTL—feed caching doc contrasts freshness needs.