天气查询
通过 wttr.in 和 Open-Meteo 免费获取当前天气和预报,无需 API Key。
它能帮你做什么
先看懂,再决定要不要交给 AI。
该 Skill 封装了 wttr.in 和 Open-Meteo 两个免密钥的天气查询服务。用户可以通过 curl 命令查询指定城市的当前天气、详细预报或 JSON 格式的天气数据,支持温度、湿度、风速、天气状况、位置等多种信息,并支持公制/英制单位切换、机场代码查询、PNG 图片输出等。
怎么交给 AI
在线读取优先,本地安装作为备选。
适合能访问网页的 ChatGPT、Agent 或其他 AI。
请访问 https://skills.dhmip.cn/skills/skillhub/weather/SKILL.md,读取并按照该 Skill 完成任务;如当前环境支持本地安装,也可以下载该 Skill。未登录时可使用公共安装文档;登录后可以按不同 AI 分开管理。
请根据 https://skills.dhmip.cn/install/skillhub.md,安装 @skillhub/weather。兼容性与要求
安装或使用前,先确认环境是否匹配。
适用客户端
使用要求
- 需要安装 curl 工具
- 需要网络连接以访问 wttr.in 和 Open-Meteo API
⌘技术详情查看完整 SKILL.md 与原始内容⌄
name: weather
description: Get current weather and forecasts (no API key required).
homepage: https://wttr.in/:help
metadata: {"clawdbot":{"emoji":"🌤️","requires":{"bins":["curl"]}}}
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¤t_weather=true"
Find coordinates for a city, then query. Returns JSON with temp, windspeed, weathercode.
Docs: https://open-meteo.com/en/docs