From a8250094afc1753b86c1af1b1e12c18e9ce76967 Mon Sep 17 00:00:00 2001 From: Patrick McGuire Date: Wed, 6 Oct 2021 17:30:14 -0400 Subject: [PATCH] added nano web editor for editin birdnet.conf (doesn't work on phones, only on desktop) --- scripts/birdnet_stats.sh | 13 +++++ scripts/edit_birdnet.conf.php | 4 ++ scripts/edit_birdnet.conf.sh | 2 + scripts/index.html | 4 ++ templates/index.html | 100 ++++++++++++++++++++-------------- 5 files changed, 82 insertions(+), 41 deletions(-) create mode 100644 scripts/edit_birdnet.conf.php create mode 100755 scripts/edit_birdnet.conf.sh diff --git a/scripts/birdnet_stats.sh b/scripts/birdnet_stats.sh index ddf9866..2c7836e 100755 --- a/scripts/birdnet_stats.sh +++ b/scripts/birdnet_stats.sh @@ -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 diff --git a/scripts/edit_birdnet.conf.php b/scripts/edit_birdnet.conf.php new file mode 100644 index 0000000..6fb7952 --- /dev/null +++ b/scripts/edit_birdnet.conf.php @@ -0,0 +1,4 @@ + diff --git a/scripts/edit_birdnet.conf.sh b/scripts/edit_birdnet.conf.sh new file mode 100755 index 0000000..197b706 --- /dev/null +++ b/scripts/edit_birdnet.conf.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +sudo systemctl start edit_birdnet_conf.service diff --git a/scripts/index.html b/scripts/index.html index a5ace13..dbda4d2 100644 --- a/scripts/index.html +++ b/scripts/index.html @@ -1,3 +1,7 @@ +
+ +
+
diff --git a/templates/index.html b/templates/index.html index c7fae41..2325c24 100644 --- a/templates/index.html +++ b/templates/index.html @@ -54,6 +54,15 @@ h1 { color: #999; } +h2 { + font-size: 16px; + font-weight: normal; + white-space: nowrap; + overflow-x: hidden; + text-overflow: ellipsis; + color: #999; +} + h1 a { color: #000; margin: 0 4px; @@ -128,12 +137,13 @@ td { } td:nth-child(2) { - width: 80%; + width: 100%; } td:nth-child(3), th:nth-child(3) { - padding: 0 20px 0 20px; + #padding: 0 20px 0 20px; + width: 0px; } th:nth-child(4), @@ -269,9 +279,9 @@ footer { - - - + + + @@ -312,29 +322,14 @@ footer {
-
-
- 5 directories - 1 file - -
-
- - - @@ -346,9 +341,6 @@ footer { By_Common_Name - - - @@ -358,9 +350,6 @@ footer { By_Date - - - @@ -370,34 +359,66 @@ footer { By_Scientific_Name - - - - - - + + + + + + + + - - - + + + + + + + + + + + + + + + + - - -
- - Name + Extractions - Size - - Modified -
- + Processed
+ Tools +
- + scripts
+ + + birdlog + +
+ + + extractionlog + +
+ + + BirdNET-Lite Statistics + +
@@ -406,9 +427,6 @@ footer { stream 0 B