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

Clocks and Two Time Zones

Scheduled Pinned Locked Moved Troubleshooting
8 Posts 4 Posters 6.4k Views 4 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.
  • D Offline
    daikaiju
    last edited by Apr 7, 2017, 6:55 PM

    Any advice/ideas on how to get the MM to display two clocks of different time zones?

    1 Reply Last reply Reply Quote 0
    • Y Offline
      yawns Moderator
      last edited by Apr 7, 2017, 9:18 PM

      Just add the clock for a second time, but specify the timezone in the config.

      Please take a look here: https://github.com/MichMich/MagicMirror/blob/master/modules/default/clock/README.md

      1 Reply Last reply Reply Quote 0
      • D Offline
        daikaiju
        last edited by Apr 7, 2017, 10:03 PM

        Sure did.

        Perhaps, I missed something? I tried several time zone variations.

        module: 'clock',
        	timezone: 'Asia/Tokyo|JST JDT|-90 -a0|010101010|-QJH0 QL0 1lB0 13X0 1zB0 NX0 1zB0 NX0|38e6',
        	position: 'top_right'
        },
        
        Y 1 Reply Last reply Apr 8, 2017, 6:32 AM Reply Quote 0
        • Y Offline
          yawns Moderator @daikaiju
          last edited by Apr 8, 2017, 6:32 AM

          {
          module: 'clock',
          position: 'top_right',
          config: {
          timezone: 'Asia/Tokyo'
          }
          },
          
          R 1 Reply Last reply Apr 8, 2017, 5:52 PM Reply Quote 1
          • R Offline
            roramirez Core Contributors @yawns
            last edited by Apr 8, 2017, 5:52 PM

            @yawns There an issue this feature. I explained about this on https://github.com/MichMich/MagicMirror/issues/797

            The moment isn’t loaded when is run in electron mode. Only it’s working on server mode.

            I’ve investigating in this area, I don’t have nothing concluded yet. If some can give a idea can be nice. cc @strawberry-3-141 @paviro @Jopyth

            Easy module development with MagicMirror Module Template

            S 1 Reply Last reply Apr 8, 2017, 6:20 PM Reply Quote 0
            • S Offline
              strawberry 3.141 Project Sponsor Module Developer @roramirez
              last edited by Apr 8, 2017, 6:20 PM

              @roramirez i tested it back then (also commented on github) and it worked for me in electron, I tried it again now and it still works

              0_1491675620887_clock.PNG

              Please create a github issue if you need help, so I can keep track

              R 1 Reply Last reply Apr 9, 2017, 12:35 AM Reply Quote 2
              • R Offline
                roramirez Core Contributors @strawberry 3.141
                last edited by Apr 9, 2017, 12:35 AM

                @strawberry-3.141 Yes, Its work :). I’ve checking my config and is set nodeIntegration to true and this fail with that. I presuming this can be some tests fail at sometimes, I’m not sure.

                I share my config for failure.

                var config = {
                	port: 8080,
                	ipWhitelist: [ ],
                	language: "en",
                	kioskmode: true,
                	timeFormat: 24,
                	units: "metric",
                	electronOptions: {
                		webPreferences: {
                			nodeIntegration: true,
                		},
                	},
                
                	modules: [
                		{
                			module: "clock",
                			position: "center",
                			config: {
                				timezone: "America/Campo_Grande"
                			}
                		},
                
                	]
                };
                if (typeof module !== "undefined"){module.exports = config;}
                

                Easy module development with MagicMirror Module Template

                R 1 Reply Last reply Apr 9, 2017, 1:04 AM Reply Quote 1
                • R Offline
                  roramirez Core Contributors @roramirez
                  last edited by Apr 9, 2017, 1:04 AM

                  @roramirez Well for test this feature fail

                  https://travis-ci.org/roramirez/MagicMirror/builds/220155902
                  Commit: https://github.com/roramirez/MagicMirror/commit/05d7c9556e773bf2b941035953200ff327efb476

                  Apparently if we load moment-timezone with nodeIntegration will be fail

                  Easy module development with MagicMirror Module Template

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