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

      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?

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

        @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

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

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

            @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

              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 Reply Quote 0
              • S Away
                sdetweil @Manino
                last edited by sdetweil

                @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 Reply Quote 0
                • M Offline
                  Manino @sdetweil
                  last edited by

                  @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 Reply Quote 0
                  • S Away
                    sdetweil @Manino
                    last edited by

                    @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 Reply Quote 0
                    • M Offline
                      Manino @sdetweil
                      last edited by

                      @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