[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

@ -1,5 +1,5 @@
#!/bin/bash
BASEDIR="/media/photos/misc/nytimes"
BASEDIR="/var/photos/misc/nytimes"
DATE=$(date +"%Y-%m-%d")
TMPFILE=/tmp/nyt.pdf
OUTFILE=$BASEDIR/$DATE.jpg

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

12
bin/.bin/webcam-capture-all Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
/home/powellc/.bin/webcam-capture frontyard
/home/powellc/.bin/webcam-capture basement_table
/home/powellc/.bin/webcam-capture mailbox
/home/powellc/.bin/webcam-capture basement_extension
/home/powellc/.bin/webcam-capture backyard_low
/home/powellc/.bin/webcam-capture basement_cape
/home/powellc/.bin/webcam-capture house
/home/powellc/.bin/webcam-capture backyard
/home/powellc/.bin/webcam-capture bulkhead
/home/powellc/.bin/webcam-capture orchard