Skip to content
Magic Mirror Module to count down to a specific date
JavaScript CSS
Branch: master
Clone or download
boazarad Merge pull request #5 from tim-digitised/show-advanced-countdown
Added ability to countdown hours, minutes and seconds and control the…
Latest commit 380f8a6 Oct 24, 2018

README.md

MMM-CountDown

Screenshot

This is a module for the MagicMirror² which can count down the days to a date/event.

I've never written anything with Node.js before, so hopefully this isn't a total mess, if it is - feel free to lend a hand :)

Using the module

To use this module, add the following configuration block to the modules array in the config/config.js file:

var config = {
    modules: [
        {
            module: 'MMM-CountDown',
            config: {
                // See configuration options
            }
        }
    ]
}

Configuration options

Option Description
position Required Where do you want to place the counter (use standard magicmirror positions)
event Required Name of event to count down to (displayed above counter)
date Required Date to count down to (YYYY-MM-DD)
showHours Decide whether or not to display the hours. Default is true
showMinutes Decide whether or not to display the minutes. Default is true
showSeconds Decide whether or not to display the seconds. Default is true
customInterval Change the update interval which will help reduce load if you are only showing specific time metrics. Default is 1000
daysLabel Choose how you wish to display your Days label. Default is d
hoursLabel Choose how you wish to display your Hours label. Default is h
minutesLabel Choose how you wish to display your Minutes label. Default is m
secondsLabel Choose how you wish to display your Seconds label. Default is m

If either of the above are missing, the module will count down to the New Millenium (3000-01-01)

You can’t perform that action at this time.