weather
Installation
SKILL.md
Weather
Real-time weather queries with location persistence. Zero API cost (free public APIs).
Tool
python3 .claude/skills/weather/scripts/weather_ctl.py <command> [args]
Commands
# Current weather (uses saved location, fallback Beijing)
weather_ctl.py current
weather_ctl.py current --location "Shanghai"
weather_ctl.py current --lat 39.967 --lng 116.535
# Multi-day forecast
weather_ctl.py forecast --days 3
weather_ctl.py forecast --days 7 --location "Tokyo"
weather_ctl.py forecast --days 3 --lat 45.5 --lng -73.6
# Location management
weather_ctl.py location --show
weather_ctl.py location --set --name "北京朝阳" --lat 39.967 --lng 116.535
Data Sources
| Source | 用途 | 特点 |
|---|---|---|
| wttr.in | 当前天气(主) | 免费无 key,中文天气描述,城市名查询 |
| Open-Meteo | 当前天气(备)+ 多日预报 | 免费无 key,坐标精准查询,全球覆盖 |
| Open-Meteo AQI | 空气质量 | PM2.5/PM10/US AQI,best-effort |
Location Persistence
位置数据持久化在 data/location.json:
{"name": "北京朝阳", "lat": 39.967, "lng": 116.535, "updated": "2026-03-11T10:00:00"}
流程:用户在飞书分享位置 → CC 确认 → 调用 location --set 持久化 → 后续查询自动使用
garmin-health 晨间简报调用 weather_ctl.py current 获取天气,自动读取持久化位置。
Behavior Notes
--location城市名优先走 wttr.in(中文描述好),--lat/--lng坐标优先走 Open-Meteo(精度高)- 未设置位置且未传参时,默认 Beijing
- forecast 仅支持 Open-Meteo(wttr.in 无结构化多日数据)
- AQI 为 best-effort,失败不影响天气主数据
- 所有输出 JSON 格式,CC 直接解析
Weekly Installs
1
Repository
midnightv1/clau…e-feishuGitHub Stars
20
First Seen
2 days ago
Security Audits
Installed on
amp1
cline1
openclaw1
opencode1
cursor1
kimi-cli1