name: weather description: "Get weather, air quality, sunrise/sunset, golden/blue hour times, and sunrise/sunset glow quality forecasts (朝霞晚霞預測). Perfect for photographers and outdoor planning." homepage: https://wttr.in/:help metadata: openclaw: emoji: "☔" requires: bins: ["curl", "jq"] env_optional: ["WEATHERAPI_KEY", "SUNSETHUE_KEY"]
天氣查詢 + 朝霞晚霞預測
查天氣(含霞光預測)
~/.openclaw/workspace/skills/weather-pro/scripts/weather-full.sh 北京
引數說明 - 第一個引數:城市名(英文,如 Beijing, Shanghai) - 第二個引數(可選):預報天數,預設 1
| 城市 | 英文名 |
|---|---|
| 北京 | Beijing |
| 上海 | Shanghai |
| 秦皇島 | Qinhuangdao |
| 廣州 | Guangzhou |
| 深圳 | Shenzhen |
| 杭州 | Hangzhou |
| 成都 | Chengdu |
| 蘇州 | Suzhou |
| 南京 | Nanjing |
[城市]天氣 [日期]
🌡️ 溫度:最低 ~ 最高
🌬️ 風力:風向 風級
☁️ 天況:晴/多雲/雨
💧 溼度:百分比
🌫️ 空氣質量:PM2.5 數值
🌅 日出:HH:MM
🌇 日落:HH:MM
🌅 朝霞質量:分數 (等級)
🌇 晚霞質量:分數 (等級)
| 分數 | 等級 | 建議 |
|---|---|---|
| 80-100 | Excellent | 強烈推薦 🌟 |
| 60-79 | Good | 值得去 ✨ |
| 40-59 | Fair | 可能有色彩 |
| 0-39 | Poor | 不建議 |
小蔥技能站7w4.net每天更新,海量AI技能等你發現。
source ~/.openclaw/.env && curl -s "https://api.weatherapi.com/v1/forecast.json?key=${WEATHERAPI_KEY}&q=Beijing&days=1&lang=zh&aqi=yes" | jq '{
location: .location.name,
temp: .current.temp_c,
condition: .current.condition.text,
humidity: .current.humidity,
pm25: .current.air_quality.pm2_5
}'
### 晚霞預測
source ~/.openclaw/.env && curl -s "https://api.sunsethue.com/event?latitude=39.90&longitude=116.41&date=$(date +%Y-%m-%d)&type=sunset&key=${SUNSETHUE_KEY}" | jq '{
quality: (.data.quality * 100 | floor),
rating: .data.quality_text
}'
這個天氣 Skill 整體質量較好,文件說明詳細、輸出資訊豐富實用,特別適合攝影愛好者和戶外活動規劃者使用。亮點是整合了朝霞晚霞預測和黃金時刻/藍調時刻時間,功能比普通天氣工具更有針對性。不足之處是依賴外部 API Key 配置,如果未正確配置會直接報錯而非給出友好提示,對新手使用者不夠友好。建議改進錯誤提示和依賴引導。