Fix RTC issues

pull/182/head
Yossi 2018-03-06 18:57:59 +02:00
parent 386dfdf443
commit ffc73f3aba
2 changed files with 7 additions and 3 deletions

View File

@ -211,11 +211,12 @@ sudo apt-get install python-smbus i2c-tools -y
# add to /boot/config.txt
echo "dtoverlay=i2c-rtc,ds3231,dwc2" >> /boot/config.txt
echo "dtoverlay=i2c-rtc,ds1307" >> /boot/config.txt
echo "dtparam=i2c_arm=on" >> /boot/config.txt
# add to /boot/config.txt
echo "i2c-dev" >> /etc/modules
echo "rtc-ds1307" >> /etc/modules
# Remove hw-clock

View File

@ -14,9 +14,12 @@
case "$1" in
start)
echo "Setting up HwClock"
sudo hwclock -s
echo "Starting dride-core"
#blink LED
sudo python /home/Cardigan/modules/indicators/python/states/standalone.py welcome
#blink LED
sudo python /home/Cardigan/modules/indicators/python/states/standalone.py welcome
# decode undecoded clips on startup
sudo node /home/Cardigan/modules/video/helpers/ensureAllClipsAreDecoded.js &