A MagicMirror module to show local sunrise/sunset/noon times
This is an extension to the MagicMirror project, allowing the display of local sunrise, sunset and solar noon times.
Run these commands at the root of your magic mirror install.
cd modules
git clone https://github.com/prydonian/MMM-Sunrise-Sunset
cd MagicMirror/modules/MMM-Sunrise-Sunset
git pull
To use this module, add the following configuration block to the modules array in the config/config.js
file.
Works best in the bottom_bar position when the layout is set to "inline".
var config = {
modules: [
{
module: 'MMM-Sunrise-Sunset',
position: "bottom_bar",
config: {
// See below for configurable options
}
}
]
}
Option | Description |
---|---|
latitude * |
Your local latitude. e.g.: "21.567" |
longitude * |
Your local longitude. e.g.: "12.789" |
apiKey * |
Sign up at https://ipgeolocation.io/signup.html for a free API key |
layout * |
"inline" or "list" |