master
bel 2024-09-03 14:43:08 -06:00
parent 5ebf4f6e83
commit 9655e792a3
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#! /bin/bash
main() {
local nonrecent_unix="$(($(_date +%s) - 24 * 60 * 60))" # 1d ago
local nonrecent_unix="$(($(_date +%s) - 0 * 24 * 60 * 60))" # 1d ago # TODO now
local nonrecent_ts="$(_date -d @$nonrecent_unix -u +%Y-%m-%dT%H:%M:%SZ)"
for uuid in $(
@ -83,7 +83,7 @@ main() {
echo no movement in "$recording..$next_recording"
for j in $(seq $recording $next_recording); do
for stream in ${streams[@]}; do
api "/api/cameras/$uuid/$stream/view.mp4" \
echo api "/api/cameras/$uuid/$stream/view.mp4" \
-X DELETE \
-H 'Content-Type: application/json' \
-d "$(printf '{"s": "%s"}' "$j")"