Giter VIP home page Giter VIP logo

mmm-earth's Introduction

MMM-EARTH

A MagicMirror module to display real time pictures of the Earth as it rotates. The sunlit side!

How we look - from 1,000,000 miles away!

On July 5th, 2016, the moon passed between DSCOVR and the Earth. EPIC snapped these images over a period of about 4 hours. In this set, the far side of the moon, which is never seen from Earth, passes by. The DSCOVR satellite is, at times, 1 million miles away, more than 4 times further away than the moon itself.

EDIT! On August 21, 2017, MMM-EARTH captured a unique perspective of the Total Solar Eclipse!

How you see it

NASA's Earth Polychromatic Imaging Camera (EPIC), aboard NOAA's DSCOVR satellite, provides daily, full disc imagery of the Earth and captures unique perspectives of certain astronomical events, such as lunar transits. (Seen above) EPIC uses a 2048x2048 pixel CCD detector coupled to a 30-cm aperture Cassegrain telescope. The DSCOVR satellite was launched by SpaceX on a Falcon 9 two-stage rocket on February 11, 2015 from Cape Canaveral.

Hardware

  • Works nicely on a Raspberry Pi 3 with default settings (after caching images for a few seconds).
  • Works best on a motherboard that is more robust than a Raspberry Pi 3. Results shown above.

Info

  • No API key is necessary but these limits apply.
  • 50 requests per IP address per day.

Installation of module and dependencies

  • git clone https://github.com/mykle1/MMM-EARTH.git into ~/MagicMirror/modules directory.
  • npm install in your ~/MagicMirror/modules/MMM-EARTH directory.

Add to Config.js

{
    module: "MMM-EARTH",
    position: "bottom_center",
    config: {
        mode: "Natural",
        rotateInterval: 15000,
        MaxWidth: "50%",
        MaxHeight: "50%",
    }
},

Config Options

Option Default Description
mode Natural Natural, Enhanced, Lunar, naturalThumb, enhancedThumb.
updateInterval 30*60*1000 Every 30 minutes = 48. DO NOT exceed 50 per day.
animationSpeed 3000 The speed at which each new image fades in and out.
rotateInterval 15000 The time between each new image. (Rotation)
initialLoadDelay 2500 Module load delay in ms
retryDelay 2500 Delay to retry fetching data.
useHeader false Must be set to true if you want a header
header "Your Header" Add header between the "" if desired.
MaxWidth "50%" Choose width of image. Should be the same as MaxHeight.
MaxHeight "50%" Choose height of image. Should be the same as MaxWidth.

This module would not be possible without the unfailing patience, generosity and kindness of:

cowboysdude (Module Developer Extraordinaire & Tutor)

Consultations and additions by:

Strawberry 3.141 (Super Genius).

Credit: NASA's Earth Polychromatic Imaging Camera (EPIC) team.

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.