跳到正文
Skillpedia
其他41k · #6515

weather

它能做什么

这个技能通过免费的在线服务获取当前天气和预报。适合想从 AI 那里快速得到天气答案的任何人。

适用场景

  • ✓当你询问某个城市现在的天气如何的时候。
  • ✓当你想为旅行或未来一天查看预报的时候。
  • ✓当程序需要 JSON 格式的天气数据的时候。

技能链接

https://github.com/volcengine/OpenViking/blob/main/bot/workspace/skills/weather/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/volcengine/OpenViking/blob/main/bot/workspace/skills/weather/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“伦敦现在的天气怎么样?明天会下雨吗?”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会向一个免费天气服务请求简短摘要,编程使用时则以 JSON 服务作为备用。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Weather

Two free services, no API keys needed.

wttr.in (primary)

Quick one-liner:

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

Compact format:

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

Full forecast:

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

Format codes: %c condition · %t temp · %h humidity · %w wind · %l location · %m moon

Tips:

  • URL-encode spaces: wttr.in/New+York
  • Airport codes: wttr.in/JFK
  • Units: ?m (metric) ?u (USCS)
  • Today only: ?1 · Current only: ?0
  • PNG: curl -s "wttr.in/Berlin.png" -o /tmp/weather.png

Open-Meteo (fallback, JSON)

Free, no key, good for programmatic use:

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

Find coordinates for a city, then query. Returns JSON with temp, windspeed, weathercode.

Docs: https://open-meteo.com/en/docs

常见问题

我需要 API 密钥吗?

不需要。技能说明,两个服务都无需 API 密钥即可使用。

我能查看完整的预报吗?

可以。技能介绍了完整的预报视图,以及紧凑的单行格式。

哪个服务是备用的?

Open-Meteo 是备用服务,它返回 JSON,适合程序使用。

详情

作者的原始描述

Get current weather and forecasts (no API key required).

repo: volcengine/OpenViking

热度

GitHub 星标
41k
排名
#6515
许可证
AGPL-3.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能