Skip to content

Fetch real Kp and A-index values#78

Merged
skyelaird merged 1 commit intomainfrom
claude/fetch-kp-aindex-values-01HujqUrtNoorjpJd9xU3pyY
Nov 15, 2025
Merged

Fetch real Kp and A-index values#78
skyelaird merged 1 commit intomainfrom
claude/fetch-kp-aindex-values-01HujqUrtNoorjpJd9xU3pyY

Conversation

@skyelaird
Copy link
Copy Markdown
Owner

Implement real-time fetching of solar-terrestrial indices from NOAA Space Weather Prediction Center APIs instead of using hardcoded defaults.

Changes:

Benefits:

  • More accurate predictions using current space weather conditions
  • No manual parameter updates needed
  • Graceful degradation if APIs are unavailable
  • Better visibility into data sources

Implement real-time fetching of solar-terrestrial indices from NOAA Space Weather Prediction Center APIs instead of using hardcoded defaults.

Changes:
- Update fetch_solar_conditions() to fetch live data from NOAA SWPC JSON APIs
  - SFI: https://services.swpc.noaa.gov/json/f107_cm_flux.json
  - SSN: https://services.swpc.noaa.gov/json/solar-cycle/observed-solar-cycle-indices.json
  - Kp: https://services.swpc.noaa.gov/json/planetary_k_index_1m.json
  - A-index: https://services.swpc.noaa.gov/json/predicted_fredericksburg_a_index.json
- Each index is fetched independently with graceful fallback to defaults
- Add 'source' field to track whether data is live or default
- Update Dashboard/README.md with live fetching information
- Update wiki/Dashboard-Guide.md with data sources and troubleshooting
- Update wiki/FAQ.md to reflect auto-fetching behavior

Benefits:
- More accurate predictions using current space weather conditions
- No manual parameter updates needed
- Graceful degradation if APIs are unavailable
- Better visibility into data sources
@skyelaird skyelaird merged commit e393df3 into main Nov 15, 2025
skyelaird pushed a commit that referenced this pull request Nov 15, 2025
This commit updates project documentation to reflect recent enhancements:

Changes:
- Update NEXT_STEPS.md: Current branch, date (2025-11-15), and status
- Document space weather features: PRs #78 and #79 (NOAA SWPC + multi-source fallback)
- Update README.md: Enhanced dashboard feature description for live space weather data
- Add MULTI_SOURCE_DATA.md to key resources

Documentation maintenance:
- Following DOCUMENTATION_CHECKLIST.md workflow
- Ensuring docs stay current to avoid context loss
- All documentation now reflects current state as of 2025-11-15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants