WIP
parent
5ebf4f6e83
commit
9655e792a3
|
|
@ -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")"
|
||||
|
|
|
|||
Loading…
Reference in New Issue