sudo raspi-config
sudo reboot
sudo apt install python-smbus i2c-tools
sudo i2cdetect -y 1ID #68 have to appear, later it changed to UU
sudo nano /boot/config.txtfor DS3231 add to file
dtoverlay=i2c-rtc,ds3231
sudo reboot
sudo i2cdetect -y 1shows UU
sudo apt -y remove fake-hwclock sudo update-rc.d -f fake-hwclock remove
sudo nano /lib/udev/hwclock-setfind
if [ -e /run/systemd/system ] ; then exit 0 fichange to (comments with #)
#if [ -e /run/systemd/system ] ; then # exit 0 #fitest with
sudo hwclock -D -r
datewrite to DS3231
sudo hwclock -wand test
sudo hwclock -r