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
CODEBLOCK0
Forecasts
CODEBLOCK1
Format Options
CODEBLOCK2
Format Codes
- -
%c — Weather condition emoji - INLINECODE1 — Temperature
- INLINECODE2 — "Feels like"
- INLINECODE3 — Wind
- INLINECODE4 — Humidity
- INLINECODE5 — Precipitation
- INLINECODE6 — Location
Quick Responses
"What's the weather?"
CODEBLOCK3
"Will it rain?"
CODEBLOCK4
"Weekend forecast"
CODEBLOCK5
Notes
- - No API key needed (uses wttr.in)
- Rate limited; don't spam requests
- Works for most global cities
- Supports airport codes: INLINECODE7
天气技能
获取当前天气状况和预报。
使用场景
✅ 使用此技能的场景:
- - 今天天气怎么样?
- 今天/明天会下雨吗?
- [城市]的温度
- 本周天气预报
- 旅行计划中的天气查询
不使用场景
❌ 不要使用此技能的场景:
- - 历史天气数据 → 使用天气档案/API
- 气候分析或趋势 → 使用专业数据源
- 超局部微气候数据 → 使用本地传感器
- 恶劣天气警报 → 查看官方国家气象局来源
- 航空/海洋天气 → 使用专业服务(METAR等)
地点
天气查询中务必包含城市、地区或机场代码。
命令
当前天气
bash
一行摘要
curl wttr.in/London?format=3
详细当前状况
curl wttr.in/London?0
指定城市
curl wttr.in/New+York?format=3
预报
bash
3天预报
curl wttr.in/London
一周预报
curl wttr.in/London?format=v2
指定日期(0=今天,1=明天,2=后天)
curl wttr.in/London?1
格式选项
bash
单行显示
curl wttr.in/London?format=%l:+%c+%t+%w
JSON输出
curl wttr.in/London?format=j1
PNG图片
curl wttr.in/London.png
格式代码
- - %c — 天气状况表情符号
- %t — 温度
- %f — 体感温度
- %w — 风力
- %h — 湿度
- %p — 降水量
- %l — 地点
快速回复
今天天气怎么样?
bash
curl -s wttr.in/London?format=%l:+%c+%t+(feels+like+%f),+%w+wind,+%h+humidity
会下雨吗?
bash
curl -s wttr.in/London?format=%l:+%c+%p
周末预报
bash
curl wttr.in/London?format=v2
备注
- - 无需API密钥(使用wttr.in)
- 有速率限制,请勿频繁请求
- 适用于全球大多数城市
- 支持机场代码:curl wttr.in/ORD