-
-
Save rocky1138/7a1a6770187da4d60d4a851ca643d74f to your computer and use it in GitHub Desktop.
Revisions
-
rocky1138 created this gist
Nov 16, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ #!/bin/bash # sudo crontab -e # 0,30 * * * * /root/snap # https://johnrockefeller.net/guelph-webcam 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 kwat.chat:~/sites/johnrockefeller.net/guelph-webcam/downtown-guelph.jpg chown rocky1138 /home/rocky1138/Sync/My\ Pictures/Guelph/Webcam/$DATETIME chmod 755 /home/rocky1138/Sync/My\ Pictures/Guelph/Webcam/$DATETIME