add last change time of alertlist to PA webpage

This commit is contained in:
kx1t
2025-03-27 16:37:34 -04:00
parent 4e3a7fc096
commit b12f823404
2 changed files with 2 additions and 1 deletions

View File

@@ -107,7 +107,7 @@
<summary style="font-weight: 900; font: 14px/1.4 'Helvetica Neue', Arial, sans-serif;">Executive Summary</summary>
<ul>
<li>Last update: ##LASTUPDATE##
<li>Click <a href="##ALERTLIST##" target="_blank">here</a> for the list of monitored aircraft
<li>Click <a href="##ALERTLIST##" target="_blank">here</a> for the list of monitored aircraft. This list was last updated on ##ALERTLISTUPDATE##.
<li>Right-click <a href="##CONCATLIST##" target="_blank">this link</a> to save a CSV version of the table below.
<li>Aircraft are listed in reverse chronological order. Click the header of a column to resort.
<li>Note that for each aircraft, only the first observation of the day is listed. Additional flights, if any, can be seen on the Flight Map link (ICAO field).

View File

@@ -831,6 +831,7 @@ sed -i "s|##NAME##|$NAME|g" "$TMPDIR"/plalert-index.tmp
sed -i "s|##ADSBLINK##|$ADSBLINK|g" "$TMPDIR"/plalert-index.tmp
sed -i "s|##LASTUPDATE##|$LASTUPDATE|g" "$TMPDIR"/plalert-index.tmp
sed -i "s|##ALERTLIST##|$ALERTLIST|g" "$TMPDIR"/plalert-index.tmp
sed -i "s|##ALERTLISTUPDATE##|$(stat -c "%y" /usr/share/planefence/persist/.internal/plane-alert-db.txt | sed 's/\.[0-9]*//')|g" "$TMPDIR"/plalert-index.tmp
sed -i "s|##CONCATLIST##|$CONCATLIST|g" "$TMPDIR"/plalert-index.tmp
sed -i "s|##HISTTIME##|$HISTTIME|g" "$TMPDIR"/plalert-index.tmp
sed -i "s|##BUILD##|$([[ -f /usr/share/planefence/branch ]] && cat /usr/share/planefence/branch || cat /root/.buildtime)|g" "$TMPDIR"/plalert-index.tmp