Code Monkey home page Code Monkey logo

goes_background's Introduction

goes_background

Set the Windows 10 lock screen to a live* image of Earth from the GOES satellites.

Thanks to NOAA and NASA for providing us with these amazing images! The images show (approximated) true color on the day side of the planet and IR imagery on the night side. You can learn about how these images are created here.

WARNING: USE AT YOUR OWN RISK! I have not tested this code thoroughly, and I can't promise that you won't bork your system using it. In particular, this code uses PIL to open a (untrusted) image from the web; PIL has had many security vulnerabilities in the past (examples).

*It seems the images are 30~40 minutes old by the time they make it from the satellite, though NOAA's servers, to my computer.

Image of Earth from a GOES satellite

Prerequisites

You must have python 3 installed in Windows 10. You can install python via the Windows Store.

This code is meant to work with a 4k display; the lock screen image is saved with a size of 3840x2160 pixels. It has not been tested with other display resolutions.

Setup

Install requirements

Run in PowerShell or command line, from the repo's top directory:

pip install -r requirements.txt

Test the python script

Try running the following in PowerShell or command line:

python set_lock_screen.py

It should run without errors. Lock your computer, you should see an image of Earth on a black background with a NOAA logo at the bottom as your lock screen.

Schedule the image update task

Run schedule_task.bat in PowerShell or command line. It should print a message starting with SUCCESS:.

goes_background's People

Contributors

mvernacc avatar

Stargazers

JP Johnston ME CSWP avatar Gitago avatar Peter Sharpe avatar

Watchers

James Cloos avatar  avatar

Forkers

steidd

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.