Linked Questions

83 votes
16 answers

How to force NTPD to update date/time after boot?

The Raspberry Pi lacks a hardware clock. How do I force NTPD to update date/time immediately after every boot? I'm running Raspbian and the Raspberry Pi is connected using an Ethernet cable.
Alessandro Da Rugna's user avatar
11 votes
8 answers

Raspberry Pi won't update time

I bought a Raspberry Pi 3 approximately two months ago, and since then time has never updated. Details: The operating system is a fresh installation of Raspbian Jessie (4.1.19-v7+). The Internet ...
Pygmalion's user avatar
  • 458
3 votes
1 answer

Recommended way for a python script to check NTP update status, and initiate an update if necessary?

I am writing a data logging python script and I would like it to find out if the system clock has been synchronized via NTP recently, and if not, to attempt to cause it to happen before proceeding. ...
uhoh's user avatar
  • 552
2 votes
1 answer

How to use ntp time as default time while using Raspberry Pi as a gateway?

I am using Raspberry Pi 4 as a gateway to my esp8266 devices. I have connected ethernet to Raspberry Pi for internet connection. It works fine. I want to generate NTP time in my ESP8266 device. When I ...
Pratik's user avatar
  • 31
2 votes
0 answers

How to manually adjust system clock for testing purposes

I have written a Python script that is set to run different functions at different days/times. I would like to test it by setting the system clock to 1-2 minutes before the dates/times that the Python ...
MattSidor's user avatar
  • 121
1 vote
2 answers

How to make sure RTC is accurate

I am using a RTC. I read the documentation for this module that it will lose a second every 24 hours. So, I assume i have to update it myself. After Googling I was drawn to this solution: hwclock --...
user avatar
1 vote
0 answers

AC Frequency Monitoring

There are multiple hardware solutions to do amp/current monitoring, but I cant seem to find one to do AC Frequency monitoring. Anyone have a pointer to board that can handle line power and return line ...
Stuart Siegler's user avatar
0 votes
3 answers

How to sync clock on raspberry pi with restricted internet traffic

I have a few raspberry pi's operating at a customer facility, and this facility has restricted the pi's traffic to only the IP of my server (digital ocean ubuntu droplet running a django application). ...
MattG's user avatar
  • 193
0 votes
0 answers

Raspberry pi4 does not synch to correct time after startup (ntp service running)

After startup my RPI synchs to the correct date, but the time remains about 90 minutes off (behind). sudo ntptime gives: sudo ntptime ntp_gettime() returns code 5 (ERROR) time e4e82bc8.c2d92000 Sun,...
Erik84750's user avatar
0 votes
0 answers

How to configure the Pi to automatically sync its time with the first android device that connects to it

I have a Raspberry Pi that has no access to internet. It is configured as an access point that I can connect to using my smartphone or tablet. Time on the Raspberry Pi is never correct after booting ...
Mehdi's user avatar
  • 101