home / skills / openclaw / openclaw / weather
This skill provides current weather and forecasts using free services, delivering concise, actionable insights without requiring an API key.
npx playbooks add skill openclaw/openclaw --skill weatherReview the files below or copy the command above to add this skill to your agents.
---
name: weather
description: "Get current weather and forecasts via wttr.in or Open-Meteo. Use when: user asks about weather, temperature, or forecasts for any location. NOT for: historical weather data, severe weather alerts, or detailed meteorological analysis. No API key needed."
homepage: https://wttr.in/:help
metadata: { "openclaw": { "emoji": "š¤ļø", "requires": { "bins": ["curl"] } } }
---
# Weather Skill
Get current weather conditions and forecasts.
## When to Use
ā
**USE this skill when:**
- "What's the weather?"
- "Will it rain today/tomorrow?"
- "Temperature in [city]"
- "Weather forecast for the week"
- Travel planning weather checks
## When NOT to Use
ā **DON'T use this skill when:**
- Historical weather data ā use weather archives/APIs
- Climate analysis or trends ā use specialized data sources
- Hyper-local microclimate data ā use local sensors
- Severe weather alerts ā check official NWS sources
- Aviation/marine weather ā use specialized services (METAR, etc.)
## Location
Always include a city, region, or airport code in weather queries.
## Commands
### Current Weather
```bash
# One-line summary
curl "wttr.in/London?format=3"
# Detailed current conditions
curl "wttr.in/London?0"
# Specific city
curl "wttr.in/New+York?format=3"
```
### Forecasts
```bash
# 3-day forecast
curl "wttr.in/London"
# Week forecast
curl "wttr.in/London?format=v2"
# Specific day (0=today, 1=tomorrow, 2=day after)
curl "wttr.in/London?1"
```
### Format Options
```bash
# One-liner
curl "wttr.in/London?format=%l:+%c+%t+%w"
# JSON output
curl "wttr.in/London?format=j1"
# PNG image
curl "wttr.in/London.png"
```
### Format Codes
- `%c` ā Weather condition emoji
- `%t` ā Temperature
- `%f` ā "Feels like"
- `%w` ā Wind
- `%h` ā Humidity
- `%p` ā Precipitation
- `%l` ā Location
## Quick Responses
**"What's the weather?"**
```bash
curl -s "wttr.in/London?format=%l:+%c+%t+(feels+like+%f),+%w+wind,+%h+humidity"
```
**"Will it rain?"**
```bash
curl -s "wttr.in/London?format=%l:+%c+%p"
```
**"Weekend forecast"**
```bash
curl "wttr.in/London?format=v2"
```
## Notes
- No API key needed (uses wttr.in)
- Rate limited; don't spam requests
- Works for most global cities
- Supports airport codes: `curl wttr.in/ORD`
This skill provides current weather and forecasts without requiring any API key. It uses wttr.in for quick human-friendly results and falls back to Open-Meteo for programmatic JSON data. It is lightweight, easy to integrate, and works anywhere with HTTP access.
For human-readable and compact summaries the skill queries wttr.in using simple URL formats and optional format codes. For structured programmatic responses it calls Open-Meteo with latitude/longitude to return JSON containing current weather, wind, and weather codes. It supports unit selection, location encoding, and image (PNG) output.
Do I need an API key?
No. Both wttr.in and Open-Meteo are free and do not require API keys.
Which service should I pick for my use case?
Use wttr.in for human-friendly text or images and quick CLI lookups. Use Open-Meteo when you need reliable, structured JSON for programmatic processing.