技能标识:caiyun-weather
通过彩云天气 API 查询天气数据 — 实时天气、逐小时/一周预报、历史天气和天气预警。当用户询问任何城市的天气、温度、空气质量、天气预报、降雨概率、历史天气或天气预警时使用此技能。需要设置 CAIYUN_WEATHER_API_TOKEN 环境变量。Use when: user asks about current weather, temperature, air quality, forecast, rain, historical weather, or alerts for any city.
通过彩云天气 API 查询天气数据。支持直接使用城市名称(中文或英文),无需提供经纬度。
使用前需设置环境变量:
bash
export CAIYUNWEATHERAPI_TOKEN=你的API密钥
免费申请 API 密钥:https://docs.caiyunapp.com/weather-api/
✅ 使用此技能:
❌ 不要使用此技能:
使用 --city 加城市名称(中文或英文)。如需精确定位,可使用 --lng 和 --lat。
bash
python3 {{skillpath}}/scripts/caiyunweather.py realtime --city 北京
bash
python3 {{skillpath}}/scripts/caiyunweather.py hourly --city 上海
bash
python3 {{skillpath}}/scripts/caiyunweather.py weekly --city 深圳
bash
python3 {{skillpath}}/scripts/caiyunweather.py history --city 杭州
bash
python3 {{skillpath}}/scripts/caiyunweather.py alerts --city 成都
对于无法通过城市名识别的地点:
bash
python3 {{skillpath}}/scripts/caiyunweather.py realtime --lng 116.4074 --lat 39.9042
北京、上海、广州、深圳、杭州、成都、武汉、南京、重庆、西安、天津、苏州、郑州、长沙、青岛、大连、厦门、昆明、贵阳、哈尔滨、沈阳、长春、福州、合肥、济南、南昌、石家庄、太原、呼和浩特、南宁、海口、三亚、拉萨、乌鲁木齐、兰州、西宁、银川、香港、澳门、台北、珠海、东莞、佛山、无锡、宁波、温州
英文名和其他全球城市通过在线地理编码自动解析。
以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:
帮我安装 SkillHub 和 caiyun-weather-1776294220 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 caiyun-weather-1776294220 技能
skillhub install caiyun-weather-1776294220
文件大小: 5.98 KB | 发布时间: 2026-4-16 16:27