added nano web editor for editin birdnet.conf

(doesn't work on phones, only on desktop)
This commit is contained in:
Patrick McGuire
2021-10-06 17:30:14 -04:00
parent 7cd299ebeb
commit a8250094af
5 changed files with 82 additions and 41 deletions
+13
View File
@@ -39,6 +39,19 @@ EOF
echo
echo " -$SOFAR species identified so far"
echo
MOST_RECENT="$(find ${EXTRACTED}/By_Date/$(date +%Y-%m-%d) \
| sort -t"%" -rk2 \
| head -n1 \
| cut -d'/' -f8)"
AT_TIME="$(find ${EXTRACTED}/By_Date/$(date +%Y-%m-%d) \
| sort -t"%" -rk2 \
| head -n1 \
| rev \
| cut -d'-' -f1 \
| rev \
| cut -d'.' -f1)"
echo " -Most recent species detection: ${MOST_RECENT//_/ } at ${AT_TIME}"
echo
if [ ${a} -ge 1 ];then
while read -r line;do
+4
View File
@@ -0,0 +1,4 @@
<?php
shell_exec("/home/pi/BirdNET-Lite/scripts/edit_birdnet.conf.sh");
header('Location: http://birdnetsystem.local:9898');
?>
+2
View File
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
sudo systemctl start edit_birdnet_conf.service
+4
View File
@@ -1,3 +1,7 @@
<form action="/scripts/edit_birdnet.conf.php">
<input type="submit" value="Edit the birdnet.conf file">
</form>
<form action="/scripts/restart_services.php">
<input type="submit" value="Restart ALL BirdNET-system Services">
</form>