Skip to content

Commit 87930b1

Browse files
docs: use compact wttr json in weather skill
1 parent 7c835fb commit 87930b1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

skills/weather/SKILL.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,23 @@ User-Agent.
3333

3434
```javascript
3535
await web_fetch({
36-
url: "https://wttr.in/London?format=j1",
36+
url: "https://wttr.in/London?format=j2",
3737
extractMode: "text",
3838
maxChars: 12000,
3939
});
4040
```
4141

4242
For short answers, summarize `current_condition[0]`, `nearest_area[0]`, and the
43-
first entries in `weather[]`. Useful JSON fields:
43+
first entries in `weather[]`. Use `format=j2` for normal summaries because it
44+
omits bulky hourly data and fits the default `web_fetch` output cap. Useful JSON fields:
4445

4546
- `current_condition[0].weatherDesc[0].value`: condition
4647
- `current_condition[0].temp_C` / `temp_F`: temperature
4748
- `current_condition[0].FeelsLikeC` / `FeelsLikeF`: feels like
4849
- `current_condition[0].precipMM`: precipitation
4950
- `current_condition[0].humidity`: humidity
5051
- `current_condition[0].windspeedKmph` / `windspeedMiles`: wind speed
51-
- `weather[].date`, `maxtempC`, `mintempC`, `hourly[]`: forecast
52+
- `weather[].date`, `maxtempC`, `mintempC`: forecast
5253

5354
## Fallback: curl
5455

0 commit comments

Comments
 (0)