This Python script tracks the International Space Station (ISS) using its API and sends an email notification when the ISS is overhead during nighttime.
- ISS Tracking: Utilizes the Open Notify API to track the current position of the ISS.
- Day/Night Detection: Determines if it's nighttime at your location using sunrise-sunset.org API.
- Email Notification: Sends an email notification when the ISS is overhead during nighttime.
- Python 3.x
- Requests library (
pip install requests
)
- Clone the repository or download the script.
- Install the Requests library if you haven't already:
pip install requests
. - Configure the script:
- Set your latitude (
MY_LAT
) and longitude (MY_LNG
) in the script to reflect your location. - Replace
EMAIL
,PASSWORD
, andEMAIL2
with your Gmail credentials and recipient email.
- Set your latitude (
- Ensure less secure apps access is enabled for your Gmail account if you're using Gmail for sending emails.
- Run the script:
python iss_tracker.py
. - The script will continuously monitor the ISS position.
- You will receive an email notification when the ISS is overhead during nighttime.
Contributions are welcome! Please feel free to submit issues or pull requests.