-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
## MMM-SunRiseSet | ||
|
||
More information than you ever wanted to know about the rising and setting of the sun. | ||
|
||
## The information | ||
|
||
* Sunrise: The actual time the rising sun breaches the horizon. | ||
* Sunset: The actual time the sun falls completely below the horizon. | ||
* Solar Noon: The actual time when the sun is at its highest altitude in the sky. | ||
* Day Length: The length of time between sunrise and sunset. | ||
* Civil Twilight: The geometric center of the Sun is at most 6 degrees below the horizon. | ||
* Nautical Twilight: The geometric center of the Sun is between 6 and 12 degrees below the horizon. | ||
* Astronomical Twilight: The geometric center of the Sun is between 12 and 18 degrees below the horizon. | ||
|
||
## Examples with static graph | ||
|
||
* MMM-Lunartic in top_left region | ||
|
||
 | ||
|
||
* MMM-SunRiseSet in bottom_left region | ||
|
||
## Example animation instead of static graph | ||
|
||
 | ||
|
||
* Obviously, the shadow will move much more slowly | ||
|
||
Annotated .css file included for aligning and coloring text and header. | ||
|
||
## Installation | ||
|
||
* `git clone https://github.com/mykle1/MMM-SunRiseSet` into the `~/MagicMirror/modules` directory. | ||
|
||
* No API key needed! No dependencies needed! No kidding! | ||
|
||
|
||
## Config.js entry and options | ||
|
||
{ | ||
disabled: false, | ||
module: "MMM-SunRiseSet", | ||
position: "bottom_left", | ||
config: { | ||
lat: "40.574783", // Your latitude (for the data) | ||
lng: "-74.112450", // Your longitude (for the data) | ||
image: "world", // world (animation) or static (graph) | ||
useHeader: false, // true if you want a header | ||
header: "Header", // useHeader must be true | ||
maxWidth: "300px", | ||
} | ||
}, | ||
|
||
|
||
## Thanks go to SpaceCowboysDude for UTC and moment advice | ||
## Thanks also to Sean and Strawberry for updateDOM guidance |