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.

    Clock format

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    41 Posts 2 Posters 21.5k Views 2 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.
    • S Offline
      sdetweil @louise
      last edited by

      @louise no… u havent hurt anything… we can get back the changed files easy

      the design makes it so we can change the code whenever we need to (we own it) and your implementation is not impacted, and you also aren’t blocked from getting the quarterly updates (next one coming Jan 1) …

      if you think it would be easier for you, then sure ,rename the folder, use my script to install again
      and then migrate your source file changes to config.js

      but u can migrate the changes now, no harm …

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      L 1 Reply Last reply Reply Quote 0
      • L Offline
        louise @sdetweil
        last edited by sdetweil

        @sdetweil

        deleted

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @louise
          last edited by

          @louise said in Clock format:

          {
          module: “clock”,
          position: “top_left”
          },

          still didnt’ get the select all

          and this is the only part we needed

          {
          module: “clock”,
          position: “top_left”
          },
          

          it has no config:{} section, so all the module defaults are used

          to change some setting here do

          {
          module: “clock”,
          position: “top_left”,     // <-  add a comma (more stuff follows this line) 
          config : {
               timeFormat:24, 
          }
          },
          

          in the setting above clock will use 24 hour format, even if the base is set to 12 hour format

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • L Offline
            louise @sdetweil
            last edited by

            @sdetweil Given a choice I would rather just have this figured out. Did I do right this time?

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @louise
              last edited by

              @louise no

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              L 1 Reply Last reply Reply Quote 0
              • L Offline
                louise @sdetweil
                last edited by

                @sdetweil frustrated yet?
                It is my config.js

                I know it says sample on top but it didn’t mess with any of that. I added in the disabled the compliment and newsfeed like u said so that worked.

                I don’t understand apparently.

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @louise
                  last edited by

                  @louise here

                  https://forum.magicmirror.builders/topic/15954/clock-format/18?_=1638300432581

                  the part of config.js is right, but the code block is wrong… and its doubled for some reason

                  when we ask for a module config, we don’t want the WHOLE config.js…
                  (also, there are private things in there, api keys, maybe passwords, … )

                  so we want as small as possible focused on A module usually

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  L 1 Reply Last reply Reply Quote 0
                  • L Offline
                    louise @sdetweil
                    last edited by

                    @sdetweil So you are saying I should I this under the the area it says clock module?

                    config : {
                    timeFormat:24,
                    }
                    },

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @louise
                      last edited by

                      @louise ONLY IF you want to control it separately from (and have it different then ) the base MagicMirror setting

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      L 1 Reply Last reply Reply Quote 0
                      • L Offline
                        louise @sdetweil
                        last edited by

                        @sdetweil I tried to put the code you had in my config but still 24 hr clock.

                        S 1 Reply Last reply Reply Quote 0
                        • S Offline
                          sdetweil @louise
                          last edited by

                          @louise the config setting I had above said 24 hour format, not 12

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          L 1 Reply Last reply Reply Quote 0
                          • L Offline
                            louise @sdetweil
                            last edited by

                            @sdetweil Actually tried it both ways, but neither worked.

                            Did you say I had something duplicated?

                            S 1 Reply Last reply Reply Quote 0
                            • S Offline
                              sdetweil @louise
                              last edited by

                              @louise in the post I linked u had 2 copies of the config.js content

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              S 1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @sdetweil
                                last edited by sdetweil

                                @sdetweil I wonder

                                are u using pm2 to launch mm?

                                do

                                pm2 status

                                if so do pm2 stop all

                                I think u are getting the default cause there was an error

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                L 1 Reply Last reply Reply Quote 0
                                • L Offline
                                  louise @sdetweil
                                  last edited by

                                  @sdetweil ok, did that. Just restart now?

                                  S 1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    sdetweil @louise
                                    last edited by sdetweil

                                    @louise lets check to make sure nothing is stuck

                                    do

                                    ps -ef | grep MagicMirror
                                    

                                    should return 1 line of output

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    L 1 Reply Last reply Reply Quote 0
                                    • L Offline
                                      louise @sdetweil
                                      last edited by

                                      @sdetweil pi 1390 1361 0 18:33 pets/0. 00:00:00 grep — color=auto MagicMirror

                                      S 1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        sdetweil @louise
                                        last edited by

                                        @louise ok, NOW we can

                                        pm2 start 0

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        L 1 Reply Last reply Reply Quote 0
                                        • L Offline
                                          louise @sdetweil
                                          last edited by

                                          @sdetweil restarted, still 24 clock

                                          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
                                          • 3 / 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