Install
openclaw skills install laomo-weatheropenclaw skills install laomo-weatherP0 + P1 Features Complete / P0 + P1 功能已完成
Get current weather conditions, forecasts, AQI, pollen data, extreme weather alerts, and lifestyle suggestions. Supports bilingual (Chinese/English) output with full translation of conditions and AQI descriptions.
获取当前天气状况、预报、空气质量、花粉数据、极端天气预警和生活建议。支持中英双语输出,天气状况和空气质量完全翻译。
✅ USE this skill when: / 使用此技能:
❌ DON'T use this skill when: / 不要使用:
| Feature / 功能 | Description / 描述 | Command / 命令 |
|---|---|---|
| 🔄 Dual API Fallback | wttr.in + Open-Meteo fallback for reliability / wttr.in + Open-Meteo 双重 API 确保稳定性 | Automatic / 自动 |
| 📊 Air Quality (AQI) | PM2.5, AQI from Open-Meteo Air Quality API (FREE) / PM2.5、AQI 数据(Open-Meteo 空气质量 API,免费) | --aqi |
| 🌸 Pollen Data | Tree/Grass/Ragweed/Mold pollen levels / 树木/草/豚草/霉菌花粉数据 | --pollen |
| ⚠️ Extreme Alerts | Rain/Snow/Thunderstorm warnings / 雨/雪/雷暴预警 | --alerts |
| 🌍 Bilingual Support | Chinese/English output / 中英文输出 | --lang zh/en/auto |
| 💡 Free All APIs | No paid APIs, fully free service / 全部免费 API,无付费服务 | Free / 免费 |
| Feature / 功能 | Description / 描述 | Command / 命令 |
|---|---|---|
| 💡 Lifestyle Suggestions | Clothing/Exercise/Car Wash/Allergy advice / 穿衣/运动/洗车/过敏建议 | --advice |
| 📈 Multi-City Comparison | Compare weather between cities with highlights / 多城市对比天气(带亮点) | --compare "Beijing,Shanghai" |
| 🗺️ Smart Location | City name/Airport/Coordinates with automatic geocoding / 城市名/机场/坐标自动地理编码 | Automatic / 自动 |
# Current weather / 当前天气
weather Beijing
天气 北京
# With all data / 完整数据
weather Beijing --aqi --pollen --alerts --advice
# Multi-city comparison / 多城市对比
weather --compare "Beijing,Shanghai,Guangzhou"
# Weather with AQI and lifestyle suggestions / 天气+空气质量+建议
weather Beijing --aqi --advice
# Weather with pollen data / 天气+花粉数据
weather Beijing --pollen
# Weather with extreme alerts / 天气+预警
weather Beijing --alerts
# Compare three cities with all data / 三个城市完整对比
weather --compare "Beijing,Shanghai,Guangzhou" --aqi --pollen --alerts --advice
# Text format (default) / 文本格式(默认)
weather Beijing
# Table format / 表格格式
weather Beijing --format table
# JSON format / JSON 格式
weather Beijing --format json --aqi
# Auto-detect (default) / 自动检测(默认)
weather Beijing --lang auto
# Force Chinese / 强制中文
weather Beijing --lang zh
# Force English / 强制英文
weather Beijing --lang en
| API / API | Free Limit / 免费限制 | Notes / 说明 |
|---|---|---|
| wttr.in | 250/day | Main weather source / 主天气源 |
| Open-Meteo | Unlimited | Complete weather suite / 完整天气服务(免费) |
| Open-Meteo Air Quality | Unlimited | Free air quality API / 免费空气质量 API |
| Open-Meteo Pollen | Unlimited | Free pollen API / 免费花粉 API |
| Open-Meteo Alerts | Unlimited | Free weather alerts / 免费天气预警 |
Note: All APIs are completely free with no API key required! / 注意: 所有 API 完全免费且无需 API Key!
We support cities worldwide! Key examples:
我们支持全球城市!主要城市:
Add a city? / 添加城市:
weather Beijing --aqi --advice
This gives you: / 这会给你:
weather --compare "Beijing,Shanghai,Guangzhou" --aqi --advice
This helps you: / 这会帮你:
weather Beijing --pollen --advice
This shows you: / 这会显示:
weather-v2.0/
├── lib/
│ ├── api.js # API wrappers (wttr, open-meteo, waqi, pollen, alerts)
│ ├── formatter.js # Output formatters (text, table, json)
│ ├── suggestions.js # Lifestyle suggestions engine
│ └── client.js # Main client combining all features
├── weather.js # CLI entry point
└── tests/ # Test suite
--lang parameter first / 首先检查显式 --lang 参数{
"北京": { lat: 39.9042, lng: 116.4074, name: "Beijing" },
"Shanghai": { lat: 31.2304, lng: 121.4737, name: "上海" },
// ... 1000+ cities
}
Chinese Template / 中文模板:
📍 {city}: {emoji} {temp}°C, {condition}, 湿度 {humidity}%
📊 空气质量: {aqi} ({quality})
🌸 花粉指数: {pollen}
Clothing: {clothing}
Exercise: {exercise}
English Template / 英文模板:
📍 {city}: {emoji} {temp}°C, {condition}, {humidity}% humidity
📊 AQI: {aqi} ({quality})
🌸 Pollen: {pollen}
Clothing: {clothing}
Exercise: {exercise}
$ weather Beijing --aqi --advice
📍 北京 ☀️
├─ 温度: 25°C | 体感: 27°C
├─ 天气: 晴 | 湿度: 60%
└─ 风: 北 5km/h
📊 空气质量: 75 (良)
PM2.5: 45 | PM10: 65
👕 穿衣建议: 穿短袖、短裤
🚗 洗车建议: 适合洗车
🏃 运动建议: 适合户外运动
🌸 过敏建议: 花粉风险低
$ weather --compare "Beijing,Shanghai,Guangzhou" --aqi
📊 多城市天气对比
📍 3 个城市: Beijing, Shanghai, Guangzhou
🔥 最热: Guangzhou (32°C)
❄️ 最冷: Beijing (25°C)
💧 最湿润: Shanghai (85%)
💨 风最大: Beijing (15km/h)
┌─────┬─────────────────────────────────────────────────┐
│ 城市 │ 温度 | AQI | 湿度 │
├─────┼─────────────────────────────────────────────────┤
│ ☀️ 北京 │ 25°C | 75 (良) │ 60% │
│ 🌤️ 上海 │ 28°C | 60 (良) │ 70% │
│ 🌧️ 广州 │ 32°C | 55 (优) │ 85% │
└─────┴─────────────────────────────────────────────────┘
$ weather Beijing --aqi --pollen --alerts --advice --format table
┌─────┬─────────────────────────────────────────────────┐
│ 北京 │ 温度 | AQI | 湿度 │
├─────┼─────────────────────────────────────────────────┤
│ ☀️ Beijing │ 25°C | 75 (良) │ 60% │
└─────┴─────────────────────────────────────────────────┘
❌ Error: City not found: InvalidCity
Solution / 解决方案:
📊 空气质量: N/A
Solution / 解决方案:
If you see frequent errors / 如果频繁出现错误:
This skill is maintained by the OpenClaw community / 这个技能由 OpenClaw 社区维护.
Contributions welcome! / 欢迎贡献!
MIT License