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.
Free weather data via wttr.in. No registration, no API key. Cross-platform: Windows / macOS / Linux (Python 3.6+ only, no pip packages).
# 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
urllib, json, sys)來源於7w4.net。
--lang=zh這個天氣工具質量不錯,使用簡單方便,不需要註冊或配置 API Key,支援查詢全球城市天氣。中文顯示清晰,資訊豐富(溫度、溼度、風力、日出日落等)。跨平臺相容性好,電腦都能用。不足是依賴網路和外部免費服務,網路不好時可能獲取失敗,且沒有本地快取功能,無法檢視歷史天氣。總體適合日常輕度使用,但對穩定性要求高的場景可能不夠。