MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.

    MMM-doomsDay - The countdown module,

    Utilities
    17
    74
    46960
    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.
    • broberg
      broberg Project Sponsor last edited by broberg

      Description:

      A simple module to put a countdown to an event, displays days left to the set date.
      Displays one line when the day is here and another one when the event is over.

      Screenshots:

      0_1487778760071_screenshot.jpg

      0_1487781373398_screensho2t.jpg

      0_1487781582088_daw.jpg

      Download:


      Version 0.4 (16/3 2017)

      Added the option to change text when the day has passed,
      suggested by @Snille !

      Version 0.3

      Fixed half day bug, also increased the update interval so it now updates every hour instead.

      Version 0.2

      Fixed hour issue, not displaying the event in the morning.

      Version 0.1

      Quick and dirty, try it, should work.

      Mykle1 2 Replies Last reply Reply Quote 7
      • Mykle1
        Mykle1 Project Sponsor Module Developer @broberg last edited by

        @broberg said in MMM-doomsDay - The countdown module,:

        Quick and dirty, try it, should work.

        Simple and elegant, I did, it does.

        Actually, I think you must have read my mind. I toyed with another module that has a burning candle. The name escapes me, but it was a countdown type module. Nice, but not for me. However, your module is just what I was looking for. It’s running now as a test for tomorrow but I can already tell you that this module is here to stay in my setup. I like that it doesn’t demand a lot of screen real estate and I am delighted that you included the css file so I don’t have to ask how to modify it in the forums.

        I’m a fan! Thanks for another perfect addition to my mirror.
        0_1487895003225_IMG_1779.JPG

        Create a working config
        How to add modules

        J 1 Reply Last reply Reply Quote 1
        • Mykle1
          Mykle1 Project Sponsor Module Developer @broberg last edited by

          @broberg

          i just checked before running off to work. Yesterday, I set a an event for today so that I could see the end result but the module still displays “1 Day Left” as it does in the picture above. The only thing I changed in the sample config was the date of the event and what it should say when the event arrived. I left the time untouched as you suggested. I have a short work day today so I’ll take a look at it when I get home

          Create a working config
          How to add modules

          broberg 2 Replies Last reply Reply Quote 0
          • broberg
            broberg Project Sponsor @Mykle1 last edited by

            @Mykle1 humm, okey, probably because the function to round it up thinks it’s more than 0.5 days left and thus rounds it up to 1 instead of down to zero.

            Have to adjust the code a bit

            1 Reply Last reply Reply Quote 0
            • J
              Jopyth Moderator @Mykle1 last edited by

              @Mykle1 My advent module? Even though @broberg hasn’t mentioned it, it seems he based his work on that module.

              A feature suggestion from my side: It would feel more like an urgent thing closing in, if it could also show hours/minutes/seconds, too. Maybe use a formatting string for a moment.js duration? If I have some time, I might make a PR.

              Helpful sticky: How to troubleshoot

              broberg Mykle1 2 Replies Last reply Reply Quote 0
              • broberg
                broberg Project Sponsor @Mykle1 last edited by broberg

                @Mykle1 Okey, I changed up some variables and I’m not able to test them myself, when you get home, could do a git pull on the doomsday module and test it out for me?

                Mykle1 1 Reply Last reply Reply Quote 0
                • broberg
                  broberg Project Sponsor @Jopyth last edited by

                  @Jopyth Yes, I stripped out that module for this one, kept the start function and removed the rest since It was a bit over my head at the moment 🙂

                  Took me a lot longer than I’m willing to admit just to get the code to compare dates!
                  Actually thought about the hour/minute countdown as well, but decided to keep it real basic.
                  I figured you don’t really put that many hours in front of the mirror that it would be that important to see so much detail of the countdown. (And if you look the update interval is set to 5 hours just to keep it in the ballpark)

                  1 Reply Last reply Reply Quote 1
                  • Mykle1
                    Mykle1 Project Sponsor Module Developer @Jopyth last edited by

                    @Jopyth said in MMM-doomsDay - The countdown module,:

                    My advent module?

                    Yes, that was it. 👍🏻

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 0
                    • Mykle1
                      Mykle1 Project Sponsor Module Developer @broberg last edited by Mykle1

                      @broberg said in MMM-doomsDay - The countdown module,:

                      when you get home, could do a git update on the doomsday module and test it out for me?

                      This is what I get when I attempted a git update as you suggested.

                      pi@Pi3:~/MagicMirror/modules/MMM-doomsDay $ git update
                      git: ‘update’ is not a git command. See ‘git --help’.

                      Did you mean this?
                      update-ref
                      pi@Pi3:~/MagicMirror/modules/MMM-doomsDay $

                      I don’t want to mess anything up so I’ll wait till you advise further, thanks

                      Create a working config
                      How to add modules

                      strawberry 3.141 broberg 2 Replies Last reply Reply Quote 0
                      • strawberry 3.141
                        strawberry 3.141 Project Sponsor Module Developer @Mykle1 last edited by

                        @Mykle1 git pull

                        Please create a github issue if you need help, so I can keep track

                        1 Reply Last reply Reply Quote 1
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 7
                        • 8
                        • 1 / 8
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy