Install an RTC module to keep time for your Rasbperry Pi instead of using an internet ntp service, or if your Pi is not connected to the internet.
UPDATE - I've made some updates to this repo to support the Pi5 which has an onboard RTC clock that you need to disable if using the module in this video. I posted these in a [new video]( • Setup a PI4 RTC on a PI5 (Disable Pi5 onbo... )
Takes the load of keeping time off the CPU and prevents time drift.
The RTC module has a battery to maintain time when the Pi is powered down.
Not a difficult task, but a few things you need to know! Watch this til the end (less than 15 minutes) and you'll be all set!
Source code can be found in this project.
https://github.com/jonnymacs/rpi-ble-...
Follow me on X https://x.com/jonnymacs
Join my Discord / discord