A macOS menu bar app that monitors NOAA space weather data and alerts you when aurora borealis may be visible in Massachusetts.
- Run the app:
uv run python main.py - Click the menu bar icon → "Open Config"
- Configure your email settings (see Gmail setup below)
- Click "Test Email" to verify it works
| Icon | Meaning |
|---|---|
| 🟢 | Quiet (G0-G1) - No aurora expected |
| 🟡 | Moderate (G2) - Possible in far north |
| 🔴 | Alert! (G3+) - May be visible in MA |
| ⚪ | Error fetching data |
| ⚙️ | Setup required |
Gmail requires an "App Password" for SMTP access. Regular passwords won't work.
- Go to Google Account Security
- Under "Signing in to Google", click 2-Step Verification
- Follow the prompts to enable it (if not already enabled)
- Go to App Passwords
- You may need to sign in again
- At the bottom, click Select app → choose Mail
- Click Select device → choose Mac
- Click Generate
- You'll see a 16-character password (like
abcd efgh ijkl mnop) - Copy this password - you won't be able to see it again!
- Click the Aurora menu bar icon → Open Config
- Edit the email section:
email:
enabled: true
smtp_host: smtp.gmail.com
smtp_port: 587
username: your-email@gmail.com
password: abcdefghijklmnop # Paste your 16-char App Password (spaces optional)
to: your-email@gmail.com # Where to send alerts- Save the file
- Click Test Email to verify
"Username and Password not accepted"
- Make sure you're using an App Password, not your regular Google password
- App Passwords are exactly 16 characters
- 2-Step Verification must be enabled first
"Application-specific password required"
- You're using your regular password instead of an App Password
- Generate a new App Password following the steps above
Edit ~/.auroraapp/config.yaml:
# When to alert (G1=Minor, G2=Moderate, G3=Strong, G4=Severe, G5=Extreme)
threshold: G3
# How often to check NOAA (minutes)
poll_interval: 15
# Minimum hours between alerts (unless storm escalates)
alert_cooldown_hours: 6
# Email settings
email:
enabled: true
smtp_host: smtp.gmail.com
smtp_port: 587
username: you@gmail.com
password: your-app-password
to: you@gmail.com
# Desktop notifications
notifications:
enabled: true
sound: true # Play sound with notificationFor Massachusetts (latitude ~42°N), you typically need strong storms:
| Level | Kp Index | Visibility in MA |
|---|---|---|
| G1 | 5 | Very unlikely, even in dark skies |
| G2 | 6 | Possible on horizon with dark skies |
| G3 | 7 | Good chance with dark skies (recommended threshold) |
| G4 | 8 | Likely visible, worth the drive |
| G5 | 9 | Rare, definitely visible |
- System Settings → General → Login Items
- Click + and add the
run.shscript
Create ~/Library/LaunchAgents/com.auroraapp.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.auroraapp</string>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>/Users/YOUR_USERNAME/.auroraapp/run.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>Replace YOUR_USERNAME with your actual username, then:
launchctl load ~/Library/LaunchAgents/com.auroraapp.plist- Check your internet connection
- Click menu → View Logs for error details
- NOAA service may be temporarily down (try again later)
- System Settings → Notifications → Script Editor → Allow
- Verify
notifications.enabled: truein config
- Click "Test Email" to see if it works
- Check View Logs for error messages
- Verify Gmail App Password is correct (see setup above)
- NOAA Aurora Forecast - Real-time aurora map
- NOAA Space Weather - Full space weather dashboard
- Clear Dark Sky - Cloud cover forecasts