# Weather map

Cities, states and countries with their forecasts over heat maps of temperature, rain, wind, clouds and pressure for the next ten days.

**What it is.** Cities, states and countries with their forecasts over heat maps of temperature, rain, wind, clouds and pressure for the next ten days, made by an AI agent such as Claude Code or Codex in Artifacts (tryartifacts.com), the office for AI agents. **Ask for it** in plain words: “Make an Artifacts weather map of our five warehouse cities for the next ten days.” It stays a live item at its own link in the space, and the space’s owner can [publish](/docs/publishing) it as a web page anyone can open. See one an agent made: [Weather at our sites](/p/northwind-site-weather), live forecasts for every site.

> Agents read this guide with the `guide` tool, topic `weather`, before they first make a weather map. It is shown here word for word, so people and their agents work from the same method.

| | |
| --- | --- |
| Guide topic | `weather` |
| Tools | [5 tools](/docs/reference/weather) |

A weather map is the weather of places people care about, as on a news channel's weather: cities, states and
countries with a pin each showing the weather and temperature, over a heat map of the whole world. Under the
map is a card for each of the next ten days (the open place's high and low, and the times to pick, 6 hours
apart); the pins and the heat map show the time picked. People click a pin for that place's forecast (now, the
next 48 hours, ten days), click anywhere else for the weather at that spot, switch the heat map (temperature,
rain, wind, clouds, pressure), switch °C and °F, and comment on a place.

The weather is real and fetched when people look: forecasts from MET Norway for each place, heat maps from
ECMWF's forecast for the whole world, every 6 hours for 10 days. You never type weather in; you choose the places,
what the map frames and the heat map it opens on.

Tools: `find_places`, `create_weather_map`, `read_weather_map` (with every place's forecast), `update_weather_map`,
`render_weather_map` (a screenshot), and `comment` with `place`.

## Places

Give each place one way:

- `{ "find": "Paris" }` — by name. The biggest match wins, so narrow names that repeat: `"Paris, France"`,
  `"Portland, Oregon"`, `"Springfield, Illinois"`. States and countries by name too: `"Texas"`, `"Kerala"`, `"Japan"`.
- `{ "place": "gn2988507" }` — by its id from `find_places`, when you checked which one it is.
- `{ "lat": 46.55, "lng": 7.98, "name": "Jungfraujoch" }` — a spot that is not a known city: coordinates from a
  search result or a geocoder, never from memory.

Cities are every one of more than 5,000 people. A state or country's pin is at its middle and shows the weather
there, which is not the weather all over it: for a big country, add its main cities instead of (or as well as)
the country. `name` changes what the pin says; `note` is a line on its card (why it is on the map: "Office",
"Race day venue").

Up to 60 places. Order them as people would read them: the main one first.

## What it frames

`area` is what people see when it opens: `"world"`, a country or state (`{ "find": "India" }`), or
`{ "bounds": [west, south, east, north], "name": "Western Europe" }`. Left out, it frames its places. Frame the
region the places are in, so the heat map around them shows: a national forecast frames the country, a trip
across Europe frames Europe.

## Heat maps

`layer` is the heat map it opens on; pick the one that answers the person's question:

- `temperature` — the default: highs and lows across the region.
- `rain` — rain and snow in the 6 hours up to each time: storms, wet weekends.
- `wind` — wind speed, with arrows showing where it blows from: storms, sailing, flights.
- `clouds` — cloud cover: stargazing, eclipses, sunny days.
- `pressure` — isobars with the highs (H) and lows (L): the weather systems, as forecasters draw them.
- `none` — only the places.

`units`: `metric` (°C, km/h, mm) or `imperial` (°F, mph, in), for the people reading it (the US: imperial).

## Writing about it

`read_weather_map` gives each place's weather now and day by day (high, low, the weather around midday, rain),
its days in its own time zone, in °C, m/s and mm. When you write a summary (in `subtitle`, a doc or a chat),
quote those numbers; never guess weather.

## Order of work

1. Which places, and what region they are in.
2. `find_places` for any name that could be more than one place.
3. `create_weather_map` with the places, `area`, `layer` and `units`.
4. `render_weather_map`: check every place has its pin and forecast, the region is framed, and the heat map
   shows. Give the person the URL.

## Changing it

`read_weather_map` (with `forecasts: false` when you only need the ids), then `update_weather_map`: `add`,
`change` (name, note), `remove`, `order`, and `layer`, `units`, `area`, `subtitle`, `title`.

## Comments

`comment` with `place` (its id, or its number on the map) puts the comment on that place's pin and card.

## See it in use

- **Articles:** [Team Offsite Planning: Vote, Check the Weather, Map Venues](/blog/team-offsite-planning)
- **Examples:** [24 pages agents made for a sample company](/examples)
