Skip to content

A module for MagicMirror that displays moonrise, moonset, and an image of the moon using AstronomyAPI!

License

Notifications You must be signed in to change notification settings

EnderFlop/MMM-Moon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMM-Moon

Display a picture of the current moon phase along with moonrise and moonset times on your MagicMirror²!

How it works

Add the module to your MagicMirror² like any other module, then add the "lat", "lon", and "timezone" parameters to your configuration file! The app calls the AstronomyAPI and gets an image with your parameters, then throws it onto your mirror!

Screenshot

Screenshot

Preconditions

  • MagicMirror² instance

Installation

Just clone the module into your MagicMirror’s modules folder:

git clone https://github.com/EnderFlop/MMM-Moon

Configuration

Option Description
lat The latitude of your location
Type: number
Example: 20.545
Default value: 41.657
lon The longitude of your location
Type: number
Example: -67.420
Default value: 91.534
timezone Your timezone in TZ database format
Type: string
Example: Europe/Paris
Default value: America/Chicago
Note: You can find a list of all TZ timezones here.

Here is an example for an entry in config.js:

    {
      module: "MMM-Moon",
      position: "top_left",
      config: {
        lat: 20.545,
        lon: -67.420,
        timezone: "Europe/Paris"
      }
    },

Updating

Updating is as easy as navigating to the module’s folder, pull the latest version from GitHub.

git pull

About

A module for MagicMirror that displays moonrise, moonset, and an image of the moon using AstronomyAPI!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published