Monitor the upcoming outburst of the recurrent nova T Coronae Borealis by scraping its magnitude data from theskylive.com.
The script prints:
- The last recorded magnitude of the nova.
- The time elapsed in hours and minutes (H:mm) since the last measurement reported on the website.
- A little star indicator (✦) during the duration of the outburst event.
Lower magnitude means brighter star. T CrB will change from magnitude ~10 to ~2 during the event.
- Python 3.7 or higher.
-
Clone the repository:
git clone https://github.com/mrkvon/nova.git cd nova
-
Set up and activate the virtual environment:
python -m venv venv source venv/bin/activate # Use venv\Scripts\activate on Windows
-
Install the required packages:
pip install -r requirements.txt
-
Run the script:
python main.py
-
Deactivate the virtual environment when done:
deactivate
- Ensure that you have a stable internet connection as the script fetches data from theskylive.com.
- If you encounter any issues with dependencies, make sure you are using the correct Python version and that all required packages are installed.