wttr.in delivers weather reports through simple HTTP requests from curl, browsers, or scripts. Output adapts to ANSI terminal art, plain text, HTML, PNG images, or JSON depending on how you call it.
Overview
wttr.in is a weather forecast service built for quick checks from the command line or embedded in other tools. A bare curl to the host shows a multi-day ASCII report for your location inferred from IP, or you can append a city, airport code, landmark, or domain to target somewhere specific.
The service picks presentation based on client hints: terminals get colored ANSI layouts, browsers get HTML, and adding .png requests a graphic. Plain-text, one-line formats, JSON, Prometheus metrics, moon-phase views, and experimental richer v2 and map v3 layouts extend the same backend for status bars, chat bots, and monitoring.
Query parameters control units, language, transparency for PNG overlays, and compact format strings with emoji or Nerd Font glyphs. Documentation describes integrations with tmux, WeeChat, conky, and many other programs that poll the endpoint on an interval.
Public endpoints include wttr.in and the mirror wttr.is, which share the same backend for scripts that need a stable hostname.
Key features
- curl-friendly weather reports
- ANSI, HTML, PNG, and JSON output
- Location by city, airport, or IP
- One-line formats for status bars
- Moon phase queries
- Prometheus metrics format
- Internationalization and unit options
- Embeddable HTML weather widget
Use cases
- Terminal weather checks while scripting
- Status bar weather in tmux or editors
- JSON weather data for small programs
- PNG overlays on images for forecasts