analysis uses new StreamData location

This commit is contained in:
mcguirepr89
2022-06-04 13:09:48 -04:00
parent 32bb2b7f32
commit b796ec2094
+2 -2
View File
@@ -168,9 +168,9 @@ until grep 5050 <(netstat -tulpn 2>&1) &> /dev/null 2>&1;do
sleep 1
done
if [ $(find ${RECS_DIR} -maxdepth 1 -name '*wav' | wc -l) -gt 0 ];then
if [ $(find ${RECS_DIR}/StreamData -maxdepth 1 -name '*wav' | wc -l) -gt 0 ];then
find $RECS_DIR -maxdepth 1 -name '*wav' -type f -size 0 -delete
run_birdnet "${RECS_DIR}"
run_birdnet "${RECS_DIR}/StreamData"
fi
YESTERDAY="$RECS_DIR/$(date --date="yesterday" "+%B-%Y/%d-%A")"