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

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

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 3 Posters 3.3k 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.
  • T Offline
    Treestanx
    last edited by Feb 13, 2017, 2:50 AM

    I have been trying to change the timezone on the clock module for days. I don’t understand why when I add the config lines it bricks MM. Can someone help me out?

     module: "clock",
            position: "top_left",   // This can be any of the regions.
            config: {
                 timezone: 'America/New_York'
    }
    
    C M 2 Replies Last reply Feb 13, 2017, 3:46 AM Reply Quote 0
    • C Offline
      cowboysdude Module Developer @Treestanx
      last edited by cowboysdude Feb 13, 2017, 3:48 AM Feb 13, 2017, 3:46 AM

      @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",
      		                     }
      	      },
      
      M 1 Reply Last reply Feb 13, 2017, 4:08 AM Reply Quote 1
      • M Offline
        Mykle1 Project Sponsor Module Developer @Treestanx
        last edited by Feb 13, 2017, 4:04 AM

        @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
        • M Offline
          Mykle1 Project Sponsor Module Developer @cowboysdude
          last edited by Feb 13, 2017, 4:08 AM

          @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 Feb 13, 2017, 4:16 AM

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

            C 1 Reply Last reply Feb 13, 2017, 12:21 PM Reply Quote 0
            • C Offline
              cowboysdude Module Developer @Treestanx
              last edited by Feb 13, 2017, 12:21 PM

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

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                1/6
                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