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.
    • 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
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @Mykle1
                  last edited by

                  @Mykle1

                  Somewhere between now and when I posted my previous comment, the module updated to 1 Day 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 I think a higher updateInterval may be in order. the 5 Hours set now maybe is a bit to much,

                    in the config you can add

                    updateInterval: 1 * 3600000,

                    To set it to update every hour instead!

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

                      @broberg

                      Done. I’ll keep you posted. Thanks for your time and effort. :thumbsup_tone1:

                      Create a working config
                      How to add modules

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

                        @Mykle1 And thank you for all the beta testing! :D

                        Mykle1M 4 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,:

                          And thank you for all the beta testing!

                          My pleasure. Woke up to the module displaying the correct present: entry. Nice!

                          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

                            I hate to be the bearer of bad news, but as of this morning, the module is still not performing correctly. Yesterday, I set a simple test for tomorrow. It correctly reported 2 Days Left. This morning (7:09am) it still reports 2 Days Left. I’ve made only the changes that you have advised.

                            sorry. no screenshot. I’m not at my normal computer

                            Create a working config
                            How to add modules

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

                              @Mykle1

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

                              0_1488473720195_Capture.JPG

                              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

                                Just glanced at the mirror and doomsDay is now reporting 1 more day. I don’t know at what time that occurred.

                                Create a working config
                                How to add modules

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

                                  @Mykle1

                                  Reporting the correct present: message this morning. I’ll now set a week long countdown and see how that goes. I’ll try not to bother you anymore

                                  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,:

                                    And thank you for all the beta testing!

                                    I know I said I would try not to bother you anymore with this but . . .

                                    I set doomsDay: "2017-03-15 24:00:00", which is the Ides of March, just as a test. I keep testing because I really want this module to work for me. Well, as of 8:50am today, 2017-03-04. the module is reporting 12 More Days instead of 11. The last test didn’t update the Days Left until late morning, early afternoon. I wouldn’t mind if it was slow in updating by an hour or two but it’s no good to me if it’s 12 hours behind

                                    Sorry

                                    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 Okay, do a new git pull now. I have altered the method of rounding the numbers, which I should have done from the beginning if I knew better :P

                                      Anyhow. Try the new version!

                                      Mykle1M strawberry 3.141S 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,:

                                        Anyhow. Try the new version!

                                        I’ll get it right now. Thanks for dealing with this for me.

                                        Did the git pull

                                        I changed my test to the 7th as a 3 day test. I didn’t want to wait till the 15th to see if it was working correctly. It’s reporting 3 Days Left so that’s an improvement right away. I’ll check it in the morning. Thanks again

                                        Create a working config
                                        How to add modules

                                        1 Reply Last reply Reply Quote 0
                                        • strawberry 3.141S Offline
                                          strawberry 3.141 Project Sponsor Module Developer @broberg
                                          last edited by

                                          @broberg date and time stuff can get really painful, that’s why I’m using moment for those tasks. there are some clever brains that thought about all kind of edge cases etc. you might want to check it out http://momentjs.com/docs/#/displaying/to/

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

                                          brobergB yawnsY 2 Replies Last reply Reply Quote 1
                                          • brobergB Offline
                                            broberg Project Sponsor @strawberry 3.141
                                            last edited by

                                            @strawberry-3.141 Yeah I’ve noticed. If this module keeps misbehaving I will look in to the moment.js instead. looka a lot simpler, thanks for the link!

                                            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
                                            • 2 / 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