mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-25 19:14:39 +02:00
[cron] adding all cron-scripts
This commit is contained in:
parent
c3b682b26f
commit
749a7f45af
3 changed files with 73 additions and 0 deletions
15
cron/webcam.sh
Executable file
15
cron/webcam.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
## 0 * * * * cd ~/.dotfiles/cron/ && bash webcam.sh
|
||||
now=$(date +"%Y_%m_%d_%H_%M_%S")
|
||||
path="$HOME/Pictures/hour-pics/"
|
||||
size="1280x720"
|
||||
|
||||
mkdir -p $path
|
||||
streamer -q -f jpeg -s $size -o $path$now.jpeg -r 1
|
||||
grey="$(python3 ./blackcheck.py -i $path$now.jpeg -d 10)"
|
||||
# echo $grey
|
||||
if [ "$grey" = "True" ] ; then
|
||||
# echo "Has to move"
|
||||
mv $path$now.jpeg ${path}black/$now.jpeg
|
||||
fi
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue