ISS Tracking Project — Python

Get an Email alert when International Space Station (ISS) is above of us in the sky, at night — #PurePythonSeries — Episode #15

J3
Jungletronics
3 min readDec 15, 2022

--

iss_tracking_project:

Python International Space Station (ISS) Tracking project in Python. Dez, 2022. Based on: Angela Yu from London 100 Days of Code: The Complete Python Pro Bootcamp for 2023

International Space Station (ISS)

Project Description:

This app will email you based on the event that the International Space Station (ISS) is above of us in the sky, at night.

Can I track the ISS from my location?

Image result for this code will track the iss in the sky, comparing to your location and time. The space station can be seen from over 6,700 locations worldwide. Enter your location to find out when the space station will be flying overhead.

Is the ISS visible every night?

It can only be seen when it is dawn or dusk at your location. As such, it can range from one sighting opportunity a month to several a week, since it has to be both dark where you are, and the space station has to happen to be going overhead.

The code:

Resources:

JSON Viewer — Chrome Web Store: https://chrome.google.com/webstore/detail/json-viewer/gbmdgpbipfallnflgajpaliibnhdgobh

Latitude and Longitude Finder: https://www.latlong.net/

Sunset and sunrise times API: https://sunrise-sunset.org/api

International Space Station Current Location: http://open-notify.org/Open-Notify-API/ISS-Location-Now/

Location: Porto Velho Ro — Brazil Inspired in Angela Yu’s ISS Project: https://www.udemy.com/course/100-days-of-code/

How-to run this app on PyCharm 2022.3 (Community Edition):

# 0 — Open Pycharm, Clone this project by clicking Clone > VCS now, Git > Manage remotes… click + and paste: url: https://github.com/giljr/iss_tracking.git

#1 — Run -> Edit Configurations -> Set Project Interpreter (lasted version — mine is Python 3.10)

#2 — pip install requests (Terminal)

#3 — pip install yagmail (Terminal)

#4 — Go To Edit Configuration…Environment > Env. Variables and add two variable:

EMAIL=<your_email>@gmail.com;

EMAIL_PASS=<app_password>

#5 — Sign in with App Passwords by following this tutorial: (https://support.google.com/accounts/answer/185833)

How to use email : https://replit.com/@jaythree/sendgmailproject?v=1

#6 — run main (Shift+F10)

print("That's it! Thank you very much")That's it! Thank you very much

👉Github (iss_tracking)

Related Posts

00#Episode#PurePythonSeries — Lambda in Python — Python Lambda Desmistification

01#Episode#PurePythonSeries — Send Email in Python — Using Jupyter Notebook — How To Send Gmail In Python

02#Episode#PurePythonSeries — Automate Your Email With Python & Outlook — How To Create An Email Trigger System in Python

03#Episode#PurePythonSeries — Manipulating Files With Python — Manage Your Lovely Photos With Python!

04#Episode#PurePythonSeries — Pandas DataFrame Advanced — A Complete Notebook Review

05#Episode#PurePythonSeries — Is This Leap Year? Python Calendar — How To Calculate If The Year Is Leap Year and How Many Days Are In The Month

06#Episode#PurePythonSeries — List Comprehension In Python — Locked-in Secrets About List Comprehension

07#Episode#PurePythonSeries — Graphs — In Python — Extremely Simple Algorithms in Python

08#Episode#PurePythonSeries — Decorator in Python — How To Simplifying Your Code And Boost Your Function

12#Episode#PurePythonSeries — Advanced Python Technologies qrcode, Speech Recognition in Python, Google Speech Recognition #PurePythonSeries

13#Episode#PurePythonSeries — Advanced Python Technologies II— qFace Recognition w/ Jupyter Notebook & Ubuntu #PurePythonSeries

14#Episode#PurePythonSeries — Advanced Python Technologies III — Face Recognition w/ Colab #PurePythonSeries

15#Episode#PurePythonSeries —ISS Tracking Project — Get an Email alert when International Space Station (ISS) is above of us in the sky, at night #PurePythonSeries (this one)

@editor: j3 Date: Dez, 2022

--

--

J3
Jungletronics

Hi, Guys o/ I am J3! I am just a hobby-dev, playing around with Python, Django, Ruby, Rails, Lego, Arduino, Raspy, PIC, AI… Welcome! Join us!