跳至主要内容
小龙虾小龙虾AI
🤖

天气

获取当前天气和预报(无需API密钥)。

下载61.5k
星标219
版本1.0.0
搜索研究
安全通过
🔗API

技能说明


name: weather description: 获取当前天气和预报(无需 API 密钥)。 homepage: https://wttr.in/:help metadata: {"clawdbot":{"emoji":"🌤️","requires":{"bins":["curl"]}}}

天气

两项免费服务,无需 API 密钥。

wttr.in(主要服务)

快速单行命令:

curl -s "wttr.in/London?format=3"
# 输出:London: ⛅️ +8°C

紧凑格式:

curl -s "wttr.in/London?format=%l:+%c+%t+%h+%w"
# 输出:London: ⛅️ +8°C 71% ↙5km/h

完整预报:

curl -s "wttr.in/London?T"

格式代码:%c 天气状况 · %t 温度 · %h 湿度 · %w 风力 · %l 位置 · %m 月相

提示:

  • URL 编码空格:wttr.in/New+York
  • 机场代码:wttr.in/JFK
  • 单位:?m(公制)?u(美制)
  • 仅今天:?1 · 仅当前:?0
  • PNG:curl -s "wttr.in/Berlin.png" -o /tmp/weather.png

Open-Meteo(备用服务,JSON)

免费,无需密钥,适合编程使用:

curl -s "https://api.open-meteo.com/v1/forecast?latitude=51.5&longitude=-0.12&current_weather=true"

查找城市坐标,然后查询。返回包含温度、风速、天气代码的 JSON。

文档:https://open-meteo.com/en/docs

如何使用「天气」?

  1. 打开小龙虾AI(Web 或 iOS App)
  2. 点击上方「立即使用」按钮,或在对话框中输入任务描述
  3. 小龙虾AI 会自动匹配并调用「天气」技能完成任务
  4. 结果即时呈现,支持继续对话优化

相关技能