A live bird collage card for your Home Assistant dashboard.
Check the disk usage of the filesystem hosting the processed recordings, not necessarily the root filesystem
Steve Doddaeb6df232d82
diff --git a/scripts/disk_check.sh b/scripts/disk_check.shindex 27fef212..c6c98d8f 100755--- a/scripts/disk_check.sh+++ b/scripts/disk_check.sh@@ -1,9 +1,10 @@#!/usr/bin/env bashset -x-used="$(df -h / | tail -n1 | awk '{print $5}')"++source /etc/birdnet/birdnet.conf+used="$(df -h ${EXTRACTED} | tail -n1 | awk '{print $5}')"if [ "${used//%}" -ge 95 ]; then- source /etc/birdnet/birdnet.confcase $FULL_DISK inpurge) echo "Removing oldest data"