update RTC installation 📺

This commit is contained in:
Yossi 2017-11-30 12:29:40 +02:00
parent 7b970cc606
commit 0211028080

View File

@ -313,20 +313,25 @@ echo "========== Setup RTC ============"
sudo apt-get install python-smbus i2c-tools sudo apt-get install python-smbus i2c-tools
# TODO: turn on ISC on raspi-config... # TODO: turn on ISC on raspi-config...
# add to sudo nano /boot/config.txt # add to sudo nano /boot/config.txt
# dtoverlay=i2c-rtc,pcf8523 echo "dtoverlay=i2c-rtc,ds3231" >> /boot/config.txt
echo "dtparam=i2c_arm=on" >> /boot/config.txt
# Remove hw-clock # Remove hw-clock
sudo apt-get -y remove fake-hwclock sudo apt-get -y remove fake-hwclock
sudo update-rc.d -f fake-hwclock remove sudo update-rc.d -f fake-hwclock remove
# copy new file to # copy new file to
#sudo nano /lib/udev/hwclock-set sudo wget https://dride.io/code/hwclock-set
# set HW clock
sudo hwclock -D -r
sudo cp dhcpd.conf /lib/udev/hwclock-set
sudo rm hwclock-set
# we will sync the current date form the app using BLE
# looks at /daemon/bluetooth/updateDate.js
echo "========== Install Dride-core [Cardigan] ============" echo "========== Install Dride-core [Cardigan] ============"
cd /home cd /home