Real Time Clock setup
- Enable
i2cinraspi-config - Add
dtoverlay=i2c-rtc,ds1307to/boot/config.txt - Check system date is correct, update if necessary
- Set RTC from system date with
sudo hwclock -w - Read RTC date with
sudo hwclock -r
i2c in raspi-configdtoverlay=i2c-rtc,ds1307 to /boot/config.txtsudo hwclock -wsudo hwclock -r