mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-20 19:16:08 +00:00
154563f34d
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.
32 lines
1.2 KiB
TypeScript
32 lines
1.2 KiB
TypeScript
// Generated by scripts/generate-db-types.ts from the migrated schema. Do not edit by hand:
|
|
// change the migration, then run `npm run gen:db-types`.
|
|
import type { InsertOptional } from './columns';
|
|
|
|
export interface FlightLiveStatesTable {
|
|
callsign: string;
|
|
service_date: string;
|
|
origin: string;
|
|
destination: string;
|
|
phase: InsertOptional<string>;
|
|
departed_at: InsertOptional<string | null>;
|
|
landed_at: InsertOptional<string | null>;
|
|
lat: InsertOptional<number | null>;
|
|
lng: InsertOptional<number | null>;
|
|
altitude_ft: InsertOptional<number | null>;
|
|
ground_speed_kt: InsertOptional<number | null>;
|
|
track_deg: InsertOptional<number | null>;
|
|
vertical_rate_fpm: InsertOptional<number | null>;
|
|
on_ground: InsertOptional<number | null>;
|
|
registration: InsertOptional<string | null>;
|
|
aircraft_type: InsertOptional<string | null>;
|
|
source: InsertOptional<string | null>;
|
|
first_seen_at: InsertOptional<string | null>;
|
|
last_seen_at: InsertOptional<string | null>;
|
|
fetched_at: InsertOptional<string | null>;
|
|
next_poll_at: InsertOptional<string | null>;
|
|
fail_count: InsertOptional<number>;
|
|
departed_notified: InsertOptional<number>;
|
|
landed_notified: InsertOptional<number>;
|
|
delay_notified: InsertOptional<number>;
|
|
}
|