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.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "caiyun-weather" with this command: npx skills add tjefferson/caiyun-weather

彩云天气 (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 对中国地区数据最为精准
  • 有频率限制,请避免短时间内频繁请求

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

test_skill

import json import tkinter as tk from tkinter import messagebox, simpledialog

Archived SourceRecently Updated
General

magister.net

Fetch schedule, grades, and infractions from https://magister.net 🇳🇱 portal

Registry SourceRecently Updated
1400ghuron
General

Official Doc

公文写作助手。通知、报告、请示、批复、会议纪要、工作总结、格式检查、语气检查、模板库。Official document writer for notices, reports, requests, meeting minutes with format check, tone check, template l...

Registry SourceRecently Updated
2392ckchzh
General

Douyin Creator

抖音内容创作与运营助手。抖音运营、抖音涨粉、短视频创作、抖音标题、抖音标签、抖音SEO、抖音账号运营、抖音数据分析、抖音选题、抖音脚本、抖音文案、抖音评论区运营、抖音人设定位、抖音发布时间、DOU+投放、抖音流量、短视频运营、视频创意、直播脚本、话题标签策略、合拍翻拍创意、抖音变现、带货星图、Douyin con...

Registry SourceRecently Updated