How to Use Environment Canada weather alerts in Gemini CLI
Returns ECCC alerts about weather hazards, including warnings, watches, advisories, and statements. Use it to check official hazard notices for an area.
Prompts to try with Environment Canada weather alerts in Gemini CLI
Copy an example into Gemini CLI, or ask in your own words.
Use Environment Canada weather alerts to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Environment Canada weather alerts and tell me what changed since last week.
Check Environment Canada weather alerts and summarize what you find in three bullet points.
Pull the newest data from Environment Canada weather alerts and give me the result as a table.
Check Environment Canada weather alerts every morning and tell me only when something changed.
How to set up Environment Canada weather alerts in Gemini CLI
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Or add it to ~/.gemini/settings.json yourself:
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start gemini and run:
/mcp auth spiral
- Check it
In Gemini CLI, run /mcp. From your shell:
gemini mcp list
Use the Spiral skill
- Send Gemini CLI this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Environment Canada weather alerts
One request; the result comes back by polling or a webhook.
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/weather_alerts", "input": { "lat": -90 } }'
Then paste one of the prompts above: Gemini CLI finds Environment Canada weather alerts on Spiral, shows the price and runs it.
Environment Canada weather alerts providers and prices
Spiral runs Environment Canada weather alerts through Alexandria. Open a card for today's price, with every fee included.
$0.00873 per call.
Settings you can ask for
Ask Gemini CLI for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Lat | -90 to 90 | Latitude in decimal degrees (Canada spans about 41 to 84). Give with lon. | |
| Lon | -180 to 180 | Longitude in decimal degrees, west negative (Canada spans about -142 to -52). Give with lat. | |
| Lang | en or fr | en | Language of names and texts: en (English) or fr (French). Numbers are the same in both. |
| Include ended | on or off | Keep alerts ECCC has marked ended. |
Every API field of Environment and Climate Change Canada weather and climate (api.weather.gc.ca) · Weather alerts is on its tool page: open its card above.
What can you do with Environment Canada weather alerts in Gemini CLI?
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.
Prepare a Vancouver waterfront venue briefing
Find the venue's forecast location and combine city weather, marine conditions, AQHI, and official alerts into a briefing for staff reviewing waterfront activities.
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.
Publish a coastal weather briefing
Resolve the coastal community and present its city forecast, AQHI, nearby marine forecast, and official hazard notices. Preserve alert wording when reproducing the notices.
More on Environment Canada weather alerts and Gemini CLI
Overview
Environment Canada weather alerts in other agents
Questions about Environment Canada weather alerts in Gemini CLI
Can Gemini CLI use Environment Canada weather alerts?
Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Environment Canada weather alerts like any built-in tool.
How much does Environment Canada weather alerts cost in Gemini CLI?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.
Do I need an Alexandria account to use Environment Canada weather alerts in Gemini CLI?
No. Spiral runs Environment Canada weather alerts 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 weather alerts in Gemini CLI?
About two minutes: add the server, then sign in, then check it.
Does Gemini CLI wait while Environment Canada weather alerts runs?
Environment Canada weather alerts runs in the background. Gemini CLI 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.
Start using Environment Canada weather alerts in Gemini CLI
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Gemini CLI:
set up https://spiral.ai/SKILL.md


