Weather

A Swift terminal application that displays current weather conditions, forecasts, and alerts using NOAA's National Weather Service API.

Install

curl -sSL https://weather.blaze.design/install.sh | bash

Works on macOS and Linux. US locations only.

Usage

Current weather for a city
weather New York
Current weather for a zip code
weather 90210
7-day forecast
weather forecast Denver
12-hour hourly forecast
weather hourly Miami
Active weather alerts
weather alerts 10001

Example Output

Current Conditions

╔═══════════════════════════════════════════╗
║            ☁️  CURRENT WEATHER            ║
╠═══════════════════════════════════════════╣
║              New York, NY                 ║
╟───────────────────────────────────────────╢
║  Temperature    │ 😊 72°F                 ║
║  Condition      │ ⛅ Partly Cloudy        ║
║  Wind           │ 💨 10 mph SW            ║
║  Humidity       │ 💧 65%                  ║
╟───────────────────────────────────────────╢
║ Partly cloudy with a slight chance of    ║
║ showers this afternoon. Highs in the     ║
║ low 70s.                                 ║
╚═══════════════════════════════════════════╝

7-Day Forecast

╔═════════════════════════════════════════════════════╗
║                 📅  7-DAY FORECAST                   ║
╠═════════════════════════════════════════════════════╣
║                   Denver, CO                        ║
╟─────────────────────────────────────────────────────╢
║  Today        │ 🌡️ 85°F   │ ☀️ Sunny                ║
║  ────────────┼──────────┼──────────────────────────║
║  Tonight     │ ❄️ 58°F   │ ⛅ Partly Cloudy        ║
║  ────────────┼──────────┼──────────────────────────║
║  Tuesday     │ 🌡️ 82°F   │ ⛅ Mostly Sunny         ║
║  ────────────┼──────────┼──────────────────────────║
║  Tue Night   │ ❄️ 55°F   │ ☁️ Cloudy               ║
╚═════════════════════════════════════════════════════╝

Hourly Forecast

╔═════════════════════════════════════════════════════╗
║                🕐  HOURLY FORECAST                   ║
╠═════════════════════════════════════════════════════╣
║                   Miami, FL                         ║
╟─────────────────────────────────────────────────────╢
║   Time     │  Temp   │  Condition                   ║
║  ─────────┼─────────┼──────────────────────────────║
║   2:00 PM │ 🥵 88°F │ ⛅ Partly Cloudy             ║
║   3:00 PM │ 🥵 89°F │ ☀️ Sunny                     ║
║   4:00 PM │ 🌡️ 87°F │ ⛅ Partly Cloudy             ║
║   5:00 PM │ 🌡️ 84°F │ 🌧️ Chance Showers           ║
╚═════════════════════════════════════════════════════╝

Weather Alerts

╔══════════════════════════════════════════════════════════╗
║                   ⚠️  WEATHER ALERTS                      ║
╠══════════════════════════════════════════════════════════╣
║                    Miami, FL                             ║
╟──────────────────────────────────────────────────────────╢
║  🟠 Heat Advisory                                        ║
║     Severity: Moderate | Urgency: Expected               ║
║     Heat index values up to 110 expected through         ║
║     Friday evening.                                      ║
╚══════════════════════════════════════════════════════════╝