[systemd] Updating services
This commit is contained in:
@ -60,9 +60,9 @@ if [ "$1" = "orchard" ]; then
|
||||
host="mobian.local"
|
||||
fi
|
||||
|
||||
ROOT="media/photos/misc/webcams"
|
||||
mkdir -p /$ROOT/$1/$(date +%Y)/$(date +%m)/$(date +%d)/
|
||||
ROOT="/var/photos/misc/webcams"
|
||||
filepath="$1/$(date +%Y)/$(date +%m)/$(date +%d)/$(date +%Y%m%d%H%M%S).jpg"
|
||||
mkdir -p /$ROOT/$1/$(date +%Y)/$(date +%m)/$(date +%d)/
|
||||
curl $host:$port/snapshot -o /$ROOT/$filepath
|
||||
url="https://files.lab.unbl.ink/webcams/$filepath"
|
||||
curl -H prio:low -H "click:$url" -d "Captured photo from $1 successfully" https://ntfy.unbl.ink/webcams
|
||||
|
||||
Reference in New Issue
Block a user