API Service
Minimal Flask HTTP API that reads from the fr24 PostgreSQL schema and exposes data for the noisemap UI.
Endpoints
| Method |
Path |
Description |
| GET |
/health |
API + DB liveness check |
| GET |
/dashboard/status |
Ingest pipeline stats (captures, packets, processing cursor, aircraft, flights) |
| GET |
/viewer/config |
Static system config for the map viewer |
| GET |
/captures |
List capture sessions (?limit=50) |
| GET |
/aircraft |
List aircraft (?limit=100) |
| GET |
/flights |
List flights (?limit=100&status=active) |
Dependencies
flask — HTTP server
psycopg2-binary — PostgreSQL driver
Environment variables
| Variable |
Default |
Description |
POSTGRES_HOST |
required |
DB host |
POSTGRES_PORT |
5432 |
DB port |
POSTGRES_DB |
required |
DB name |
POSTGRES_USER |
required |
DB user |
POSTGRES_PASSWORD |
required |
DB password |
API_PORT |
8080 |
Port to listen on |
Run locally
Build & run via Docker