This script looks for new images from the Earth Polychromatic Imaging Camera on NASA's Deep Space Climate Observatory satellite, and displays them on screen.
This is designed for a 2.1" Hyperpixel Round Touch display from Pimoroni, with a Raspberry Pi Zero W.
It displays each image for 20s then moves to the next one.
It currently checks the EPIC "Blue Marble" API for new images every 120 mins, but I think they only upload new images once a day, so it probably doesn't need to be this often.
This is programmed using Python3 and PyGame.
I've been fiddling with this for over a year now, so I've never followed these instructions in order. They're more of a guessed guideline.
I'll assume you've already followed Pimoroni's instructions for getting the Hyperpixel Round screen going.
- Use the terminal or log in as pi via ssh.
- Create the directory
mkdir ~pi/code/epic/
- Go into the directory
cd ~pi/code/epic/
- Copy the code from this repository in
git clone https://github.com/MattGrayYes/epic.git .
- make sure
start-epic.sh
is executable (chmod +x start-epic.sh
) - Copy the autostart file
cp epic.desktop ~pi/.config/autostart/
- Install any python requirements
pip3 install -r requirements.txt
- Test you can run it
./start-epic.sh
- If that doesn't work, test you can run it directly
python3 -u epic.py
- If it still doesn't work check the output for errors, and google them.
- If that doesn't work, test you can run it directly
- If the test works, kill it with CTRL+C
- Reboot and hope it runs automatically
sudo reboot