weather
GitHub通过wttr.in获取指定地点的实时天气和预报,支持温度、湿度等详情及多日预测。无需API密钥,适用于日常天气查询,不适用于历史数据或气象分析。
Trigger Scenarios
Install
npx skills add opensquilla/opensquilla --skill weather -g -y
SKILL.md
Frontmatter
{
"name": "weather",
"homepage": "https:\/\/wttr.in\/:help",
"metadata": {
"openclaw": {
"emoji": "☔",
"install": [
{
"id": "brew",
"os": [
"darwin"
],
"bins": [
"curl"
],
"kind": "brew",
"label": "Install curl (brew)",
"formula": "curl"
}
],
"requires": {
"bins": [
"curl"
]
}
}
},
"entrypoint": {
"args": [
"--location",
"{{ with.location | default(inputs.user_message) }}",
"--days",
"{{ with.days | default(3) }}",
"--timeout",
"{{ with.timeout | default(8) }}",
"--max-chars",
"{{ with.max_chars | default(2500) }}"
],
"parse": "json",
"command": "python {baseDir}\/scripts\/weather_fetch.py",
"timeout": 15
},
"provenance": {
"origin": "openclaw-derived",
"license": "MIT",
"upstream_url": "https:\/\/github.com\/openclaw\/openclaw",
"maintained_by": "OpenSquilla"
},
"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."
}
Weather Skill
Get current weather conditions and forecasts.
Meta-Skill Entrypoint
Meta-skills can run this skill as skill_exec for a bounded JSON forecast
without spawning an LLM sub-agent. The entrypoint extracts DESTINATION: from
planner contracts, queries wttr.in, and returns compact current, forecast,
seasonal_hint, and errors fields. Network failures are reported in
errors while preserving a usable seasonal hint.
Location
Always include a city, region, or airport code in weather queries.
Commands
Current Weather
# One-line summary
curl "https://wttr.in/London?format=3"
# Detailed current conditions
curl "https://wttr.in/London?0"
# Specific city
curl "https://wttr.in/New+York?format=3"
Forecasts
# 3-day forecast
curl "https://wttr.in/London"
# Week forecast
curl "https://wttr.in/London?format=v2"
# Specific day (0=today, 1=tomorrow, 2=day after)
curl "https://wttr.in/London?1"
Format Options
# One-liner
curl "https://wttr.in/London?format=%l:+%c+%t+%w"
# JSON output
curl "https://wttr.in/London?format=j1"
# PNG image
curl "https://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?"
curl -s "https://wttr.in/London?format=%l:+%c+%t+(feels+like+%f),+%w+wind,+%h+humidity"
"Will it rain?"
curl -s "https://wttr.in/London?format=%l:+%c+%p"
"Weekend forecast"
curl "https://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 https://wttr.in/ORD
Version History
- 7f72a32 Current 2026-07-05 18:40


