← Back to Skills Marketplace
tjefferson

彩云天气 / Caiyun Weather

by Jeff · GitHub ↗ · v1.2.0 · MIT-0
cross-platform ✓ Security Clean
613
Downloads
0
Stars
8
Active Installs
3
Versions
Install in OpenClaw
/install caiyun-weather
Description
天气查询 / Weather query. 实时查询天气、气温、空气质量(AQI/PM2.5)、逐小时预报、一周天气预报、历史天气和天气预警,支持中文城市名(北京/上海/深圳等)直接查询。Real-time weather, temperature, AQI, hourly/weekly forecast, hi...
README (SKILL.md)

彩云天气 (Caiyun Weather)

通过彩云天气 API 查询天气数据。支持直接使用城市名称(中文或英文),无需提供经纬度。

前置条件

使用前需设置环境变量:

export CAIYUN_WEATHER_API_TOKEN="你的API密钥"

免费申请 API 密钥:https://docs.caiyunapp.com/weather-api/

何时使用

使用此技能:

  • "北京现在天气怎么样?"
  • "上海明天会下雨吗?"
  • "深圳未来一周天气预报"
  • "广州空气质量如何?"
  • "杭州过去24小时的天气"
  • "成都有没有天气预警?"
  • "What's the weather in Beijing?"
  • 用户询问任何城市的天气、温度、空气质量、预报或预警

不要使用此技能:

  • 气候趋势分析或长期历史数据
  • 航空/航海专业气象(METAR、TAF)
  • 用户未配置彩云天气 API Token

命令

使用 --city 加城市名称(中文或英文)。如需精确定位,可使用 --lng--lat

实时天气

python3 "{{skill_path}}/scripts/caiyun_weather.py" realtime --city "北京"

逐小时预报(72小时)

python3 "{{skill_path}}/scripts/caiyun_weather.py" hourly --city "上海"

一周预报(7天)

python3 "{{skill_path}}/scripts/caiyun_weather.py" weekly --city "深圳"

历史天气(过去24小时)

python3 "{{skill_path}}/scripts/caiyun_weather.py" history --city "杭州"

天气预警

python3 "{{skill_path}}/scripts/caiyun_weather.py" alerts --city "成都"

使用坐标(可选)

对于无法通过城市名识别的地点:

python3 "{{skill_path}}/scripts/caiyun_weather.py" realtime --lng 116.4074 --lat 39.9042

内置城市(即时查询)

北京、上海、广州、深圳、杭州、成都、武汉、南京、重庆、西安、天津、苏州、郑州、长沙、青岛、大连、厦门、昆明、贵阳、哈尔滨、沈阳、长春、福州、合肥、济南、南昌、石家庄、太原、呼和浩特、南宁、海口、三亚、拉萨、乌鲁木齐、兰州、西宁、银川、香港、澳门、台北、珠海、东莞、佛山、无锡、宁波、温州

英文名和其他全球城市通过在线地理编码自动解析。

说明

  • 脚本仅使用 Python 标准库,无需 pip 安装
  • 内置城市即时解析,其他城市通过 OpenStreetMap 地理编码
  • API 对中国地区数据最为精准
  • 有频率限制,请避免短时间内频繁请求
Usage Guidance
This skill appears to be a straightforward Caiyun Weather client. Before installing: (1) confirm you trust the skill source since the package has no homepage listed; (2) keep your CAIYUN_WEATHER_API_TOKEN secret and store it in a secure place (do not paste it into chats); (3) be aware that the skill makes outbound HTTPS requests to api.caiyunapp.com and nominatim.openstreetmap.org (rate limits and provider privacy policies apply); (4) if you require provenance, ask the publisher for a homepage or repository to audit updates.
Capability Analysis
Type: OpenClaw Skill Name: caiyun-weather Version: 1.2.0 The skill is a legitimate weather query tool using the Caiyun Weather API. It uses standard Python libraries to fetch data from official endpoints (api.caiyunapp.com) and OpenStreetMap (nominatim.openstreetmap.org) for geocoding, with no evidence of data exfiltration, malicious execution, or prompt injection in scripts/caiyun_weather.py or SKILL.md.
Capability Tags
requires-sensitive-credentials
Capability Assessment
Purpose & Capability
Name/description: weather queries via Caiyun. Declared requirement: CAIYUN_WEATHER_API_TOKEN and python3. Code calls api.caiyunapp.com for weather and (as documented) nominatim.openstreetmap.org for geocoding. All required items align with the stated purpose.
Instruction Scope
SKILL.md instructs running the included Python script with city or coordinates. The script only resolves coordinates (built-in mapping or OpenStreetMap), reads CAIYUN_WEATHER_API_TOKEN, makes HTTPS requests to Caiyun/OpenStreetMap, and prints results. It does not read unrelated files, other env vars, or transmit data to unexpected endpoints.
Install Mechanism
No install spec; this is instruction-only plus a small Python script using only the standard library. No external download/install steps are performed by the skill itself.
Credentials
Only one env var is required (CAIYUN_WEATHER_API_TOKEN), which is exactly what a Caiyun API client needs. No unrelated credentials or config paths are requested.
Persistence & Privilege
always is false and the skill does not request persistent system-wide changes. It does not modify other skills or agent configuration. Autonomous invocation is allowed (platform default) but not escalated by the skill.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install caiyun-weather
  3. After installation, invoke the skill by name or use /caiyun-weather
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.2.0
优化 ClawHub 改版后的搜索可发现性:新增 Data & APIs 分类、description 中文关键词前置、display name 支持双语
v1.1.0
- Added environment variable requirements to the skill metadata (`env` and `primaryEnv` for `CAIYUN_WEATHER_API_TOKEN`) - Now explicitly documents in metadata that the CAIYUN_WEATHER_API_TOKEN environment variable must be set for the skill to work
v1.0.0
- Initial release of caiyun-weather skill. - Query real-time, hourly, weekly, historical weather, and weather alerts via Caiyun Weather API. - Supports both Chinese and English city names; no coordinates required for popular cities. - Requires setting the CAIYUN_WEATHER_API_TOKEN environment variable. - Usage examples and command-line syntax provided for common scenarios. - No external Python libraries needed; uses only Python standard library.
Metadata
Slug caiyun-weather
Version 1.2.0
License MIT-0
All-time Installs 8
Active Installs 8
Total Versions 3
Frequently Asked Questions

What is 彩云天气 / Caiyun Weather?

天气查询 / Weather query. 实时查询天气、气温、空气质量(AQI/PM2.5)、逐小时预报、一周天气预报、历史天气和天气预警,支持中文城市名(北京/上海/深圳等)直接查询。Real-time weather, temperature, AQI, hourly/weekly forecast, hi... It is an AI Agent Skill for Claude Code / OpenClaw, with 613 downloads so far.

How do I install 彩云天气 / Caiyun Weather?

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

Is 彩云天气 / Caiyun Weather free?

Yes, 彩云天气 / Caiyun Weather is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 彩云天气 / Caiyun Weather support?

彩云天气 / Caiyun Weather is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 彩云天气 / Caiyun Weather?

It is built and maintained by Jeff (@tjefferson); the current version is v1.2.0.

💬 Comments