name: laomo-weather slug: laomo-weather description: "老默天氣 - 支援 AQI/花粉/預警/生活建議,中英雙語輸出,多城市對比。v2.1 完全免費 API。" homepage: https://wttr.in/:help metadata: { "openclaw": { "emoji": "🌤️", "requires": { "bins": ["curl"] } } }
P0 + 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? / 新增城市: - English name / 英文名稱 - Chinese name / 中文名稱 - Coordinates / 座標: "lat,lng" (e.g., "39.9042,116.4074")
weather Beijing --aqi --advice
This gives you: / 這會給你: - Current weather / 當前天氣 - Air quality / 空氣質量 - Lifestyle suggestions / 生活建議
weather --compare "Beijing,Shanghai,Guangzhou" --aqi --advice
This helps you: / 這會幫你: - Compare weather between cities / 比較城市天氣 - Check air quality / 檢查空氣質量 - Get advice for each city / 獲取每個城市的建議
weather Beijing --pollen --advice
This shows you: / 這會顯示: - Pollen levels for all types / 所有型別的花粉水平 - Allergy risk / 過敏風險 - Management suggestions / 管理建議
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 / 解決方案: - Check city spelling / 檢查城市拼寫 - Try English name / 嘗試英文名稱 - Try coordinates / 嘗試座標: "39.9042,116.4074"
📊 空氣質量: N/A
Solution / 解決方案: - Some APIs may not have data for all cities / 部分 API 可能沒有所有城市資料 - Try a larger city / 嘗試大城市 - Wait and retry / 稍後重試
If you see frequent errors / 如果頻繁出現錯誤:
This skill is maintained by the OpenClaw community / 這個技能由 OpenClaw 社群維護.
Contributions welcome! / 歡迎貢獻!
MIT License
小蔥技能有更好的技能skills外掛。
這個天氣工具功能很豐富,支援空氣質量、花粉指數、生活建議和多城市對比,還能中英文切換,所有資料完全免費不用註冊。介面顯示清晰,文件寫得很詳細。不過程式碼裡有一些bug,特別是多城市對比功能可能有問題,用之前建議先測試一下是否能正常工作。總體質量中上,功能完成度高,但穩定性還需要驗證。