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.

    I can't seem to configure the default clock for my life

    Scheduled Pinned Locked Moved Troubleshooting
    6 Posts 3 Posters 3.5k 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.
    • cowboysdudeC Offline
      cowboysdude Module Developer @Treestanx
      last edited by cowboysdude

      @Treestanx you’re missing some parts ;) Rule of thumb… you need to have equal { }
      so for every { you need one of }… You’re missing two ;) One at the start and one at the end.

                     {
      		module: 'clock',
      			position: 'top_left',
      			config: {
      				displaySeconds: false,
      				timezone: "America/New_York",
      		                     }
      	      },
      
      Mykle1M 1 Reply Last reply Reply Quote 1
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @Treestanx
        last edited by

        @Treestanx said in I can’t seem to configure the default clock for my life:

        Can someone help me out?

        I will try to help you.

                    {
        		module: 'MMM-Globe',
        		position: 'bottom_center',
        		config: {
        		style: 'natColor',
        		imageSize: 200,
        		ownImagePath:'',
        		updateInterval: 10*60*1000
        	}
        	},
        	{
        		module: 'clock',
        		timezone: 'America/New_York',
        		position: 'top_center'
        	},
        	{
        		module: 'calendar',
        

        Here is the clock portion of my config.js file between 2 other modules. Notice how the module before clock ends with },
        The clock module should also end with }, as you can see from mine.

        From what I’ve learned here, every { needs to have a corresponding } somewhere afterwards in the modules config.
        AND, the last } in that modules config needs to have a comma after it. See the module above clock? It has 2 { and
        2 corresponding } the last } having a comma afterwards.

        I hope this helps. I’ve given some faulty advice before but I’d like to think I’ve helped a few people.

        Create a working config
        How to add modules

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

          @cowboysdude said in I can’t seem to configure the default clock for my life:

          You’re missing two One at the start and one at the end.

          You beat me to it, bro. There was no answer when I started and then when I posted, it showed you already made it to the finish line. :thumbsup:

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 1
          • T Offline
            Treestanx
            last edited by

            Why is timezone: in config in one example and in the other its under module?

            cowboysdudeC 1 Reply Last reply Reply Quote 0
            • cowboysdudeC Offline
              cowboysdude Module Developer @Treestanx
              last edited by

              @Treestanx That my friend you’ll have to ask the guy who wrote it LOL

              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