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.

    MagicMirror using the wrong time

    Scheduled Pinned Locked Moved Solved Troubleshooting
    54 Posts 6 Posters 28.5k Views 6 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 Do not disturb
      sdetweil @blissb
      last edited by

      @blissb i can’t recreate it on any system…

      if you’ve got time, could you make another sde card and reinstall mm using my script?
      and use your config.js

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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

        @sdetweil Just wanted to let you know, I’m working on this between other tasks. I’m also prepping for the Thanksgiving holiday tomorrow, so if I don’t get it finished tonight, it may be Friday before I get back with you.

        S 1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @blissb
          last edited by

          @blissb no rush. when/if you have time

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          B 2 Replies Last reply Reply Quote 0
          • B Offline
            blissb @sdetweil
            last edited by

            @sdetweil
            I’m having some really odd problems with the raspbian install. Starting to wonder about the hardware. It’s a RPi 2B that’s been rock solid for years, but for whatever reason it won’t boot from any newly flashed SD card - though it boots fine from the original.

            I have another one in a box somewhere. I’ll pull it out and give it a try – I’d hate to think I’ve wasted your time over flakey hardware – but the fact that the other one is working as expected with the previous MM version makes me think (hope!) that’s not the case.

            I’ll definitely keep you posted!

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

              @sdetweil
              I pulled out another Pi, flashed the OS and installed MM using the script you referenced earlier. It’s working perfectly. I’m still completely baffled. I’ve triple checked on the original SD image - it works as expected on the previous version of MM, but not on the current one… Ah well –

              Thank you for taking so much time to look into this, and I am sorry for having wasted so much of your time.

              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @blissb
                last edited by

                @blissb not wasted time, interesting problem.
                glad we’ve found something that resolves it.

                thank for your feedback

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @sdetweil I’m chiming in a bit late here. Has there been any more widespread report of calendar times being off? Mine worked flawless for years then the past few months times are off, presumably UTC as mentioned in this thread.

                  I’m having a hard time seeing what the actual solution was?

                  Thanks so much in advance!

                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @jasonumd
                    last edited by sdetweil

                    @jasonumd so far, every time events have been off, the system timezone has not been set correctly…

                    note that a docker container is its own system and needs ITS timezone set too…

                    what changed since it worked to now?

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    J 2 Replies Last reply Reply Quote 0
                    • J Offline
                      jasonumd @sdetweil
                      last edited by

                      @sdetweil I changed absolutely nothing. Just applied regular MM updates. I will investigate those two settings ASAP.

                      N 1 Reply Last reply Reply Quote 0
                      • N Offline
                        n1sni @jasonumd
                        last edited by

                        @jasonumd Same - I have been running this for years… and just did “git pull” and “npm update” in two separate module directories and now I’m UTC. “date” from the console shows the correct date/time.

                        Raspberry pi…
                        Linux mm 5.15.90-v7+ #1623 SMP Mon Jan 30 14:59:14 GMT 2023 armv7l GNU/Linux

                        Running the MagicMirror docker.

                        S 1 Reply Last reply Reply Quote 0
                        • S Do not disturb
                          sdetweil @n1sni
                          last edited by sdetweil

                          @n1sni edit the docker container parms to add

                          environment:
                                 TZ:your_timezone
                          

                          else it defaults to UTC

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

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

                            @sdetweil said in MagicMirror using the wrong time:

                            TZ=your_timezone

                            Wow, that was easy :)

                            Thank you!!

                            pi@mm:~/magicmirror/run $ pwd
                            /home/pi/magicmirror/run
                            pi@mm:~/magicmirror/run $ vi docker-compose.yml
                            
                            ...
                                devices:
                                  - /dev/vchiq
                                environment:
                                  DISPLAY: unix:0.0
                                  TZ: America/New_York   # <- This line added
                                network_mode: host
                            ...
                            
                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              jasonumd @sdetweil
                              last edited by

                              @sdetweil I just confirmed my system timezone is accurate. I’m not running MM via docker. I set this up probably 4 years ago. Perhaps I should do a fresh install.

                              S 1 Reply Last reply Reply Quote 0
                              • S Do not disturb
                                sdetweil @jasonumd
                                last edited by

                                @jasonumd just for the sake of fun testing

                                in the script you use to start MM add

                                export TZ=???? 
                                

                                where ??? is your timezone code
                                add this line before the

                                npm start
                                

                                line

                                if you are using my install script with PM2, then the script located at

                                ~/MagicMirror/installers/mm.sh
                                

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

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

                                  @sdetweil I’m not a linux guru. Added and rebooted. but I’m operating via Putty. Am I supposed to reboot while watching the screen and check for something?

                                  S 2 Replies Last reply Reply Quote 0
                                  • S Do not disturb
                                    sdetweil @jasonumd
                                    last edited by

                                    @jasonumd just seeing if MM reports correctly

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • S Do not disturb
                                      sdetweil @jasonumd
                                      last edited by

                                      @jasonumd didn’t need to reboot… if using pm2, then

                                      pm2 status
                                      pm2 restart xx

                                      where x is the number of the line of the MagicMirror app
                                      or the name shown on that same line (I set it up as MagicMirror, others get mm as they started mm.sh)

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      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