Tracking the International Space Station with Ubidots

Are you a space enthusiast and dream to reach the stars one day? This quick and simple project might just be your first step to getting there. Track the International Space Station with Ubidots and receive an alert every time the station passes by.

The International Space Station (ISS) is a low orbit, manned satellite that has been conducting experiments and collecting space data since its initial launch in November 1998. Housing 6 crew members at a time, this craft is constantly orbiting the earth and relaying millions of data points each day. Data that is used in space, chemical, biological, and phycological research to benefit all of us still occupying Earth.

Last year, IT leaders Texas Instrument and NASA joined up to increase the awareness and activity of middle graders and high school students to explore science, technology, engineering and mathematics (STEM) and engage them to problem solving, reason, and model to practices the core STEM curriculum that professionals use every day to support the International Space Station.

As supporters of STEM and all things IT, Ubidots and our engineers wanted to join in on the fun and find a way to utilize our IoT software with some of the cool STEM projects happening in classrooms around the world. And, since STEM, the International Space Station, and Ubidots are all global organizations, what better way to work with the ISS than being able to track it and notify your whenever it is passing overhead.

Using the Open Notify made possible by Nathan Bergey you can easily send updates of the ISS position in real-time to Ubidots. By reading its live data from Open Notify we are able to measure the distance between the ISS and Boston (when I author this blog), and then post the whole data to Ubidots for your viewing pleasure.

To do this, enter and update source code below with your Raspberry Pi’s text editor. Be sure to update your credentials with your own API key and variable id, plus changing the coordinates to match your location. To learn how to send a context to the Ubidots API, check out our documentation.

Note: This script is just tracking the ISS position and using a standard formula to calculate its distance to a specific point in earth. It doesn’t reflect real sighting opportunities as this depends on more on weather and time variables than simply proximity (i.e. location relative to you).

Once the data is being sent to Ubidots, you can schedule an alert to trigger an event whenever the station is passing nearby. Here we built a notification that whenever the ISS is less than 300m away from Boston, I will receive an email.

Project Notice: This script is tracking the ISS position and using a standard formula to calculate its distance to a specific point on earth. This will not reflect real sighting opportunities as this depends on more than simply proximity (i.e. time of the day and weather).