Add historical flight track functionality

- Store track history with position, altitude, speed, and timestamp
- Automatic track point collection every 30 seconds when position changes
- API endpoint /api/aircraft/{hex}/history for individual aircraft tracks
- Frontend "Show History" button to display historical flight paths
- Click aircraft markers to show their historical track (dashed red line)
- Track cleanup: keep last 200 points per aircraft, 24-hour retention
- Add aircraft type badges in table view with color coding
- Start/end markers for historical tracks with timestamps

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Ole-Morten Duesund 2025-08-23 22:52:16 +02:00
commit 55710614da
6 changed files with 215 additions and 16 deletions

View file

@ -30,6 +30,7 @@
<div class="map-controls">
<button id="center-map">Center Map</button>
<button id="toggle-trails">Toggle Trails</button>
<button id="toggle-history">Show History</button>
</div>
<div class="legend">
@ -73,6 +74,7 @@
<tr>
<th>Flight</th>
<th>Hex</th>
<th>Type</th>
<th>Altitude</th>
<th>Speed</th>
<th>Track</th>