Giter VIP home page Giter VIP logo

live-earth-desktop's Introduction

live-earth-desktop

UPDATE: GOES-East now supported instead of Himawari. Use https://github.com/jakiestfu/himawari.js for Himawari images instead of this. Something has changed about where the Himawari images are saved, and I don't want to spend time tracking it down when there's a perfectly great package already. You can use his script via launchctl the same way you can this one in order to get continually-updated images for your desktop. GOES-East is still supported in this package.

There's a satellite called Himawari-8 which is geostationary over approximately Papua New Guinea. The very excellent people who run this satellite have set up a live stream of the ultra-high-res images that it takes. They are gorgeous.

Similarly, there's another satellite called GOES-East. It's above South America at the equator, and its photos are just as amazing as the Himawari ones. Because the NOAA is excellent people too, they also have live images available.

Inspired by someone awesome on Reddit, and based on a script by celoyd, I built a script that downloads the latest photo. With a plist file for launchd on OS X, I can run this script every ten minutes and always have the latest image on my machine. And then by setting my OS X desktop to a slideshow of the images inside a folder, the latest Himawari-8 or GOES-East photo is always set as my desktop image.

Instructions

  1. Clone this repo
  2. pip install Pillow requests pytz tzlocal
  3. Pick whether you want images of Australia and Southeast Asia (Himawari) or the Americas (GOES-East).
  4. Change the paths set in tmp and out and os.system("rm ...") in himawari.py or goes-east.py and those in himawari.plist or goes-east.plist to paths inside this directory.
  5. Try the Python script by running python himawari.py or python goes-east.py just to make sure everything's kosher. It should download an image.
  6. ln -s <this-dir>/himawari.plist /Users/<you>/Library/LaunchAgents/ or ln -s <this-dir>/goes-east.plist /Users/<you>/Library/LaunchAgents/
  7. launchctl load -w /Users/<you>/Library/LaunchAgents/himawari.plist or launchctl /Users/<you>/Library/LaunchAgents/goes-east.plist to start it running every 10 minutes
  8. Go to OS X Preferences > Desktop and Screen Saver and set your desktop to rotate through the images contained in the images directory that you're writing these images to (whatever directory you made out point to).
  9. Enjoy!

live-earth-desktop's People

Contributors

willwhitney avatar lgeiger avatar mdtusz avatar scotthue avatar

Stargazers

Roman avatar

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.