Calculates and display the rise and set times of the planets for MagicMirror².
This module is powered with Don Cross's javascript library astronomy.js.
Just clone the module into your modules folder of your MagicMirror²:
cd ~/MagicMirror/modules
git clone https://github.com/croxis/planetrise
To use this module, add it to the modules array in the config/config.js
file:
{
module: "planetrise",
position: "top_right", // This can be any of the regions.
header: "Planet Rise",
config: { // Place the latitude and longitude of your mirror
latitude: 45.5,
longitude: -122.38,
// A dictiory of the bodies and unicode character for the symbol
// This is the default and does not need to be listed.
// A full list of bodies can be seen on line 1359 in astronomy.js
// Note: Trying to find the rise time of Earth will crash the module
bodies: {
Sun: "☉",
Moon: "☽",
Mercury: "☿",
Venus: "♀",
Mars: "♂",
Jupiter: "♃",
Saturn: "♄"
}
}
},
Go to the module’s folder inside MagicMirror modules folder and pull the latest version from GitHub:
cd ~/MagicMirror/modules/planetrise
git pull