GithubHelp home page GithubHelp logo

icydresden / oh-my-earth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ujnzxw/oh-my-earth

0.0 2.0 0.0 28 KB

Make a real time earth picture as your wallpaper

License: MIT License

Python 98.81% Shell 1.19%

oh-my-earth's Introduction

oh-my-earth

Put near-realtime picture of Earth as your Wallpaper

oh-my-earth differs in that:

  • It doesn't install python3 and extra python packages, python2.7 is enough and is default version for most OS
  • The installation procedure is simplify
  • More easier to customization by yourself

Example

Picture 1. oh-my-earth Wallpaper Example 3 Picture 4. oh-my-earth Wallpaper Example 4 Picture 2. oh-my-earth Wallpaper Example 2

##Supported Desktop Environments

Tested

  • Unity 7
  • Mate 1.8.1
  • Pantheon
  • LXDE
  • OS X

Not Tested

  • GNOME 3
  • KDE

Configuration

You can configure the level of detail, by modifying the script. You can set the global variable level to 4, 8, 16, or 20 to increase the quality (and thus the file size as well). Please keep in mind that it will also take more time to download the tiles.

xfce4

On xfce4, you can set which displays you want to change the background of using the xfce displays variable. If you get an error and you're not sure which display to use, you can find your display in the output of:

xfconf-query --channel xfce4-desktop --list | grep last-image

Nitrogen

If you use nitrogen for setting your wallpaper, you have to enter this in your ~/.config/nitrogen/bg-saved.cfg.

[:0.0]
file=/home/USERNAME/.cache/ujnzxw/latest.png
mode=4
bgcolor=#000000

Installation

Pre-install

Please install PIL package first

Others:

sudo easy_install image sudo easy_install pytz sudo easy_install tzlocal sudo easy_install appdirs

cd ~  <OR OTHER PATH YOU WANT>
git clone https://github.com/ujnzxw/oh-my-earth.git

# Configure
cd ~/oh-my-earth/
vi config.py

# Install
sudo bash install.sh

# Test whether it's working
oh-my-earth

# Set oh-my-earth to be called periodically

- Set up a cronjob
crontab -e

- Add the line:
 */10 * * * * <INSTALLATION_PATH>

Uninstallation

# Remove the cronjob
crontab -e
# Remove the line
*/10 * * * * <INSTALLATION_PATH>

# Remove the data directory
 rm -rf ~/oh-my-earth  <OR OTHER PATH YOU INSTALLED>

# Remove the soft link
rm -rf /usr/local/bin/oh-my-earth

Reference

boramalper/himawaripy

PIL Download

PIL HandBook


MIT License © 2017 Steven ZHAO

oh-my-earth's People

Watchers

James Cloos avatar IcyDresden 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.