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

How to show city title above clock display in default clock module?

Scheduled Pinned Locked Moved Tutorials
4 Posts 4 Posters 666 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.
  • K Offline
    kpl4184
    last edited by sdetweil Jan 30, 2023, 4:49 PM Jan 30, 2023, 4:21 PM

    clock_screenshot.16de47d9.png

    Replace the Day and Date with the City Title { “New-York”, }

    modules: [
      {
        module: "clock",
        position: "top_left", // This can be any of the regions.
        config: {
          // The config property is optional.
          // See 'Configuration options' for more information.
        },
      },
    ];
    
    S B 2 Replies Last reply Jan 30, 2023, 4:49 PM Reply Quote 0
    • S Away
      sdetweil @kpl4184
      last edited by Jan 30, 2023, 4:49 PM

      @kpl4184 in the config section where module:

      module:,"clock",
      header:"....... string"
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • B Offline
        bhepler Module Developer @kpl4184
        last edited by Jan 31, 2023, 2:56 AM

        @kpl4184 - You can specify a custom date format with anything you like.

        {
            module: "clock",
            position: "top_left", // This can be any of the regions.
            config: {
                dateFormat: "[New York City]",
                showDate: true
            }
        }
        
        1 Reply Last reply Reply Quote 0
        • S Offline
          sidestepp
          last edited by Feb 11, 2023, 9:27 PM

          I did it with both date and city.
          {
          module: “clock”,
          position: “top_left”, // This can be any of the regions.
          config: {
          dateFormat: “dddd, LL [at New York City]”,
          showDate: true
          }
          }

          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