From 8961c9d45f3ae2933b0048ecea4dc3bf5a50612a Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Wed, 20 Jul 2022 16:41:37 -0400 Subject: [PATCH 1/2] Print service status on Service Controls --- scripts/service_controls.php | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/scripts/service_controls.php b/scripts/service_controls.php index 002cd4e..ad86a1e 100644 --- a/scripts/service_controls.php +++ b/scripts/service_controls.php @@ -1,73 +1,83 @@ + 0) { + echo "(active)"; + } else { + echo "(inactive)"; + } +} +?>
-
-

Live Audio Stream

+

Live Audio Stream

-

Web Terminal

+

Web Terminal

-

BirdNET Log

+

BirdNET Log

-

Extraction Service

+

Extraction Service

-

BirdNET Analysis Server

+

BirdNET Analysis Server

-

BirdNET Analysis Client

+

BirdNET Analysis Client

-

Streamlit Statistics

+

Streamlit Statistics

-

Recording Service

+

Recording Service

-

Chart Viewer

+

Chart Viewer

-

Spectrogram Viewer

+

Spectrogram Viewer

@@ -75,8 +85,8 @@
-
+
-
+
From eafc61f56289523a1375d3995241ce80f0c1ea37 Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Thu, 21 Jul 2022 10:41:23 -0400 Subject: [PATCH 2/2] stop error message from throwing an error --- scripts/utils/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils/notifications.py b/scripts/utils/notifications.py index c3ce783..17abcd3 100644 --- a/scripts/utils/notifications.py +++ b/scripts/utils/notifications.py @@ -59,7 +59,7 @@ def sendAppriseNotifications(species, confidence, path, date, time, week, latitu image_url = 'https://farm'+str(data["farm"])+'.static.flickr.com/'+str(data["server"])+'/'+str(data["id"])+'_'+str(data["secret"])+'_n.jpg' flickr_images[comName] = image_url except Exception as e: - print("FLICKR API ERROR: "+e) + print("FLICKR API ERROR: "+str(e)) image_url = "" else: image_url = flickr_images[comName]