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 4.4k 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.
    • 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 Do not disturb
        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 Do not disturb
            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