From f059ddd64acb3a4406b5e364cdce9871f79d359f Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 4 Feb 2025 20:40:06 +0100 Subject: [PATCH] Add log lines --- birdnet-pi/rootfs/custom-services.d/30-monitoring.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh b/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh index e112e5450..60d5b87da 100755 --- a/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh +++ b/birdnet-pi/rootfs/custom-services.d/30-monitoring.sh @@ -89,6 +89,7 @@ apprisealert() { notification+="$stopped_service" notification+="
System: ${SITE_NAME:-$(hostname)}" notification+="
Available disk space: $(df -h "$HOME/BirdSongs" | awk 'NR==2 {print $4}')" + notification+="
3 last log lines: $(timeout 15 cat /proc/1/fd/1 | head -n 3)" [[ -n "$BIRDNETPI_URL" ]] && notification+="
Access your BirdNET-Pi" local TITLE="BirdNET-Analyzer Alert"