Skip to content

Commit 25da293

Browse files
committed
chore: remove unused NOAA-based KP check scripts
- Deleted check_kp.sh (NOAA Ovation single-point check) - Deleted check_kp_area.sh (NOAA Ovation multi-point check) - Only check_kp_multi.sh remains (now YR.no-only)
1 parent b80e2ab commit 25da293

6 files changed

Lines changed: 30 additions & 310 deletions

File tree

.github/workflows/post.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ jobs:
2828
id: kp_check
2929
if: steps.darkness.outcome == 'success'
3030
run: |
31-
OUTPUT=$(bash src/check_kp_multi.sh 59.959103 10.4592208 3 1.5)
31+
OUTPUT=$(bash src/check_kp_multi.sh 59.959103 10.4592208 3)
3232
echo "$OUTPUT"
3333
# Extract VALIDATED_KP from output and save to GITHUB_OUTPUT
3434
VALIDATED_KP=$(echo "$OUTPUT" | grep "VALIDATED_KP=" | cut -d'=' -f2)
3535
echo "validated_kp=$VALIDATED_KP" >> $GITHUB_OUTPUT
3636
continue-on-error: true
37-
# Check aurora activity from NOAA and YR.no sources (OR logic)
38-
# Exits early if both sources show no activity, saving processing time
37+
# Check aurora activity from YR.no API
38+
# Exits early if no activity detected, saving processing time
3939

4040
- name: Persist KP log data
4141
if: steps.darkness.outcome == 'success'

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ An automated bot that monitors webcams in the Lommedalen area for aurora boreali
55
## How It Works
66

77
1. **Darkness Gate** – Fetches sunrise/sunset & twilight boundaries; exits early if it isn't dark enough.
8-
2. **Kp Index Gate** – Checks current planetary Kp index from NOAA; exits if below threshold (default: 3).
8+
2. **Kp Index Gate** – Checks current planetary Kp index from YR.no; exits if below threshold (default: 3).
99
3. **Image Download** – Pulls current frames from configured public webcams.
1010
4. **Color Pre-filter** – Fast heuristic for aurora-like greens/purples to reduce AI calls.
1111
5. **AI Confirmation** – GPT‑4o Vision answers yes/no for aurora presence; handles resize & rate limits.
@@ -25,7 +25,7 @@ Defined per view in `webcam_locations.json`:
2525
## Features
2626

2727
- **Darkness Gate**: Skips processing entirely when twilight data indicates it's still light.
28-
- **Kp Index Gate**: Requires minimum planetary Kp index (default: 3) from NOAA to proceed.
28+
- **Kp Index Gate**: Requires minimum planetary Kp index (default: 3) from YR.no to proceed.
2929
- **Location Tracking**: Each post includes the view where aurora was detected.
3030
- **Fair Processing**: Shuffles webcam order to vary observation times.
3131
- **Color Pre-filtering**: Quick scan for aurora-like colors before AI check.
@@ -91,7 +91,7 @@ GitHub Actions currently runs every 30 minutes during typical dark hours. Becaus
9191
## Pipeline Overview
9292

9393
1. Darkness check (sunrise-sunset API for twilight boundaries)
94-
2. Kp index check (NOAA real-time solar wind data; minimum 3.0)
94+
2. Kp index check (YR.no aurora forecast; minimum 3.0)
9595
3. Download webcam images
9696
4. Color heuristic pre-filter (green/purple detection)
9797
5. AI verification (GPT-4o Vision yes/no) with automatic resize & retry
@@ -110,7 +110,7 @@ The bot looks for:
110110

111111
**"Not dark enough"** – Expected during daylight/twilight; bot exits quickly.
112112
**"Kp below threshold"** – Planetary Kp index is too low for aurora activity; bot exits to save resources.
113-
**"Kp index unavailable"**NOAA API temporarily down; bot proceeds anyway (fail-open).
113+
**"Kp index unavailable"**YR.no API temporarily down; bot proceeds anyway (fail-open).
114114
**"AI response: no"** – Color heuristic can flag vegetation or lights; AI filter reduces false positives.
115115
**"Rate limit (429)"** – Azure quota exceeded; bot skips more AI calls until next run.
116116
**"413 payload too large"** – Image auto-compressed & retried.
@@ -145,7 +145,7 @@ Trigger a manual run:
145145
- Sylling: yr.no public webcams
146146
## Resources
147147

148-
- [NOAA OVATION Aurora Forecast](https://services.swpc.noaa.gov/json/ovation_aurora_latest.json) - Real-time data used by the bot
148+
- [YR.no Aurora Forecast API](https://www.yr.no/en/content/1-83651/the-api-now-supports-an-auroraforecast-endpoint) - Real-time aurora data used by the bot
149149
- [Space Weather Prediction Center](https://www.swpc.noaa.gov/) - Official NOAA space weather site
150150
- [Aurora forecast for Norway](https://www.aurora-service.eu/aurora-forecast/) - Additional forecast source
151151
- [Bluesky API Documentation](https://docs.bsky.app/) - Bluesky API reference

src/check_kp.sh

Lines changed: 0 additions & 120 deletions
This file was deleted.

src/check_kp_area.sh

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)