← Back to Skills Marketplace
zrr000212-netizen

Weather Query Zrr

by Huawei Cloud Developer · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
36
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install weather-query-zrr
Description
查询全球城市实时天气信息,支持当前天气、未来预报和空气质量查询。基于 wttr.in 和 Open-Meteo API,无需 API Key。Use this skill when user asks about weather, temperature, forecast, or air quality for...
README (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 为公共服务,偶尔不稳定,可切换 --source open-meteo
  • 空气质量数据仅 Open-Meteo 支持,wttr.in 的 air 模式会自动切换数据源
  • 中国部分小城市可能无法查询,建议使用地级市名称
Usage Guidance
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.
Capability Tags
requires-sensitive-credentials
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install weather-query-zrr
  3. After installation, invoke the skill by name or use /weather-query-zrr
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug weather-query-zrr
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Weather Query Zrr?

查询全球城市实时天气信息,支持当前天气、未来预报和空气质量查询。基于 wttr.in 和 Open-Meteo API,无需 API Key。Use this skill when user asks about weather, temperature, forecast, or air quality for... It is an AI Agent Skill for Claude Code / OpenClaw, with 36 downloads so far.

How do I install Weather Query Zrr?

Run "/install weather-query-zrr" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Weather Query Zrr free?

Yes, Weather Query Zrr is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Weather Query Zrr support?

Weather Query Zrr is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Weather Query Zrr?

It is built and maintained by Huawei Cloud Developer (@zrr000212-netizen); the current version is v1.0.0.

💬 Comments