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
  • 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

🔥 大家都在搜

wps 写作 pdf 苹果