Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mykle1/MMM-SunRiseSet
More information than you ever wanted to know about the rising and setting of the sun.
https://github.com/mykle1/MMM-SunRiseSet
Last synced: 3 months ago
JSON representation
More information than you ever wanted to know about the rising and setting of the sun.
- Host: GitHub
- URL: https://github.com/mykle1/MMM-SunRiseSet
- Owner: mykle1
- License: mit
- Created: 2017-08-04T01:40:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-22T20:29:36.000Z (over 4 years ago)
- Last Synced: 2024-06-29T10:33:08.019Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 340 KB
- Stars: 16
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mmm - **MMM-SunRiseSet**
README
## 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
![](pix/1.JPG)
* MMM-SunRiseSet in bottom_left region
## Example animation instead of static graph
![](pix/1.gif), ![](pix/11.JPG)
* Obviously, day or night will move much more slowly## Or animated earth image
* Updates to show daylight approaching or night approaching![](pix/cc.JPG)
* Config option to show just animated world or map without the data
Annotated .css file included for aligning and coloring text.
css file also used to display as little or as much data as you like.## 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: "41.111111", // Your latitude (for the data)
lng: "-75.111111", // Your longitude (for the data)
image: "map", // "world" (animation), "map" (animation), "static" (graph)
imageOnly: "no", // no = all data, yes = only animated world or map
dayOrNight: "night", // "night" approaching, "day" approaching (imageOnly: must be "yes", image: must be "world")
timeFormat: "h:mm a", // Examples: "h:mm a" or "H:mm"
useHeader: false, // true if you want a header
header: "Header", // useHeader must be true
maxWidth: "515px",
}
},
## Thanks go to SpaceCowboysDude for UTC and moment advice
## Thanks also to Sean and Strawberry for updateDOM guidance