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

Time and Date Do not Update

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 3 Posters 2.2k 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.
  • H Offline
    hall1458
    last edited by Aug 16, 2017, 4:34 AM

    Hello,
    I’m building my first mirror, and I’m having trouble with the time and date. I followed the installation instructions very closely, and everything was working at first. However, I realized that when I shut everything down and turned it on a few days earlier, the system date and time started from right where they left off (right now I’m about 6 days behind). I’ve read through a few forums and haven’t gotten it to work. I realize this is not a Magic Mirror question, but more of a RPi system question.

    -I definitely have the correct time zone, region, etc. This does not correct anything if I’m off.
    -The time updates when I do this: "sudo date -s “Thu Aug 9 21:31:26 UTC 2012"” but then does not update if the pi is turned off and on again.
    -I’m connected through my wifi- not an ethernet cable.
    -I’ve also tried this since it’s been suggested:

    //sudo /etc/init.d/ntp stop
    //sudo /etc/init.d/ntp start
    

    This is probably a rather simple fix, but I’m new to this. Any help is appreciated.

    Thanks!

    H 1 Reply Last reply Sep 1, 2017, 4:22 PM Reply Quote 0
    • H Offline
      hall1458 @hall1458
      last edited by Sep 1, 2017, 4:22 PM

      Does anyone have any advice?

      M B 2 Replies Last reply Sep 2, 2017, 1:08 AM Reply Quote 0
      • M Offline
        Mykle1 Project Sponsor Module Developer @hall1458
        last edited by Sep 2, 2017, 1:08 AM

        @hall1458 said in Time and Date Do not Update:

        Does anyone have any advice?

        Since you’ve been waiting for 17 days for help, then perhaps you’ll spend the time to start from scratch. Wipe your SD card, get a new raspbian image and install that. You shouldn’t have to run any commands for your time and date to work properly, other than setting it initially.

        Just my 2 cents

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • B Offline
          bhepler Module Developer @hall1458
          last edited by Sep 2, 2017, 2:46 AM

          @hall1458 Wow. Dude, I’m sorry that nobody has stepped in to help you out. I’m not much of a *nix guy, but I’ve been dealing with this at work for various reasons. I’ll do what I can.

          The NTP service should synchronize your Pi’s clock with one of many time servers out on the internet. If you get a terminal onto your Pi and type ps ax | grep ntpd you should see this line in return: 602 ? Ss 0:04 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 106:111. Some parts will be different. This is good. If all you see is grep --color=auto ntp then the NTP service isn’t running. Post back here and we’ll get that fixed.

          Assuming that NTP is running on your pi, you will want to check the configuration of your NTP server. Type nano /etc/ntp.conf. If you see a blank screen/file, then you have a problem. Assuming you do see a file, you want to look for the following lines:

          # pool: 
          server 0.debian.pool.ntp.org iburst
          server 1.debian.pool.ntp.org iburst
          server 2.debian.pool.ntp.org iburst
          server 3.debian.pool.ntp.org iburst
          

          These are the servers that your Pi will be checking for a valid time. You can manually check them as well. Exit the /etc/ntp.conf file and type ntpq -pn and wait. You should see something like this:

               remote           refid      st t when poll reach   delay   offset  jitter
          ==============================================================================
          +173.71.73.207   .PPS.            1 u  856 1024  377   18.624   -1.660   5.766
          +66.228.59.187   128.59.0.245     2 u  468 1024  377   27.636    0.276   6.356
          *199.102.46.76   .GPS.            1 u  839 1024  377   37.422    0.189   4.440
          +23.239.24.67    200.98.196.212   2 u  713 1024  377   48.940   -1.173   2.743
          

          At least one of those lines should have an asterisk at the beginning. Give it a go and report back.

          1 Reply Last reply Reply Quote 1
          • 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