From 45e585b773b97222dbea776ce4a6c297e1e4701f Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 14 Apr 2025 04:33:31 +0200 Subject: [PATCH] Change location --- birdnet-pi/rootfs/etc/cont-finish.d/savestreamdata.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/birdnet-pi/rootfs/etc/cont-finish.d/savestreamdata.sh b/birdnet-pi/rootfs/etc/cont-finish.d/savestreamdata.sh index 662817120..b5f3873ca 100755 --- a/birdnet-pi/rootfs/etc/cont-finish.d/savestreamdata.sh +++ b/birdnet-pi/rootfs/etc/cont-finish.d/savestreamdata.sh @@ -29,13 +29,13 @@ if [ -d "$HOME"/BirdSongs/StreamData ]; then wait # Create the destination directory - mkdir -p /data/StreamData + mkdir -p /config/TemporaryFiles # Move only valid WAV files under 50MB shopt -s nullglob # Prevent errors if no files match for file in "$HOME"/BirdSongs/StreamData/*.wav; do if [ -f "$file" ] && [ "$(stat --format="%s" "$file")" -lt "$MAX_SIZE" ] && is_valid_wav "$file"; then - if mv -v "$file" /data/StreamData/; then + if mv -v "$file" /config/TemporaryFiles/; then bashio::log.info "Moved valid WAV file: $(basename "$file")" else bashio::log.error "Failed to move: $(basename "$file")"