[systemd] Updating services

This commit is contained in:
2025-02-07 13:44:14 -05:00
parent a25d8e4530
commit 1015d4b9c3
7 changed files with 36 additions and 5 deletions

View File

@ -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