solarflare

Solar Flare

A Swift terminal application that displays current solar activity and space weather alerts using NOAA’s Space Weather Prediction Center API.

Install

curl -sSL http://solarflare.blaze.design/install.sh | bash

Works on macOS and Linux.

Usage

# Display current solar conditions (default)
solarflare

# Display active space weather alerts
solarflare alerts

# Display solar activity forecast
solarflare forecast

# Display active sunspot regions
solarflare sunspots

# Display aurora visibility forecast
solarflare aurora

Example Output

Current Conditions

╔═════════════════════════════════════════╗
║        CURRENT SOLAR CONDITIONS         ║
╠═════════════════════════════════════════╣
║ X-Ray Flux      │ 🟢 Normal (B7.7)       ║
║ Geomag Activity │ 🟡 Active (Kp=4)       ║
║ Solar Wind      │ 🟡 593 km/s            ║
║ Radio Blackout  │ 🟢 None                ║
║ Updated         │ 3 minutes ago         ║
╚═════════════════════════════════════════╝

Alerts

╔═══════════════════════════════════════════════════════╗
║              ACTIVE SPACE WEATHER ALERTS              ║
╠═══════════════════════════════════════════════════════╣
║ ⚡ Geomagnetic Storm Watch                            ║
║ Severity: 🟠 Strong (G3)                              ║
║ Issued: 2025-01-29 14:30 UTC                          ║
║ Summary: CME expected to arrive Jan 30...             ║
╟───────────────────────────────────────────────────────╢
║ 📡 Radio Blackout                                     ║
║ Severity: 🟡 Moderate (R2)                            ║
║ Issued: 2025-01-29 16:45 UTC                          ║
║ Summary: X1.5 flare from Region 3576...               ║
╚═══════════════════════════════════════════════════════╝

Forecast

╔═══════════════════════════════════════════════════════╗
║                SOLAR ACTIVITY FORECAST                ║
╠═══════════════════════════════════════════════════════╣
║ ☀️  Flare Probabilities (Next 24h)                     ║
║                                                       ║
║   C-class:  🔴 80%                                     ║
║   M-class:  🟡 15%                                     ║
║   X-class:  🟢 5%                                      ║
╟───────────────────────────────────────────────────────╢
║ 📅 3-Day Outlook                                       ║
║                                                       ║
║          Day 1    Day 2    Day 3                      ║
║   C:      80%      75%      75%                       ║
║   M:      15%      10%      10%                       ║
║   X:       5%       1%       1%                       ║
╟───────────────────────────────────────────────────────╢
║ ⚡ Geomagnetic Forecast (Kp Index)                     ║
║                                                       ║
║   Jan 31 00:00 UTC  🟢 Kp=3 (Quiet)                    ║
║   Jan 31 03:00 UTC  🟢 Kp=3 (Quiet)                    ║
║   Jan 31 06:00 UTC  🟢 Kp=2 (Quiet)                    ║
║   Jan 31 09:00 UTC  🟢 Kp=2 (Quiet)                    ║
╚═══════════════════════════════════════════════════════╝

Sunspots

╔═══════════════════════════════════════════════════════╗
║                ACTIVE SUNSPOT REGIONS                 ║
╠═══════════════════════════════════════════════════════╣
║ 🟡 Region 4057                                         ║
║   Location: S13W34  Spots: 8  Mag: B                  ║
║   Flare Prob: M=10% X=1%                              ║
╟───────────────────────────────────────────────────────╢
║ 🟢 Region 4053                                         ║
║   Location: N18W82  Spots: 3  Mag: B                  ║
║   Flare Prob: M=1% X=1%                               ║
╟───────────────────────────────────────────────────────╢
║ 🟢 Region 4059                                         ║
║   Location: N18E15  Spots: 2  Mag: A                  ║
║   Flare Prob: M=1% X=1%                               ║
╚═══════════════════════════════════════════════════════╝

Aurora

╔═════════════════════════════════════════════╗
║               AURORA FORECAST               ║
╠═════════════════════════════════════════════╣
║ 🌌 Activity Level                            ║
║   🟠 High (intensity: 37)                    ║
║                                             ║
║ 🌍 Visibility Range                          ║
║   Northern: 52°N and above                  ║
║   Southern: 62°S and below                  ║
║                                             ║
║ 📍 Viewable From                             ║
║   🇨🇦 Canada, 🇮🇸 Iceland                       ║
║   🇳🇴 Scandinavia                             ║
║                                             ║
║ Updated: 5 minutes ago                      ║
╚═════════════════════════════════════════════╝

Data Source

NOAA Space Weather Prediction Center