Skip to content

Instantly share code, notes, and snippets.

@rocky1138 rocky1138/snap
Created Nov 16, 2018

What would you like to do?
Downtown Guelph Webcam Bash Script
# sudo crontab -e
# 0,30 * * * * /root/snap
DATETIME=$(date +%Y%m%d_%H%M%S).jpg
uvcdynctrl -d /dev/video1 -s 'Focus, Auto' 0
uvcdynctrl -d /dev/video1 -s 'Focus (absolute)' 0
uvcdynctrl --device=/dev/video1 -s 'LED1 Mode' 0
fswebcam --device=/dev/video1 -r 1920x1080 --jpeg 90 -D 2 -F 1 -p YUYV -S 75 --no-shadow --no-underlay --line-colour=#FF000000 --banner-colour=#FF000000 --set sharpness=65% --set autofocus=false --set saturation=60% --set white_balance_temperature_auto=true /home/rocky1138/Sync/My\ Pictures/Guelph/Webcam/$DATETIME
scp /home/rocky1138/Sync/My\ Pictures/Guelph/Webcam/$DATETIME
chown rocky1138 /home/rocky1138/Sync/My\ Pictures/Guelph/Webcam/$DATETIME
chmod 755 /home/rocky1138/Sync/My\ Pictures/Guelph/Webcam/$DATETIME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.