diff --git a/scripts/index.html b/scripts/index.html index 16b861a..d137567 100644 --- a/scripts/index.html +++ b/scripts/index.html @@ -2,6 +2,10 @@ +
+ +
+
diff --git a/scripts/stop_core_services.php b/scripts/stop_core_services.php new file mode 100644 index 0000000..e335b68 --- /dev/null +++ b/scripts/stop_core_services.php @@ -0,0 +1,4 @@ + diff --git a/scripts/stop_core_services.sh b/scripts/stop_core_services.sh new file mode 100755 index 0000000..2f2c8f4 --- /dev/null +++ b/scripts/stop_core_services.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +# Restarts ALL services and removes ALL unprocessed audio + + +services=(birdnet_recording.service +birdnet_analysis.service +extraction.timer) + +for i in "${services[@]}";do + sudo systemctl stop ${i} +done +sudo rm -rf ${RECS_DIR}/$(date +%B-%Y/%d-%A)/* diff --git a/scripts/update_birdnet.php b/scripts/update_birdnet.php new file mode 100644 index 0000000..ff20b68 --- /dev/null +++ b/scripts/update_birdnet.php @@ -0,0 +1,4 @@ + /tmp/phpupdate.log 2&>1"); +header('Location: http://birdnetpi.local/index.html?success=true'); +?>