diff --git a/testdata/moonfire-nvr/movement_detection_via_api_ffmpeg.sh b/testdata/moonfire-nvr/movement_detection_via_api_ffmpeg.sh index 5c7cb35..d0cfd97 100644 --- a/testdata/moonfire-nvr/movement_detection_via_api_ffmpeg.sh +++ b/testdata/moonfire-nvr/movement_detection_via_api_ffmpeg.sh @@ -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")"