← 返回 Skills 市场
Weather Query Zrr
作者
Huawei Cloud Developer
· GitHub ↗
· v1.0.0
· MIT-0
36
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install weather-query-zrr
功能描述
查询全球城市实时天气信息,支持当前天气、未来预报和空气质量查询。基于 wttr.in 和 Open-Meteo API,无需 API Key。Use this skill when user asks about weather, temperature, forecast, or air quality for...
使用说明 (SKILL.md)
Weather Query
概述
查询全球城市天气信息的技能。支持三种查询模式:当前天气、未来3天预报、空气质量。默认使用 wttr.in(无需 API Key),也支持 Open-Meteo API 作为备选数据源。
前置条件
- Python 3.10+(系统自带)
requests库(pip install requests)- 网络可访问 wttr.in 或 api.open-meteo.com
核心命令
查询当前天气
python3 scripts/weather.py --city "Beijing" --mode current
查询未来预报
python3 scripts/weather.py --city "Shanghai" --mode forecast
查询空气质量
python3 scripts/weather.py --city "Guangzhou" --mode air
指定数据源
python3 scripts/weather.py --city "Tokyo" --source open-meteo
参数确认
| 参数 | 必需 | 默认值 | 说明 |
|---|---|---|---|
| --city | 是 | - | 城市名(支持中英文,如 "北京" / "Beijing") |
| --mode | 否 | current | 查询模式: current / forecast / air |
| --source | 否 | wttr | 数据源: wttr / open-meteo |
| --lang | 否 | zh | 输出语言: zh / en |
| --format | 否 | text | 输出格式: text / json |
输出格式
current 模式
🏙️ 北京 (Beijing)
🌡️ 温度: 28°C (体感 30°C)
💧 湿度: 65%
🌬️ 风速: 12 km/h 东南风
☁️ 天气: 多云
👁️ 能见度: 10 km
forecast 模式
🏙️ 上海 未来3天预报:
📅 今天: 30°C / 22°C ☀️ 晴
📅 明天: 28°C / 21°C ⛅ 多云
📅 后天: 25°C / 19°C 🌧️ 小雨
air 模式
🏙️ 广州 空气质量:
🟢 AQI: 52 (良)
PM2.5: 35 μg/m³
PM10: 58 μg/m³
O₃: 42 μg/m³
验证方法
# 验证脚本可执行
python3 scripts/weather.py --city "Beijing" --mode current
# 验证 JSON 输出
python3 scripts/weather.py --city "Beijing" --format json
# 验证中文名查询
python3 scripts/weather.py --city "深圳" --mode forecast
最佳实践
- 城市名优先使用英文,中文城市名会自动转换
- wttr.in 对中国城市支持较好,Open-Meteo 对欧美城市更精确
- 批量查询时建议加
--format json方便程序解析 - wttr.in 有频率限制,批量查询建议间隔 1 秒
参考文档
- wttr.in — 基于终端的天气服务
- Open-Meteo API — 免费天气 API
- 城市名映射 — wttr.in 多语言支持
注意事项
- wttr.in 为公共服务,偶尔不稳定,可切换
--source open-meteo - 空气质量数据仅 Open-Meteo 支持,wttr.in 的 air 模式会自动切换数据源
- 中国部分小城市可能无法查询,建议使用地级市名称
安全使用建议
Install only if you are comfortable with a local Python script making HTTPS requests to wttr.in and Open-Meteo using the city or location you provide. It does not require an API key and does not appear to read credentials or persist data.
能力标签
能力评估
Purpose & Capability
The documented purpose is weather, forecast, and air-quality lookup, and the script only implements those functions through wttr.in and Open-Meteo requests.
Instruction Scope
The trigger wording is broad for weather-related requests, but it remains aligned with the skill purpose and does not ask the agent to perform unrelated or privileged actions.
Install Mechanism
The skill documents running python3 scripts/weather.py and mentions installing requests, although the script uses Python standard-library urllib; no hidden installer or package execution flow is present.
Credentials
Network access is necessary for live weather data and the destinations are disclosed, but users should understand that searched city names are sent to third-party weather services.
Persistence & Privilege
No persistence, credential access, background execution, file mutation, privilege escalation, or broad local data access was found.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install weather-query-zrr - 安装完成后,直接呼叫该 Skill 的名称或使用
/weather-query-zrr触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of weather-query-zrr.
- Query real-time weather, 3-day forecast, and air quality for any global city.
- Supports both wttr.in (default) and Open-Meteo as data sources without requiring an API key.
- Command-line modes: current weather, forecast, and air; supports both Chinese and English city names.
- Output available in text or JSON, with language options (zh/en).
- Air quality queries auto-switch to Open-Meteo if not available on wttr.in.
元数据
常见问题
Weather Query Zrr 是什么?
查询全球城市实时天气信息,支持当前天气、未来预报和空气质量查询。基于 wttr.in 和 Open-Meteo API,无需 API Key。Use this skill when user asks about weather, temperature, forecast, or air quality for... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 36 次。
如何安装 Weather Query Zrr?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install weather-query-zrr」即可一键安装,无需额外配置。
Weather Query Zrr 是免费的吗?
是的,Weather Query Zrr 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Weather Query Zrr 支持哪些平台?
Weather Query Zrr 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Weather Query Zrr?
由 Huawei Cloud Developer(@zrr000212-netizen)开发并维护,当前版本 v1.0.0。
推荐 Skills