Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.53 KB

README.md

File metadata and controls

41 lines (28 loc) · 1.53 KB

MMM-nasaastropic

Magic Mirror Module displaying NASA's astronomy picture of the day

Prerequisites

  • tested only on MagicMirror v2.0.0

Download and Installation

To use this module, clone this repository to your modules folder of your MagicMirror: https://github.com/nebulx29/MMM-nasaastropic

Goto MMM-nasaastropic module directory and run npm install

Configuration

The module needs the default configuration block in your config.js to work.

                {
                        module: 'MMM-nasaastropic',
                        position: 'top_left',
                        config: {
                                updateInterval: 6*60*60*1000,
                                animationSpeed: 0,
                                header: 'NASA Astronomy Picture',
                                maxlongedge: 300
                        }
                },

The following properties can be configured:

Option Description Values Default
updateInterval The update interval. Determines the refresh rate in ms at which sensor is read.
Example: updateInterval: 10000
int 6*60*60*1000ms = 6 hours
animationSpeed Speed of animation when updates occur.
Example: animationSpeed: 0
int 0
header The name that should be displayed at the top of the module
Example: header: 'NASA Astronomy Picture'
String 'NASA Astronomy Picture'
maxlongedge This is a number of pixels the long edge of the picture should have (CSS max-height/max-width attributes).
integer '300'