• 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.

How to disable seconds in clock time?

Scheduled Pinned Locked Moved Troubleshooting
9 Posts 4 Posters 3.9k Views 3 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.
  • A Offline
    alang
    last edited by Oct 10, 2017, 7:18 PM

    I’m two days new to magic mirror and have been able to make may changes by using custom.css, but there is something simple I haven’t been able to figure yet.

    How can I get the seconds to not display on the default clock time module?

    M 1 Reply Last reply Oct 10, 2017, 10:02 PM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @alang
      last edited by Oct 10, 2017, 10:02 PM

      @alang said in How to disable seconds in clock time?:

      How can I get the seconds to not display on the default clock time module?

      From the clock module README file:

      displaySeconds: false,

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 2
      • A Offline
        alang
        last edited by Oct 10, 2017, 10:58 PM

        I knew the answer would be embarrassing. I appreciate the help without name calling. Thank you.

        M 1 Reply Last reply Oct 10, 2017, 11:13 PM Reply Quote 3
        • M Offline
          Mykle1 Project Sponsor Module Developer @alang
          last edited by Oct 10, 2017, 11:13 PM

          @alang said in How to disable seconds in clock time?:

          Thank you.

          You’re welcome. Enjoy your mirror.

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 2
          • M Offline
            Manino
            last edited by sdetweil Oct 1, 2023, 11:47 AM Sep 30, 2023, 9:12 PM

            Somone know why it does’nt work for me? I have tried:

            {
            module; "clock", 
            position: "top_left"
                     config: {
                     displaySeconds: false
            }
            },
            

            and

            {
            module; "clock", 
            position: "top_left"
                     config: {
                     displaySeconds: false,
            }
            },
            
            S 1 Reply Last reply Oct 1, 2023, 11:47 AM Reply Quote 0
            • S Away
              sdetweil @Manino
              last edited by sdetweil Oct 1, 2023, 1:00 PM Oct 1, 2023, 11:47 AM

              @Manino position line needs a trailing comma

              this works for me

                              {
                                      module: "clock",
                                      position: "top_left",
                                      config:{
                                              displaySeconds:false,
                                      }
                              }
              

              Screenshot at 2023-10-01 07-59-46.png

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              M 1 Reply Last reply Oct 1, 2023, 5:11 PM Reply Quote 0
              • M Offline
                Manino @sdetweil
                last edited by Oct 1, 2023, 5:11 PM

                @sdetweil Intresting, no need for trailing comma when it was only

                {
                module; "clock", 
                position: "top_left"
                },
                

                It did work with a trailing comma after position line, thanks!

                S 1 Reply Last reply Oct 1, 2023, 5:28 PM Reply Quote 0
                • S Away
                  sdetweil @Manino
                  last edited by Oct 1, 2023, 5:28 PM

                  @Manino said in How to disable seconds in clock time?:

                  It did work with a trailing comma after position line, thanks!

                  correct, the trailing comma means more follows this line

                  it was not needed for the default because there was no more following…

                  as soon as you added another line, then it needs the trailing comma…

                  this is javascript syntax.

                  if you had run the syntax checker

                  npm run config:check
                  

                  it would have told you the error
                  unexpected token

                  and it would have pointed to the line

                  this almost always means missing trailing comma on the line BEFORE the error

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  M 1 Reply Last reply Oct 1, 2023, 6:32 PM Reply Quote 0
                  • M Offline
                    Manino @sdetweil
                    last edited by Oct 1, 2023, 6:32 PM

                    @sdetweil Oh, that’s good to know!!

                    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