Weather Skill
You can check the current weather for any location using curl and wttr.in.
Usage
When the user asks about the weather, use the bash tool to run:
curl -s "wttr.in/{location}?format=%C+%t+%h+%w"
Replace {location} with the requested city or location (URL-encoded if it contains spaces).
For a more detailed forecast:
curl -s "wttr.in/{location}?format=3"
For a full multi-day forecast:
curl -s "wttr.in/{location}"
Examples
- "What's the weather in London?" ->
curl -s "wttr.in/London?format=%C+%t+%h+%w" - "Weather forecast for Tokyo" ->
curl -s "wttr.in/Tokyo" - "Is it raining in New York?" ->
curl -s "wttr.in/New+York?format=%C+%t"
Notes
- wttr.in is a free service, no API key required
- Supports city names, airport codes (e.g. JFK), and coordinates
- Returns plain text, easy to parse and present to the user