Giter Site home page Giter Site logo

dathbe / mmm-sunriseset2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mykle1/mmm-sunriseset

0.0 0.0 0.0 429 KB

More information than you ever wanted to know about the rising and setting of the sun.

License: MIT License

JavaScript 82.32% CSS 17.68%

mmm-sunriseset2's Introduction

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, day or night will move much more slowly

Or animated earth image

  • Updates to show daylight approaching or night approaching

  • 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

mmm-sunriseset2's People

Contributors

mykle1 avatar dathbe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.