2018-08-27 00:31:44 +02:00
|
|
|
sudo apt-get update && sudo apt-get dist-upgrade -y
|
2018-08-27 13:00:17 +02:00
|
|
|
sudo apt-get clean && sudo apt-get autoremove -y
|
2018-08-27 16:04:30 +02:00
|
|
|
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
|
2018-08-27 16:51:10 +02:00
|
|
|
rm /home/pi/E-Paper-Master/Packages-installer
|
2018-08-27 16:30:18 +02:00
|
|
|
|
2018-08-27 20:47:16 +02:00
|
|
|
sudo pip3 install pyowm
|
|
|
|
sudo pip3 install ics
|
2018-08-27 16:04:30 +02:00
|
|
|
pip3 install pyowm
|
|
|
|
pip3 install ics
|
2018-08-27 16:30:18 +02:00
|
|
|
|
2018-08-27 16:04:30 +02:00
|
|
|
sudo apt-get install supervisor -y
|
|
|
|
|
2018-08-27 16:30:18 +02:00
|
|
|
sudo bash -c 'cat > /etc/supervisor/conf.d/E-Paper.conf' << EOF
|
2018-08-27 16:04:30 +02:00
|
|
|
[program:E-Paper]
|
2018-08-27 20:47:16 +02:00
|
|
|
command = /usr/bin/python3.5 /home/pi/E-Paper-Master/Calendar/stable.py
|
2018-08-27 16:04:30 +02:00
|
|
|
stdout_logfile = /home/pi/E-Paper-Master/E-Paper.log
|
|
|
|
stderr_logfile = /home/pi/E-Paper-Master/E-Paper-err.log
|
|
|
|
EOF
|
2018-08-27 16:30:18 +02:00
|
|
|
|
|
|
|
sudo service supervisor start E-Paper
|