EbenKouao / pi-camera-stream-flask

Create your own live camera stream using a Raspberry Pi 4
MIT License
320 stars 126 forks source link

Use cron instead of editing /etc/profile #19

Open emtneutrino opened 2 years ago

emtneutrino commented 2 years ago

I think it's better to use cron to run main.py instead of doing so in /etc/profile. It looks like every time you log in more than once, it tries to run main.py and errors show up. $sudo crontab -u root -e @reboot python3 /home/pi/pi-camera-stream-flask/main.py