mmm-suncalc - Text only display of sunrise, sunset and other sun events



  • This module is displaying various times for sun rise, set when it’s at the highest point.
    The displayed message is configurable.

    Calculations are done using SunCalc
    The module can be downloaded from github

    Please give it at try, and give me some feedback.


  • Admin

    Please add some screenshots! :)



  • No so much screenshots.
    This is a text only module.
    Using a template, like "**Sunrise at , sunset at , highest point at **"
    Will be displayed as “Sunrise at 09:15, sunset at 15:34, highest point at 12:25”.

    Time format is the same as is globally.


  • Admin

    I see :D It still would be nice to see it in context with a clock for example :)


  • Module Developer

    Hi!
    Thank you for this module! :)
    I can’t get it to change the “text”.
    My config looks like this:

    	{
    		module: "mmm-suncalc",
    		position: "top_left",
    		classes: "default everyone small dimmed",
    		latitude: 56.1171367,
    		longitude: 12.9543434,
    		text: "Soluppgång sunrise, Solnedgång sunset, Solen högst solarNoon, Gryning dusk, Skymmning dawn"
    	},
    

    But the actual screen looks like this:
    0_1484295805906_pic.png

    What am I missing…?

    PS: The example conf on your git repo has one m to too much in the module name and when you “clone” it it’s all in non capitals “mmm-suncalc” (most modules have MMM-Modname). :)

    Obs: had to remove the " > " "< " for the conf to show correct here…

    Thank you.


  • Moderator

    {
    module: "mmm-suncalc",
    position: "top_left",
    classes: "default everyone small dimmed",
    config: {
    	latitude: 56.1171367,
    	longitude: 12.9543434,
    	text: "Soluppgång sunrise, Solnedgång sunset, Solen högst solarNoon, Gryning dusk, Skymmning dawn"
    	},
    },
    

    Should work with these settings.


  • Module Developer

    @yawns Working! :) Thank you!



  • Thx for downloading and very useful feedback :).
    Uploaded new version.
    Added support for css classes.
    Font size defaults to small.


Log in to reply
 

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.