Torsten Simon 3 anos atrás
pai
commit
bea85bc68f
1 arquivos alterados com 5 adições e 0 exclusões
  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'"