weather

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Weather Skill

天气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
使用本Skill的场景:
  • "今天天气怎么样?"
  • "今天/明天会下雨吗?"
  • "[城市]的气温"
  • "本周天气预报"
  • 出行规划时的天气查询

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.)
请勿使用本Skill的场景:
  • 历史天气数据 → 使用天气档案/API
  • 气候分析或趋势 → 使用专业数据源
  • 超本地化微气候数据 → 使用本地传感器
  • 恶劣天气警报 → 查询官方NWS来源
  • 航空/海洋天气 → 使用专业服务(如METAR等)

Location

位置要求

Always include a city, region, or airport code in weather queries.
天气查询中必须包含城市、地区或机场代码。

Commands

命令示例

Current Weather

当前天气

bash
undefined
bash
undefined

One-line summary

One-line summary

curl "wttr.in/London?format=3"
curl "wttr.in/London?format=3"

Detailed current conditions

Detailed current conditions

curl "wttr.in/London?0"
curl "wttr.in/London?0"

Specific city

Specific city

curl "wttr.in/New+York?format=3"
undefined
curl "wttr.in/New+York?format=3"
undefined

Forecasts

天气预报

bash
undefined
bash
undefined

3-day forecast

3-day forecast

curl "wttr.in/London"
curl "wttr.in/London"

Week forecast

Week forecast

curl "wttr.in/London?format=v2"
curl "wttr.in/London?format=v2"

Specific day (0=today, 1=tomorrow, 2=day after)

Specific day (0=today, 1=tomorrow, 2=day after)

curl "wttr.in/London?1"
undefined
curl "wttr.in/London?1"
undefined

Format Options

格式选项

bash
undefined
bash
undefined

One-liner

One-liner

curl "wttr.in/London?format=%l:+%c+%t+%w"
curl "wttr.in/London?format=%l:+%c+%t+%w"

JSON output

JSON output

curl "wttr.in/London?format=j1"
curl "wttr.in/London?format=j1"

PNG image

PNG image

curl "wttr.in/London.png"
undefined
curl "wttr.in/London.png"
undefined

Format Codes

格式代码

  • %c
    — Weather condition emoji
  • %t
    — Temperature
  • %f
    — "Feels like"
  • %w
    — Wind
  • %h
    — Humidity
  • %p
    — Precipitation
  • %l
    — Location
  • %c
    — 天气状况表情符号
  • %t
    — 气温
  • %f
    — 体感温度
  • %w
    — 风力
  • %h
    — 湿度
  • %p
    — 降水量
  • %l
    — 位置

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"
"今天天气怎么样?"
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"

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
  • 无需API密钥(基于wttr.in)
  • 存在请求频率限制;请勿频繁发送请求
  • 支持全球大多数城市
  • 支持机场代码:
    curl wttr.in/ORD