feat(flight-live): follow booked flights live from keyless ADS-B feeds

A new flight-live domain polls the open feeds adsb.lol and adsb.fi (no key,
no cost; adsb.fi only on self-hosted installs, its terms are non-commercial)
for every booked flight leg in its watch window, derives phase, take-off,
landing, delay and an arrival estimate, and pushes changes as flight:live.
GET /api/trips/:tripId/flights/live, the MCP tool get_trip_flight_status,
notifications for take-off, landing and delays, and the admin switch
flight_live_enabled (FLIGHT_LIVE_ENABLED wins) come with it.
This commit is contained in:
Maurice
2026-11-13 15:29:03 +01:00
parent 3365511b10
commit 154563f34d
143 changed files with 5048 additions and 14 deletions
@@ -16,6 +16,18 @@ const th: NotificationLocale = {
title: `การจองใหม่: ${p.booking}`,
body: `${p.actor} เพิ่ม${p.type}ใหม่ "${p.booking}" ลงใน "${p.trip}"`,
}),
flight_departed: (p) => ({
title: `เที่ยวบิน ${p.flight} ออกเดินทางแล้ว`,
body: `เที่ยวบิน ${p.flight} จาก ${p.from} ไป ${p.to} อยู่บนอากาศแล้ว`,
}),
flight_delayed: (p) => ({
title: `เที่ยวบิน ${p.flight} ล่าช้า`,
body: `เที่ยวบิน ${p.flight} จาก ${p.from} ไป ${p.to} ล่าช้ากว่ากำหนดประมาณ ${p.delay} นาที`,
}),
flight_landed: (p) => ({
title: `เที่ยวบิน ${p.flight} ลงจอดแล้ว`,
body: `เที่ยวบิน ${p.flight} จาก ${p.from} ลงจอดที่ ${p.to} แล้ว`,
}),
trip_reminder: (p) => ({
title: `แจ้งเตือนทริป: ${p.trip}`,
body: `ทริป "${p.trip}" ของคุณกำลังจะมาถึงเร็ว ๆ นี้!`,