A script that fetches data using NASA DONKI API, parses data into clean SQL, allows detecting anomalies and logs them.
- Currently it fetches 3 NASA DONKI API's: Solar Flare (FLR), Coronal Mass Ejection (CME) and Geomagnetic Storm (GST).
- Parses data and stores each of them under it's own table in a database.
- Can be set to detect when specific readings are alarming.
- Currently checks and warns user when:
-- FLR class is X or M5 -> M9
-- GST Kpindex exceeds 7
- git clone https://github.com/MuhammadElsaadany/DONKI-Fetcher
- Need Python (I developed it using Python 3.11.9) (Could have issues with dependencies in newer versions)
- Write in the terminal: pip install -r requirements.txt
- Need a .env file (inside the project folder!) that contains NASA_API_KEY=your api from here
- Run the script by writing: python Main.py
- Open Task Scheduler (search it in Windows start menu)
- Create a new Basic Task
- Set the trigger daily or at whatever time you want
- Set the action "Start a program"
- Program: path to the Python executable #NOTE: write this in terminal to find path to Python: where python
- Arguments: path to the script #NOTE: spaces in folders names causes issues, make sure the path has no spaces!
- Start in: the project folder path #NOTE: this is how Python finds your .env, .db and your log files