[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Environment Canada daily climate records](https://spiral.ai/integrations/opencode/environment-canada-daily-climate-records)

# How to Use Environment Canada daily climate records in opencode

Returns daily station observations, including temperature and precipitation. Use it to examine individual dates or calculate totals across a past weather event.

|  |  |
| --- | --- |
| Model | Environment Canada daily climate records |
| Available through | Alexandria |
| Category | Maps & Reviews |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Environment Canada daily climate records in opencode

- Use Environment Canada daily climate records for 2024-07-01 through 2024-07-07 and create a report of temperature and precipitation by station represented in the results.
- Use Environment Canada daily climate records to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Environment Canada daily climate records and tell me what changed since last week.
- Check Environment Canada daily climate records and summarize what you find in three bullet points.
- Pull the newest data from Environment Canada daily climate records and give me the result as a table.

## How to set up Environment Canada daily climate records in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Environment Canada daily climate records**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "api-weather-gc-ca/weather/climate_daily",
    "input": {
      "climate_id": "<climate_id>"
    }
  }'
```

Then paste one of the prompts above: opencode finds Environment Canada daily climate records on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Environment Canada daily climate records tools and prices

- [Environment and Climate Change Canada weather and climate (api.weather.gc.ca) · Climate daily](https://spiral.ai/tools/alexandria/api-weather-gc-ca/weather/climate_daily) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| end |  | — | Last day, YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| lang | en, fr | en | Language of names and texts: en (English) or fr (French). Numbers are the same in both. |
| start |  | — | First day, YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |

## What can you do with Environment Canada daily climate records in opencode?

Build a Canadian weather report that connects each location to ECCC forecasts or station climate evidence. A coding agent can add the returned data to your project's tables, maps, and reports.

### Plan an outdoor festival in Toronto

Resolve the forecast location, review current weather, AQHI, and alerts, then use station records and climate averages to compare possible event months.

### Compare months for a marina's operating season

Use station coverage, daily records, monthly summaries, and normals to compare seasonal conditions. Add the marina's city and marine forecasts when preparing the opening week.

### Review weather exposure for port construction

Combine historical temperature and precipitation evidence with climate averages for planning. Review city forecasts, marine winds, AQHI, and official alerts before each waterfront work period.

### Build a Lake Ontario visitor weather guide

Explain typical seasonal weather using station history and normals. Provide separate sections for current city conditions, air quality, official alerts, and forecasts over the lake.

### Write a retrospective rainfall report

Establish station coverage, examine daily precipitation, and compare monthly totals with the available climate baseline. Keep each station's evidence separate in the report.

### Compare weather evidence for proposed recreation sites

Identify forecast locations and nearby climate stations for proposed sites. Compare available daily records, monthly summaries, and normals to describe seasonal temperature and precipitation.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Environment Canada daily climate records in other agents

- [Amp](https://spiral.ai/integrations/amp/environment-canada-daily-climate-records)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/environment-canada-daily-climate-records)
- [Claude](https://spiral.ai/integrations/claude-desktop/environment-canada-daily-climate-records)
- [Claude Code](https://spiral.ai/integrations/claude-code/environment-canada-daily-climate-records)
- [Cline](https://spiral.ai/integrations/cline/environment-canada-daily-climate-records)
- [Codex](https://spiral.ai/integrations/codex/environment-canada-daily-climate-records)
- [Cursor](https://spiral.ai/integrations/cursor/environment-canada-daily-climate-records)
- [Devin](https://spiral.ai/integrations/devin/environment-canada-daily-climate-records)
- [dots](https://spiral.ai/integrations/dots/environment-canada-daily-climate-records)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/environment-canada-daily-climate-records)
- [Gemini](https://spiral.ai/integrations/gemini/environment-canada-daily-climate-records)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/environment-canada-daily-climate-records)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/environment-canada-daily-climate-records)
- [goose](https://spiral.ai/integrations/goose/environment-canada-daily-climate-records)
- [Grok](https://spiral.ai/integrations/grok/environment-canada-daily-climate-records)
- [Grok Build](https://spiral.ai/integrations/grok-build/environment-canada-daily-climate-records)
- [Hermes](https://spiral.ai/integrations/hermes/environment-canada-daily-climate-records)
- [Instinct](https://spiral.ai/integrations/instinct/environment-canada-daily-climate-records)
- [Manus](https://spiral.ai/integrations/manus/environment-canada-daily-climate-records)
- [Muse](https://spiral.ai/integrations/muse/environment-canada-daily-climate-records)
- [Muse Code](https://spiral.ai/integrations/muse-code/environment-canada-daily-climate-records)
- [n8n](https://spiral.ai/integrations/n8n/environment-canada-daily-climate-records)
- [Notion](https://spiral.ai/integrations/notion/environment-canada-daily-climate-records)
- [OpenClaw](https://spiral.ai/integrations/openclaw/environment-canada-daily-climate-records)
- [Perplexity](https://spiral.ai/integrations/perplexity/environment-canada-daily-climate-records)
- [Raycast](https://spiral.ai/integrations/raycast/environment-canada-daily-climate-records)
- [VS Code](https://spiral.ai/integrations/vscode/environment-canada-daily-climate-records)
- [Windsurf](https://spiral.ai/integrations/windsurf/environment-canada-daily-climate-records)
- [Zapier](https://spiral.ai/integrations/zapier/environment-canada-daily-climate-records)

## More opencode guides

- [Environment Canada climate station search](https://spiral.ai/integrations/opencode/environment-canada-climate-station-search)
- [Environment Canada forecast location search](https://spiral.ai/integrations/opencode/environment-canada-forecast-location-search)
- [Environment Canada climate normals](https://spiral.ai/integrations/opencode/environment-canada-climate-normals)
- [Environment Canada marine forecast](https://spiral.ai/integrations/opencode/environment-canada-marine-forecast)
- [Environment Canada city weather](https://spiral.ai/integrations/opencode/environment-canada-city-weather)
- [Environment Canada monthly climate records](https://spiral.ai/integrations/opencode/environment-canada-monthly-climate-records)

## Questions about Environment Canada daily climate records in opencode

**Can opencode use Environment Canada daily climate records?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Environment Canada daily climate records like any built-in tool.

**How much does Environment Canada daily climate records cost in opencode?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need an Alexandria account to use Environment Canada daily climate records in opencode?**

No. Spiral runs Environment Canada daily climate records on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Environment Canada daily climate records in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while Environment Canada daily climate records runs?**

Environment Canada daily climate records runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does Environment Canada provide weather for every Canadian location?**

The city weather collection covers a selection of Canadian cities. Marine forecasts use marine districts, while historical climate observations come from weather stations.

**How often does Environment Canada refresh its weather data?**

City forecast files refresh at least hourly. Marine forecast files normally refresh two to four times daily, with additional updates for amendments and warnings.

**Does the climate data include every station in Canada's archive?**

The daily climate collection contains only a subset of stations because of size limitations. Station metadata provides observation date ranges to help establish which records cover a requested period.

**Which years do the climate normals represent?**

The documented GeoMet normals collection represents 1981–2010. It uses Canadian stations with at least 15 years of observations within that period.

**Are all Environment Canada readings quality checked before publication?**

ECCC specifically says AQHI observations use real-time data without verified quality control. AQHI values run from 1 to 10, with 10+ used for very high pollution.

