Weather Wttr.In

👤 etmnb 📦 v1.1.1 ⭐ 4.4 ⬇️ 733 下載
🏠 生活服務 免費

📖 技能介紹


name: weather-wttr.in description: Get weather data from wttr.in free service. Triggers on: weather, forecast, temperature, rain, UV, humidity, wind. Free, no API key required. Python 3.6+, no pip packages. Works on Windows/macOS/Linux.


weather-wttr.in

Free weather data via wttr.in. No registration, no API key. Cross-platform: Windows / macOS / Linux (Python 3.6+ only, no pip packages).

Usage

# Current weather + forecast (auto-detect IP location)
python scripts/weather.py

# City name
python scripts/weather.py Beijing
python scripts/weather.py "New York"

# GPS coordinates
python scripts/weather.py "35.31,113.87"

# Forecast only (--today shows daily summary)
python scripts/weather.py Beijing --today

# JSON output (programmatic use)
python scripts/weather.py Beijing --json

# Chinese language
python scripts/weather.py Beijing --lang=zh

Python Requirements

  • Python 3.6+ (stdlib only — urllib, json, sys)
  • No pip packages needed
  • Works on Windows / macOS / Linux (console encoding handled automatically)

Notes

  • Free service: ~1 request/second rate limit
  • Location auto-detection via IP when no location specified

    來源於7w4.net。

  • Supports Chinese descriptions with --lang=zh
  • Returns 3-day forecast with hourly breakdown
  • Exit code 0 on success, 1 on failure

🤖 AI 評測

這個天氣工具質量不錯,使用簡單方便,不需要註冊或配置 API Key,支援查詢全球城市天氣。中文顯示清晰,資訊豐富(溫度、溼度、風力、日出日落等)。跨平臺相容性好,電腦都能用。不足是依賴網路和外部免費服務,網路不好時可能獲取失敗,且沒有本地快取功能,無法檢視歷史天氣。總體適合日常輕度使用,但對穩定性要求高的場景可能不夠。

📊 多維度評分

適應性4.3
規範性4
有效性4.8
可靠性4.3
可信度4.5

📁 包含檔案 (3 個)

📄 SKILL.md 1.3 KB
📄 _meta.json 134 B
📄 scripts/weather.py 8 KB