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

Audits

Pass

Install

openclaw skills install weather-wttr-in

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