Add log lines

This commit is contained in:
Alexandre
2025-02-04 20:40:06 +01:00
committed by GitHub
parent 19669f94c1
commit f059ddd64a

View File

@@ -89,6 +89,7 @@ apprisealert() {
notification+="$stopped_service"
notification+="<br><b>System:</b> ${SITE_NAME:-$(hostname)}"
notification+="<br>Available disk space: $(df -h "$HOME/BirdSongs" | awk 'NR==2 {print $4}')"
notification+="<br>3 last log lines: $(timeout 15 cat /proc/1/fd/1 | head -n 3)"
[[ -n "$BIRDNETPI_URL" ]] && notification+="<br><a href=\"$BIRDNETPI_URL\">Access your BirdNET-Pi</a>"
local TITLE="BirdNET-Analyzer Alert"