• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Analog + Digital Clock module

Scheduled Pinned Locked Moved Solved Requests
38 Posts 5 Posters 42.7k Views 5 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.
  • K Offline
    KirAsh4 Moderator
    last edited by Jul 13, 2016, 4:43 AM

    At the moment, it’s hard coded in. I’d have to add a config option so it can be turned off when used as a separate module.

    A Life? Cool! Where can I download one of those from?

    1 Reply Last reply Reply Quote 0
    • K Offline
      KirAsh4 Moderator
      last edited by Jul 13, 2016, 5:14 AM

      Ok, I have it in my dev branch, but I won’t push it up just yet. I’ll wait a bit to see if there are other things that people will request or fixes. But if you must get rid of it now, you can manually edit the 'clock.js' file and delete line 173:

      169:    } else if (this.config.displayType === 'analog') {
      170:        // Display only an analog clock
      171:        dateWrapper.style.textAlign = "center";
      172:        dateWrapper.style.paddingBottom = "15px";
      173:        wrapper.appendChild(dateWrapper);             <===== that line
      174:        wrapper.appendChild(clockCircle);
      175:    } else {
      

      It will only affect the analog clock when used as a separate module as a single clock.

      A Life? Cool! Where can I download one of those from?

      1 Reply Last reply Reply Quote 0
      • K Offline
        KirAsh4 Moderator
        last edited by Jul 13, 2016, 6:06 AM

        I should point out that this is just a temporary thing, so you can get rid of it. The updated code will give you a config option to disable it, show it above, or below the clock.

        A Life? Cool! Where can I download one of those from?

        1 Reply Last reply Reply Quote 0
        • K Offline
          KirAsh4 Moderator
          last edited by Jul 22, 2016, 5:48 PM

          @pugsly, I forgot to mention this: new code has been added to the 'develop' branch that allows you to turn off the date display when using the module in analog mode only. Options are 'top' (default) to have it displayed at the top of the clock, 'bottom' to show it on the bottom, or 'false' to completely turn it off.

          A Life? Cool! Where can I download one of those from?

          1 Reply Last reply Reply Quote 1
          • T Offline
            trividar
            last edited by Jan 6, 2017, 11:32 AM

            someone know why this happend to me after updating MM:
            alt text
            everything looks fine just the analag clock.

            N 1 Reply Last reply Jan 8, 2017, 7:46 PM Reply Quote 0
            • N Offline
              nagaculun @trividar
              last edited by Jan 8, 2017, 7:46 PM

              @trividar said in Analog + Digital Clock module:

              someone know why this happend to me after updating MM:
              alt text
              everything looks fine just the analag clock.

              Happened to me too. It was fine yesterday.

              N 1 Reply Last reply Jan 10, 2017, 3:19 AM Reply Quote 0
              • N Offline
                nobita @nagaculun
                last edited by Jan 10, 2017, 3:19 AM

                @nagaculun you can adjust resize analogSize: “200px”, to smaller ex 150px

                N T 2 Replies Last reply Jan 10, 2017, 3:33 AM Reply Quote 0
                • N Offline
                  nagaculun @nobita
                  last edited by Jan 10, 2017, 3:33 AM

                  @nobita it works. Thanks

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    trividar @nobita
                    last edited by Jan 10, 2017, 9:39 AM

                    @nobita with max. 300px it works, but before the update I had 550px and it works also but no more. Do someone know why?

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      MichMich Admin
                      last edited by Jan 15, 2017, 7:06 PM

                      Should be fixed in the develop branch now: https://github.com/MichMich/MagicMirror/issues/611#issuecomment-272714388

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 4 / 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