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

MMM-Worldclock

Scheduled Pinned Locked Moved Utilities
32 Posts 8 Posters 10.4k Views 8 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
    MacG @SoleLo
    last edited by Sep 25, 2021, 6:27 PM

    @solelo Actually, no. For completeness here are my settings from config.js:

    		{
    			module: 'MMM-Worldclock',
    			position: 'top_left', // This can be any of the regions, best in top_left or top_right regions
    			config: {
    			// See 'Configuration options' for more information.
    				timeFormat: 'HH:mm', //Global time format, as defined in moment.js format()
    				style: 'top', // Which way do you want the flag and description from the clock? choices are 'top', 'left','right','bottom'
    				offsetTimezone: null, // Timezone you want to show the difference from. null, "", or omitted from config will be UTC.
    				clocks: [
    					{
    						title: "Weltzeit",
    						timezone: "UTC",
    						// timeFormat: "HH:mm MM/DD", // Time format override. 
    						// altflag: "world.png" // if you'd like a flag from a file on your mirror device. 
    					},
    					{
    						title: "Vancouver", // Too long of a title could cause bad text align.
    						timezone: "America/Vancouver",
    						flag: "ca", // If you'd like a flag from the standard library 
    					},
    					{
    						title: "Boca Chica", // Too long of a title could cause bad text align.
    						timezone: "America/Chicago", //When omitted, Local time will be displayed. 
    						flag: "us", // If you'd like a flag from the standard library 
    					},
    					{
    						title: "Sydney", // Too long of a title could cause bad text align.
    						timezone: "Australia/Sydney",
    						flag: "au", // If you'd like a flag from the standard library 
    					},
    				]
    			},
    		},
    

    Did you restart MM or do a reload (Ctrl-R)?

    S 1 Reply Last reply Sep 25, 2021, 6:37 PM Reply Quote 0
    • S Offline
      SoleLo @MacG
      last edited by Sep 25, 2021, 6:37 PM

      @macg mm world clock.JPG

      I added your custom css but the title is showing overlapped and I have it as style left, should I change it to top like yours?

      M 1 Reply Last reply Sep 25, 2021, 7:23 PM Reply Quote 0
      • M Offline
        MacG @SoleLo
        last edited by Sep 25, 2021, 7:23 PM

        @solelo Adjust the width to 200px

         .MMM-Worldclock .world {
               width: 200px;
         }
        

        The module may also have an alignment problem on the right side. Further customization of custom.css may be required.

        S 1 Reply Last reply Sep 25, 2021, 7:56 PM Reply Quote 0
        • S Offline
          SoleLo @MacG
          last edited by Sep 25, 2021, 7:56 PM

          @macg Ok thanks I’ll mess around with it some more and see if I can get it customized. I figured it was simple as adding your custom css snippet in but I guess not

          M S 2 Replies Last reply Sep 26, 2021, 3:45 PM Reply Quote 0
          • M Offline
            MacG @SoleLo
            last edited by Sep 26, 2021, 3:45 PM

            @solelo Just try to set the width higher and higher, eventually nothing will overlap anymore. But it will probably be quite wide, with the cities next to the time. Maybe that’s why style: ‘top’ is the better choice.

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @SoleLo
              last edited by Sep 26, 2021, 3:48 PM

              @solelo see this

              https://forum.magicmirror.builders/topic/14862/help-with-a-couple-css-issues?_=1632064035932

              u can change the styles livee and then save it to custom.css…

              note that you can doc the dev window at the bottom too, using the 3 dot menu next to the X to close the dev window

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • M Offline
                MacG
                last edited by Oct 26, 2021, 8:39 AM

                A supplement to the development tools. When you open it, you can select “Sources” and pause script execution with the “pause button” or F8 in the lower third. This makes it easier to get through all the style classes, which otherwise update every second.

                1 Reply Last reply Reply Quote 0
                • G Offline
                  goldyfruit Project Sponsor
                  last edited by Mar 11, 2022, 3:08 PM

                  I used to install the original woldclock module, just switched to this one and it worked out of the box.

                  Thanks for the work. :clapping_hands:

                  Build smart things with magic and love! | https://smartgic.io

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    SymmetriC
                    last edited by Dec 9, 2022, 9:01 PM

                    How do I center horizontally at the top of the screen instead of left?

                    S 1 Reply Last reply Dec 9, 2022, 9:20 PM Reply Quote 0
                    • S Offline
                      sdetweil @SymmetriC
                      last edited by Dec 9, 2022, 9:20 PM

                      @SymmetriC put it in the top_center position

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      B S 2 Replies Last reply Dec 9, 2022, 11:32 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 3 / 4
                      • 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