#Add two chronjobs for shooting images and uploadng to GCS
sudo crontab -e
#start camera script on startup
@reboot sudo -u pi /usr/bin/python /home/pi/timelaps/timelaps.py 2>&1 | /usr/bin/logger -t TL_CAM
#run movetogcs.sh file once per minute - ony one instance is allowed
* * * * * /usr/bin/flock -n /tmp/movetogcs.lockfile sudo -u pi /home/pi/timelaps/movetogcs.sh 2>&1 | /usr/bin/logger -t TL_MOVETOGCS