← 返回
未分类 中文

Weather Wttr.In

Retrieve current weather and short-term forecasts worldwide via wttr.in, including temperature, humidity, wind, UV, and precipitation without requiring an AP...
通过 wttr.in 获取全球当前天气和短期预报,包括温度、湿度、风速、紫外线和降水,无需 API密钥。
etmnb etmnb 来源
未分类 clawhub v1.1.1 1 版本 100000 Key: 无需
★ 1
Stars
📥 399
下载
💾 0
安装
1
版本
#latest

概述

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

版本历史

共 1 个版本

  • v1.1.1 当前
    2026-05-03 10:23 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

life-service

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 452 📥 227,196

Bytedance Ai Image Gen

etmnb
字节AI绘图 — 调用豆包Seedream模型生成/编辑图片,支持文生图、图生图、多图融合及图片编辑。参与火山协作计划可免费使用,每日每模型限18次。生成需30-60秒,请耐心等待。
★ 0 📥 1,002
life-service

Sonoscli

steipete
控制Sonos音箱(发现/状态/播放/音量/分组)
★ 55 📥 84,866