Torsten Simon 3 yıl önce
ebeveyn
işleme
bea85bc68f
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 5 0
      install.sh

+ 5 - 0
install.sh

@@ -2,3 +2,8 @@
 
 sudo apt-get update && sudo apt-get install python3-pip
 pip3 install -r requirements.txt
+
+docker-compose up -d
+(crontab -l 2>/dev/null; echo "@reboot python3 /home/pi/solar-monitor/data-writer.py") | crontab -
+# python3 data-writer.py
+echo "Reboot pi to complete setup and start the data job or run 'python3 /home/pi/solar-monitor/data-writer.py'"