5 last log lines

This commit is contained in:
Alexandre
2025-02-05 11:28:17 +01:00
committed by GitHub
parent c76ec005a2
commit 953c7a2bbe

View File

@@ -90,8 +90,8 @@ 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>----------------------"
notification+="<br>3 last log lines: $(timeout 15 cat /proc/1/fd/1 | head -n 3)"
notification+="<br>----Last log lines----"
notification+="<br> $(timeout 15 cat /proc/1/fd/1 | head -n 5)"
notification+="<br>----------------------"
[[ -n "$BIRDNETPI_URL" ]] && notification+="<br><a href=\"$BIRDNETPI_URL\">Access your BirdNET-Pi</a>"