[systemd] update webcam-script

This commit is contained in:
Felix Buehler 2018-12-11 23:23:04 +01:00
parent dbd6704926
commit 54c7c6ac00
6 changed files with 17 additions and 20 deletions

8
systemd/webcam.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
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
exit $?