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-doomsDay - The countdown module,

    Scheduled Pinned Locked Moved Utilities
    74 Posts 17 Posters 90.0k Views 16 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.
    • Mykle1M Offline
      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
      • Mykle1M Offline
        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

        brobergB 2 Replies Last reply Reply Quote 0
        • brobergB Offline
          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 Offline
            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

            brobergB Mykle1M 2 Replies Last reply Reply Quote 0
            • brobergB Offline
              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?

              Mykle1M 1 Reply Last reply Reply Quote 0
              • brobergB Offline
                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
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @Jopyth
                  last edited by

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

                  My advent module?

                  Yes, that was it. :thumbsup_tone1:

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • Mykle1M Offline
                    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.141S brobergB 2 Replies Last reply Reply Quote 0
                    • strawberry 3.141S Offline
                      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
                      • brobergB Offline
                        broberg Project Sponsor @Mykle1
                        last edited by

                        @Mykle1 sorry my bad mixing up stuff, git pull is the command to use in the Mmm-doomsday folder

                        1 Reply Last reply Reply Quote 0
                        • brobergB Offline
                          broberg Project Sponsor
                          last edited by

                          A second to slow,@strawberry-3-141 beat me to it :)

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

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

                            A second to slow,@strawberry-3-141 beat me to it

                            A photo finish? Thanks to both of you. :thumbsup_tone1:

                                       {
                                			module: 'MMM-doomsDay',
                                			position: 'top_left', // This can be any of the regions, best results in center regions
                                			config: {
                                    			doomsDay: "2017-02-24 24:00:00",  // the end day of the countdown, format is YYYY-MM-DD HH:MM:SS, 
                                    			toWhat: 'Open the pool!',  // the title of your countdown event
                            				present: 'We are gonna rock',  //  What it should say on doomsDay date
                            				singular: `Day Left`, // what it should say when it's only one day left, default is `Day Left`
                            				plural: 'Days Left', // what it should say when it's more days left, default is `Days Left`
                            				}
                            		},
                            

                            Ok, now the display says, “Open the pool!”, but underneath is says, “0 Days Left”

                            Create a working config
                            How to add modules

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

                              @Mykle1 okey, then my fix didn’t do what I thought. I have restored it to as before, do a new git pull to get the last version again.

                              I will have to fix the half-day bug when I get back home :)

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

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

                                do a new git pull to get the last version again.

                                ok, will do. Sorry about the troubles

                                Create a working config
                                How to add modules

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

                                  @Mykle1 no worries, first versions always have bugs :D

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

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

                                    no worries, first versions always have bugs

                                    I see you have a new designation.
                                    Congratulations, Mr. Module Developer!

                                    Create a working config
                                    How to add modules

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

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

                                      first versions always have bugs

                                      Just a follow up. I did the git pull to go back to the original version as you advised. I didn’t disable the module but I did set a new doomsDay for Tuesday. (This was yesterday) The module correctly reported “4 Days Left”. but as of this morning, it still reads "4 Days Left.

                                      Create a working config
                                      How to add modules

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

                                        @Mykle1 Finally home, and I believe I have fixed this issue now!
                                        do a new git pull and it should work in the mornings as well :D

                                        @illskool You should also do an update on this module! :D

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

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

                                          Finally home, and I believe I have fixed this issue now!
                                          do a new git pull and it should work in the mornings as well

                                          Thanks bro. Gonna do that right now.
                                          Ok, I have my test running for tomorrow. The module is correctly displaying “1 Day Left”

                                          {
                                              			module: 'MMM-doomsDay',
                                              			position: 'top_right', // This can be any of the regions, best results in center regions
                                              			config: {
                                                  			doomsDay: "2017-02-27 24:00:00", // the end day of the countdown
                                                  			toWhat: 'Build Bed!', // the title of your countdown event
                                          				present: 'Get to it!',
                                          				singular: 'Day Left', // what it should say when it's only one day left, default is `Day Left`
                                          				plural: 'Days Left', // what it should say when it's more days left, default is `Days Left`
                                          				}
                                          		},
                                          

                                          Create a working config
                                          How to add modules

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

                                            @broberg

                                            It seems I’m still having some problems with this. It worked on the last test, and displayed the present: string correctly, but now it’s not working again. Below is my config with the doomsDay set for tomorrow and a screenshot of the display still reporting 2 Days Left

                                                			module: 'MMM-doomsDay',
                                                			position: 'top_right', // This can be any of the regions, best results in center regions
                                                			config: {
                                                    			doomsDay: "2017-03-01 24:00:00", // the end day of the countdown
                                                    			toWhat: 'Doctor Dave Wed', // the title of your countdown event
                                            				present: 'Doctor Dave 11:30',
                                            				singular: 'Day Left', // what it should say when it's only one day left, default is `Day Left`
                                            				plural: 'Days Left', // what it should say when it's more days left, default is `Days Left`
                                            				}
                                            		},
                                            

                                            0_1488302751809_Capture2.JPG

                                            Create a working config
                                            How to add modules

                                            Mykle1M 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 1 / 4
                                            • 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