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.

    worldclock - nobody made this, so I did.

    Scheduled Pinned Locked Moved Productivity
    46 Posts 14 Posters 31.9k Views 14 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.
    • N Offline
      nobita @Guest
      last edited by

      @Sean , How to Change your digital Clock to Analog Clock
      like as the default module clock (MM2)
      Configuration options
      displayType : Possible values: digital, analog, or both
      analogFace : Possible values: simple for a simple border, none for no face or border,
      or face-### (where ### is currently a value between 001 and 012, inclusive)

      Thank so much for your all helps

      ? 1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User @nobita
        last edited by

        @nobita
        Unfortunately, worldclock doesn’t support Analog face. Sorry.

        1 Reply Last reply Reply Quote 0
        • A Offline
          Arjen_lima
          last edited by Arjen_lima

          Hi There,

          just starting out with MM and i like the module a lot.
          one question i have is how to organize the clock’s in row instead of one below the other.

          thanks

          Arjen

          ? 1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User @Arjen_lima
            last edited by

            @Arjen_lima
            Sorry for my English, I cannot catch your question.
            The order of clocks is defined in config.js by the section clocks, that is the array of clock, then the order of display is same with the order of array element.

            Or… If you mean another problem, give me more detailed information. Of course, an image could be the great help for understanding.

            A 1 Reply Last reply Reply Quote 0
            • A Offline
              Arjen_lima @Guest
              last edited by

              @Sean said in worldclock - nobody made this, so I did.:

              @Arjen_lima
              Sorry for my English, I cannot catch your question.
              The order of clocks is defined in config.js by the section clocks, that is the array of clock, then the order of display is same with the order of array element.

              Or… If you mean another problem, give me more detailed information. Of course, an image could be the great help for understanding.

              Hey Sean,

              Its probably my english ;-),
              now the clocks in the array are all vertically aligned one clock below the next clock.
              in some of the screen shots they are in a 3x3 grid i was wondering how to get it like that

              0_1520457239430_bd0e9ac0-1c97-4309-a289-c9e232e20ab1-image.png
              my current lay out

              0_1520457311994_87e36706-5926-4586-94e4-9e0d37954111-image.png

              the lay out im looking for

              ? 1 Reply Last reply Reply Quote 1
              • ? Offline
                A Former User @Arjen_lima
                last edited by

                @Arjen_lima
                Sorry for the confusion. that image was just sample of the different layout configuration. That was not real, it was photoshopped.

                1 Reply Last reply Reply Quote 0
                • P Offline
                  Peter
                  last edited by

                  Can somebody help me to change the font size of this module?
                  I would like to have the time a little smaller; about the same as the size of the citynames.
                  Thanks.
                  Peter

                  N 1 Reply Last reply Reply Quote 0
                  • N Offline
                    ninjabreadman @Peter
                    last edited by

                    @Peter This should work:

                    .worldclock {
                      font-size: 73%; /* adjust value as needed */
                    }
                    

                    Problem with config or JavaScript? Copy/paste it into JSHint.
                    Check out the detailed walkthroughs on install, config, modules, etc.

                    P 1 Reply Last reply Reply Quote 0
                    • P Offline
                      Peter @ninjabreadman
                      last edited by

                      @ninjabreadman thanks!
                      It works fine.
                      Peter

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        cookblook
                        last edited by

                        Hello,

                        very nice module. Is it possible to have the clocks horizontal instead of vertical?

                        ? 1 Reply Last reply Reply Quote 0
                        • ? Offline
                          A Former User @cookblook
                          last edited by

                          @cookblook
                          You can redefine CSS of .worldclockand.worldclock .world to arrange horizontally with flex things of CSS3.

                          C 1 Reply Last reply Reply Quote 0
                          • C Offline
                            cookblook @Guest
                            last edited by

                            @sean like display: flex;? tried that but it didn’t work

                            ? 1 Reply Last reply Reply Quote 0
                            • ? Offline
                              A Former User @cookblook
                              last edited by A Former User

                              @cookblook
                              This will work, add this into your css/custom.css

                              .worldtime {
                                display:flex;
                                flex-direction:row;
                              }
                              
                              .world{
                                width:200px;
                              }
                              

                              0_1547022402965_sc.png

                              1 Reply Last reply Reply Quote 0
                              • C Offline
                                cookblook
                                last edited by

                                @sean Thanks!! That worked :-)

                                1 Reply Last reply Reply Quote 0
                                • BKeyportB Offline
                                  BKeyport Module Developer
                                  last edited by

                                  Ulrich/Sean -

                                  I’ve got a bug - supposedly it’s supposed to allow override of the time format per clock. I’m trying to get a 24 hour clock only on the UTC clock. “LT” is “hh:mm A” here…

                                  Thanks!

                                  {
                                   module: "worldclock",
                                   position: "top_left", 
                                  config: { 
                                   timeFormat: "LT", style: "left",
                                   offsetTimezone: null,
                                   clocks: [
                                   {
                                   title: "Local",
                                   timezone: "America/Los_Angeles",
                                   }, 
                                  {
                                   title: "UTC",
                                   timezone: "UTC",
                                   timeFormat: "HH:mm",
                                   }, 
                                   ]
                                   },
                                   },
                                  

                                  Thanks!

                                  The "E" in "Javascript" stands for "Easy"

                                  BKeyportB 1 Reply Last reply Reply Quote 0
                                  • L Offline
                                    Lagmin
                                    last edited by

                                    This post is deleted!
                                    1 Reply Last reply Reply Quote 0
                                    • BKeyportB Offline
                                      BKeyport Module Developer @BKeyport
                                      last edited by

                                      I solved this. My fork is http://www.github.com/bkeyport/MMM-Worldclock if you’d like to use it. It’ll be fully supported, and I don’t plan to merge back into the original.

                                      The "E" in "Javascript" stands for "Easy"

                                      1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        alanodoug
                                        last edited by alanodoug

                                        Hey guys,
                                        is it possible to change the flag-icon? Because the flag i want to use doesnt exist.
                                        Maybe i can use a image and put it in the folder?

                                        Thx

                                        1 Reply Last reply Reply Quote 0
                                        • BKeyportB Offline
                                          BKeyport Module Developer
                                          last edited by BKeyport

                                          No. The flags are hardcoded. I’m trying to figure out how it works, because I want to use a flag for UTC, which don’t have one either.

                                          I’m about halfway there. I’ve figured out how to do everything but get the replacement flag into the right spot. It’ll display, but it’s not showing up at the right spot. Still crunching, will look more when time permits. . :|

                                          The "E" in "Javascript" stands for "Easy"

                                          1 Reply Last reply Reply Quote 0
                                          • BKeyportB Offline
                                            BKeyport Module Developer
                                            last edited by BKeyport

                                            @alanodoug said in worldclock - nobody made this, so I did.:

                                            Hey guys,
                                            is it possible to change the flag-icon? Because the flag i want to use doesnt exist.
                                            Maybe i can use a image and put it in the folder?

                                            I’ve added the functionality to MMM-Worldclock. The supported version™

                                            It’s not perfect, but it’s there.

                                            Capture.PNG
                                            Is created by:

                                            		{
                                            			module: "MMM-Worldclock",
                                            			position: "top_left",
                                            			config: {
                                            				style: "right",
                                            				offsetTimezone: null,
                                            				clocks: [
                                            					{
                                            						title: "Local",
                                            						timezone: "America/Los_Angeles",
                                            						altflag: "washington.png",
                                            						timeFormat: "hh:mm:ss a",
                                            					},
                                            					{
                                            						title: "ET",
                                            						timezone: "America/New_York",
                                            						flag: "us",
                                            						timeFormat: "hha MM/DD",
                                            					},
                                            					{
                                            						title: "CT",
                                            						timezone: "America/Chicago",
                                            						flag: "us",
                                            						timeFormat: "hha MM/DD",
                                            					},
                                            					{
                                            						title: "MT",
                                            						timezone: "America/Boise",
                                            						flag: "us",
                                            						timeFormat: "hha MM/DD",
                                            					},
                                            					{
                                            						title: "AK",
                                            						timezone: "America/Anchorage",
                                            						flag: "us",
                                            						timeFormat: "hha MM/DD",
                                            					},
                                            					{
                                            						title: "HI",
                                            						timezone: "Pacific/Honolulu",
                                            						flag: "us",
                                            						timeFormat: "hha MM/DD",
                                            					},
                                            					{
                                            						title: "UTC",
                                            						timezone: "UTC",
                                            						timeFormat: "HH:mm MM/DD",
                                            						altflag: "world.jpg"
                                            					},
                                            				]
                                            			},
                                            		},
                                            

                                            the module is located at http://www.github.com/BKeyport/MMM-Worldclock

                                            Cheers!

                                            I really need someone to help me with the CSS buildout. I’m not understanding how to get the icons down to the same size as the normal flags, and other little ticky stuff.

                                            What I added was “altflag” in the code, and based it off of what Sean did originally.

                                            The combo of JS and CSS is maddening me.

                                            The "E" in "Javascript" stands for "Easy"

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • 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