Skip to content

Macintoshdan/SpaceX-Launch-Tracker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpaceX-Launch-Tracker

Install

Install PIL library:

python3 -m pip install Pillow

Also, you need to enable SPI in your raspi-config:

sudo raspi-config

Go to "Interface Options" and enable SPI.

Thats it! Now you can run the program:

python3 main.py

Note:

This Program was designed for the Waveshare 2.13 Inch E-Paper Display (Red/Black/White)! You can buy it here.

You can find a tutorial here

Description

This code uses the Pillow library to create the image which will be shown on the display.

The Display show all important informations about the next launch like these:

  • Name of the next rocket (and the rocket after that)
  • If it lands
  • If it was reused
  • how often it was reused
  • when the rocket will launch
  • The time the display refreshed itself
  • The SpaceX logo works as a "Progress Bar" (Left side of X=Last launch, Right side= next launch, edge between red/black = current time)

Image

Image

I am still learning, if you see any errors or have a way to code it better, please contact me! :)

Want to make this a service?

Run the commands:

touch spacex.service

This creates the file.

sudo nano spacex.service

paste the following:

[Unit]
Description=SpaceX Tracker
After=network.target

[Service]
ExecStart=/usr/bin/python3 /home/pi/spacex/main.py & #MAKE SURE TO UPDATE PATH!
Restart=always

[Install]
WantedBy=multi-user.target

Now that we have the service, let's copy it to systemd

sudo cp spacex.service /etc/systemd/system/

reload systemctl

sudo systemctl daemon-reload
sudo systemctl enable spacex.service
sudo systemctl start spacex.service
sudo cp spacex.service /etc/systemd/system/

About

Attempt to make it work with V4 display.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%