Git Product home page Git Product logo

epic's Introduction

DSCOVR:EPIC Image Viewer

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.

Running It

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.

Raspberry Pi Setup

I'll assume you've already followed Pimoroni's instructions for getting the Hyperpixel Round screen going.

  1. Use the terminal or log in as pi via ssh.
  2. Create the directory mkdir ~pi/code/epic/
  3. Go into the directory cd ~pi/code/epic/
  4. Copy the code from this repository in
    • git clone https://github.com/MattGrayYes/epic.git .
  5. make sure start-epic.sh is executable (chmod +x start-epic.sh)
  6. Copy the autostart file cp epic.desktop ~pi/.config/autostart/
  7. Install any python requirements pip3 install -r requirements.txt
  8. 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.
  9. If the test works, kill it with CTRL+C
  10. Reboot and hope it runs automatically sudo reboot

epic's People

Contributors

mattgrayyes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

epic's Issues

`first_run` never set False

In epic.py first_run is set to True at beginning and then never set to False so the api fetch is always done every 20 seconds not every 120 minutes.

Autorun halts and goes back to desktop after a few minutes

Bullseye with Matt's setup. I am a Linux noob and trying to build this for my daughter (post-grad student at MIT) for a Christmas present. I have tried various ways to autorun the .sh script. I tried the exact way that the OP did, I did the system.d method too. I can't seem to get it to keep running.

Setup issues

Hey, I'm setting up an epic viewer, and thought I'd list some issues I ran into (and hopefully some solutions to those issues which I'll add on the thread).

brightness.sh calls a command line utility called gpio which doesn't exist on my pi with the latest raspbian. The instructions don't list where to get that - the wiringpi project seems to be the one, but that also says it's bundled with raspbian and seems not to be. Maybe these calls could be replaced by calls to raspi-gpio, which does seem to be included.

The requirements.txt specifies pygame 1.9.4.post1, a version which seems to no longer be in the repositories. I tried 2.3.0, the current latest version, which is refusing to load the loading.jpg file with the error "File is not a Windows BMP file" - which is unexpected. I also tried to use 1.9.6, it ends up saying that there's no matching distribution found.

I'll keep digging in and post what I find.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.