mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 09:54:14 +00:00
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:
@@ -17,6 +17,18 @@ const ca: NotificationLocale = {
|
||||
title: `Reserva nova: ${p.booking}`,
|
||||
body: `${p.actor} va afegir una reserva "${p.booking}" (${p.type}) a "${p.trip}".`,
|
||||
}),
|
||||
flight_departed: (p) => ({
|
||||
title: `${p.flight} ha enlairat`,
|
||||
body: `${p.flight} de ${p.from} a ${p.to} és a l'aire.`,
|
||||
}),
|
||||
flight_delayed: (p) => ({
|
||||
title: `${p.flight} va amb retard`,
|
||||
body: `${p.flight} de ${p.from} a ${p.to} porta uns ${p.delay} minuts de retard.`,
|
||||
}),
|
||||
flight_landed: (p) => ({
|
||||
title: `${p.flight} ha aterrat`,
|
||||
body: `${p.flight} des de ${p.from} ha aterrat a ${p.to}.`,
|
||||
}),
|
||||
trip_reminder: (p) => ({
|
||||
title: `Recordatori: ${p.trip}`,
|
||||
body: `El teu viatge "${p.trip}" s'apropa!`,
|
||||
|
||||
Reference in New Issue
Block a user