vigil

Security camera system built on motion and yolov7.
Log | Files | Refs

commit 355d69a653d55101b51c31179070643ebfc08125
parent 3b62c8f759b75da9b65a37dc99d6b0037d601325
Author: dwrz <dwrz@dwrz.net>
Date:   Fri, 28 Oct 2022 13:22:48 +0000

Fix notify script

Diffstat:
Mscripts/notify | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/scripts/notify b/scripts/notify @@ -39,17 +39,17 @@ upload() { local name="$1" backblaze-b2 upload-file \ - --threads 2 \ - "dwrz-motion" \ - "/${PROJECT}/motion/${name}.jpg" \ - "${HOSTNAME}/${name}.jpg" + --threads 2 \ + "dwrz-motion" \ + "${PROJECT}/motion/${name}.jpg" \ + "${HOSTNAME}/${name}.jpg" } delete_outdated() { local filepath="$1" rm -f "$1" - rm -f "/${PROJECT}/motion/${name}.jpg" + rm -f "${PROJECT}/motion/${name}.jpg" find "${HOME}"/photo/ -mmin +5 -delete find "${HOME}"/timelapse/ -mmin +60 -delete find "${PROJECT}/motion/" -iname "*.jpg" -mmin +5 -delete