Back to Skills
🖼️

Weather

Get current weather and forecasts for any location — no API key required.

by Peter Steinberger
Design & MediaOpen SourceAutomationCLIDeveloper ToolAPICommunity

# Weather Get current weather and forecasts for any location — no API key required. Current conditions — Instantly fetch temperature, humidity, wind, and weather condition for any city, airport code, or coordinates.Forecasts — Get multi-day forecasts in a compact or full format using wttr.in.JSON output — Use Open-Meteo for programmatic, machine-readable weather data.No API key — Both wttr.in and Open-Meteo are free and require zero authentication. ## How It Works Query wttr.in — Pass a city name, airport code, or coordinates as a URL path segment; wttr.in returns formatted weather data.Choose your format — Use format codes (%c, %t, %h, %w, etc.) to compose a compact one-liner, or omit the format flag for a full forecast terminal render.Fallback to Open-Meteo — Look up latitude/longitude for your city, then call the Open-Meteo forecast API to receive structured JSON with temperature, wind speed, and weather code.Post-process — Pipe or parse the output in your scripts for automation, alerts, or display. ## Key Features Two free backends — wttr.in for human-readable output; Open-Meteo for JSON and programmatic use.Flexible location input — City names, airport IATA codes (JFK), URL-encoded names (New+York), or lat/lon coordinates.Format codes — Mix and match %c (condition), %t (temperature), %h (humidity), %w (wind), %l (location), %m (moon phase).Unit control — Append ?m for metric or ?u for USCS (imperial) units.Time range selection — ?0 for current only, ?1 for today, or full multi-day forecast by default.PNG export — Save a weather image to disk with a single curl command. ## Requirements curl — The only dependency; available by default on macOS and most Linux distributions, and installable on Windows via winget or the official curl download page.No API keys — Both wttr.in and Open-Meteo are completely free with no registration required. ## Use Cases Terminal weather check — Quickly glance at current conditions without leaving your shell.Shell scripts and automation — Embed weather data in Bash or Python scripts for conditional logic or notifications.AI agent context — Provide Clawdbot with real-time weather information to answer user queries.CI/CD pipelines — Gate outdoor-dependent workflows (e.g., drone flights) based on wind or precipitation data.Dashboard widgets — Pull weather into custom terminal dashboards or status bars. ## Installation Install via: `npx clawhub@latest install weather`

Installation

1

Run in your terminal

npx clawhub@latest install weather
2

Click the Install button at the top of this page for one-click setup