MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-Countdown2

    Scheduled Pinned Locked Moved Utilities
    1 Posts 1 Posters 492 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • BKeyportB Offline
      BKeyport Module Developer
      last edited by

      After playing with various options for countdown clocks, and not really liking any of them, I’ve decided to revive an old module, and make it my way… Much credit to the original author.

      MMM-CountDown2

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

      This module is an updated version of MMM-Countdown.

      20548f2e-a1b9-4f9b-9bc5-94fa0213c35f-image.png

      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-CountDown2',
                  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 HH:MM:SS)
      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)

      Version History

      V1.0 - Adjust name, Fix counters to show 0# under 10s for all but days, remove unneeded fluff, not allow to go past time. adjust for my uses. Publish
      v1.01 - CSS now works through MMM-CountDown2.css - please use custom.css to override as you like.

      Planned work

      • Setup more options.
      • Make labels more intuitive/optional.
      • Make sections “optional” under condition. EG: if time left is over 1 day, don’t show seconds.
      • I’d like to work on integrating with calendar module(s), but that’s very long term at this point.

      The "E" in "Javascript" stands for "Easy"

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Enjoying MagicMirror? Please consider a donation!
      MagicMirror created by Michael Teeuw.
      Forum managed by Sam, technical setup by Karsten.
      This forum is using NodeBB as its core | Contributors
      Contact | Privacy Policy