We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
A Python module to deal with DS1302 RTC chip on Raspberry Pi
Simple Python module to deal with DS1302 RTC on Raspberry Pi
sudo apt-get -y install python3-rpi.gpiosudo python3 setup.py install
ds1302_get_utc
ds1302_set_utc
Typically call at RPi startup
sudo date -s `./ds1302_get_utc`
Since RTC store only second and not millisecond a 1s delta can occur (or more after a few days)
# drift in secondecho $(($(date -u -d`ds1302_get_utc` +%s) - $(date -u +%s)))# human readableecho "RTC `ds1302_get_utc`"; echo "SYS `date --utc +%FT%TZ`";