Giter Site home page Giter Site 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.

mmm-earth's People

Contributors

mykle1 avatar petervanco 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mmm-earth's Issues

Module keeps on loading with "Hello Mother Earth"

I use mode "Natural" and varied on config.js, used the simplest version but behavior is always the same, no EARTH. This is since about two weeks (I can't remember the exact day).

The problems showed both with and without updating. Also I did a fresh reinstall of the modules, both on the mirror and on my windows development machine. All the same behavior.

The development tools in the browser show:

MMM-EARTH.js:90 Uncaught (in promise) TypeError: Cannot read property 'slice' of null
at Class.getDom (MMM-EARTH.js:90)
at main.js:110
at new Promise ()
at updateDom (main.js:109)
at Object.updateDom (main.js:514)
at Class.updateDom (module.js:358)
at rotateInterval.setInterval (MMM-EARTH.js:158)

continuously loading

MMM-EARTH after the last update (today) is continuously loading. I tried uninstall and reinstall but I have the same results.
pm2 logs:

0|mm       | Connecting socket for: MMM-Cocktails
0|mm       | Starting node_helper for: MMM-Cocktails
0|mm       | Connecting socket for: MMM-History
0|mm       | Starting module: MMM-History
0|mm       | Connecting socket for: newsfeed
0|mm       | Starting module: newsfeed
0|mm       | Sockets connected & modules started ...
0|mm       | Launching application.
0|mm       | https://epic.gsfc.nasa.gov/api/enhanced
0|mm       | Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/47/Greece_Holidays.ics - Interval: 300000
0|mm       | ds
0|mm       | 1549195255
0|mm       | Create new news fetcher for url: https://www.newsbeast.gr/greece/feed - Interval: 300000
0|mm       | Create new news fetcher for url: https://www.news.gr/home/article-useful/23946/rss-feed.html - Interval: 300000```

Failure to load MM

git clone this repo into modules directory, add supplied snippet from README.MD and MagicMirror won't initialize. Removed the snippet and restarted and MM works again. Not sure what's happening. Raspberry Pi 32 bit, armv71.

stuck in "hello mother earth"

I've same issue like in number 12.
Any ideas to check? Pay attention that I use the module from a remote server in cloud.

No image

Hello,

I have a problem : since about one week, there is no more image of the earth displayed by the screen.
Instead, there is a bar.
How can I fix that ?

Thank you !

Update

Hi ... The globe hasn't updated anymore for a while ... What happened?

New Module: EarthAndMoon

Great work on your module; I love it. But I also love the Moon Phases Module. So I came up with an idea of how to combine them. Earth and Moon toggles between earth and moon at sunrise and sunset. Please give it a try and let me know what you think!

There are sample config values in the code.

Joel

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.