21 lines
730 B
Text
21 lines
730 B
Text
sudo apt-get update && sudo apt-get dist-upgrade -y
|
|
sudo apt-get clean && sudo apt-get autoremove -y
|
|
git clone https://github.com/aceisace/Raspberry-Pi-Google-Calendar-with-E-Paper-display
|
|
mv Raspberry-Pi-Google-Calendar-with-E-Paper-display E-Paper-Master
|
|
rm /home/pi/E-Paper-Master/Packages-installer
|
|
|
|
sudo pip3 install pyowm
|
|
sudo pip3 install ics
|
|
pip3 install pyowm
|
|
pip3 install ics
|
|
|
|
sudo apt-get install supervisor -y
|
|
|
|
sudo bash -c 'cat > /etc/supervisor/conf.d/E-Paper.conf' << EOF
|
|
[program:E-Paper]
|
|
command = /usr/bin/python3.5 /home/pi/E-Paper-Master/Calendar/stable.py
|
|
stdout_logfile = /home/pi/E-Paper-Master/E-Paper.log
|
|
stderr_logfile = /home/pi/E-Paper-Master/E-Paper-err.log
|
|
EOF
|
|
|
|
sudo service supervisor start E-Paper
|