# yashmulgaonkar/flightscnr_pi architecture

> Architecture diagram of the GitHub repository yashmulgaonkar/flightscnr_pi, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yashmulgaonkar/flightscnr_pi
- Repository: https://github.com/yashmulgaonkar/flightscnr_pi

## Overview

FlightScnr Pi is a Raspberry Pi touch-display flight and marine tracker with a local web setup portal. The user configures sources and display options, then views live traffic on the radar, opens flight or vessel details, and can follow a tracked flight on a route map. The README also documents weather, map and hazard overlays, clocks, forecast, arrivals/departures, and audio. Source-index references support the sampled runtime links; where subsystem wiring was not shown, edges are omitted rather than inferred.

Main entry points: [`flightscnr/display/round_touch/screens/radar.py`](https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/display/round_touch/screens/radar.py) (Radar screen), [`flightscnr/display/round_touch/app.py`](https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/display/round_touch/app.py) (Display controller), [`flightscnr/web/app.py`](https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/web/app.py) (Web portal), [`flightscnr/utilities`](https://github.com/yashmulgaonkar/flightscnr_pi/tree/main/flightscnr/utilities) (Flight position sources)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime and display"]
  node_launcher["Application startup<br/>[flightscnr.py]"]
  node_display_app["Display controller<br/>[app.py]"]
  node_radar["Radar screen<br/>[radar.py]"]
  node_flight_detail["Flight detail<br/>[flight_detail.py]"]
  node_tracked["Tracked flight<br/>[tracked.py]"]
  node_other_screens["Other screens"]
  node_hud["Radar HUD<br/>[radar_hud.py]"]
end

subgraph group_traffic["Traffic and enrichment"]
  node_flight_sources["Flight position sources"]
  node_fr24["FR24 client<br/>[fr24_client.py]"]
  node_ais["Marine AIS<br/>[ais_client.py]"]
  node_alerts["Aircraft alerts<br/>[aircraft_alert.py]"]
end

subgraph group_layers["Maps and overlays"]
  node_basemap["Map tiles<br/>[map_bg.py]"]
  node_airport_layer["Airport overlay<br/>[airport_overlay.py]"]
  node_wildfire_layer["Wildfire overlay"]
end

subgraph group_portal["Portal and preferences"]
  node_web_portal["Web portal<br/>[app.py]"]
  node_settings["Display settings<br/>[settings.py]"]
end

subgraph group_shared["Shared services"]
  node_config["Application config<br/>[config.py]"]
  node_i18n["Localization<br/>[catalog.py]"]
end

node_user(("Touch user"))
node_external_feeds{{"Traffic and weather feeds"}}
node_map_providers{{"Map providers"}}

node_user -.->|"starts app"| node_launcher
node_launcher -->|"starts display"| node_display_app
node_display_app -.->|"presents radar"| node_radar
node_user -->|"views traffic"| node_radar
node_radar -->|"opens details"| node_flight_detail
node_radar -->|"opens tracking"| node_tracked
node_user -->|"configures app"| node_web_portal
node_web_portal -->|"updates preferences"| node_settings
node_display_app -->|"uses map"| node_basemap
node_radar -->|"renders tiles"| node_basemap
node_basemap -->|"fetches tiles"| node_map_providers
node_radar -->|"renders airports"| node_airport_layer
node_radar -->|"renders fires"| node_wildfire_layer
node_radar -.->|"loads traffic"| node_flight_sources
node_flight_sources -.->|"queries FR24"| node_fr24
node_flight_sources -.->|"queries feeds"| node_external_feeds
node_radar -.->|"shows vessels"| node_ais
node_flight_detail -.->|"uses alert data"| node_alerts
node_display_app -.->|"draws HUD"| node_hud
node_display_app -.->|"presents screens"| node_other_screens
node_web_portal -->|"reads configuration"| node_config
node_display_app -->|"reads configuration"| node_config
node_settings -->|"reads options"| node_config
node_web_portal -->|"uses translations"| node_i18n
node_radar -->|"uses translations"| node_i18n
node_tracked -.->|"enriches flight"| node_fr24

click node_launcher "https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/flightscnr.py"
click node_display_app "https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/display/round_touch/app.py"
click node_radar "https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/display/round_touch/screens/radar.py"
click node_flight_detail "https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/display/round_touch/screens/flight_detail.py"
click node_tracked "https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/display/round_touch/screens/tracked.py"
click node_other_screens "https://github.com/yashmulgaonkar/flightscnr_pi/tree/main/flightscnr/display/round_touch/screens"
click node_flight_sources "https://github.com/yashmulgaonkar/flightscnr_pi/tree/main/flightscnr/utilities"
click node_fr24 "https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/utilities/fr24_client.py"
click node_ais "https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/utilities/ais_client.py"
click node_alerts "https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/utilities/aircraft_alert.py"
click node_basemap "https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/display/round_touch/map_bg.py"
click node_airport_layer "https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/display/round_touch/airport_overlay.py"
click node_wildfire_layer "https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/display/round_touch/wildfire_overlay.py"
click node_web_portal "https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/web/app.py"
click node_settings "https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/display/round_touch/settings.py"
click node_config "https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/config.py"
click node_i18n "https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/i18n/catalog.py"
click node_hud "https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/display/round_touch/radar_hud.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_launcher,node_display_app,node_radar,node_flight_detail,node_tracked,node_other_screens,node_hud,node_user toneBlue
class node_flight_sources,node_fr24,node_ais,node_alerts toneAmber
class node_basemap,node_airport_layer,node_wildfire_layer toneMint
class node_web_portal,node_settings toneRose
class node_config,node_i18n,node_external_feeds,node_map_providers toneIndigo
```

## Components

### Runtime and display

- [Application startup](https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/flightscnr.py): `flightscnr/flightscnr.py`
- [Display controller](https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/display/round_touch/app.py): `flightscnr/display/round_touch/app.py`
- [Radar screen](https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/display/round_touch/screens/radar.py): `flightscnr/display/round_touch/screens/radar.py`
- [Flight detail](https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/display/round_touch/screens/flight_detail.py): `flightscnr/display/round_touch/screens/flight_detail.py`
- [Tracked flight](https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/display/round_touch/screens/tracked.py): `flightscnr/display/round_touch/screens/tracked.py`
- [Other screens](https://github.com/yashmulgaonkar/flightscnr_pi/tree/main/flightscnr/display/round_touch/screens): `flightscnr/display/round_touch/screens`
- [Radar HUD](https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/display/round_touch/radar_hud.py): `flightscnr/display/round_touch/radar_hud.py`

### Traffic and enrichment

- [Flight position sources](https://github.com/yashmulgaonkar/flightscnr_pi/tree/main/flightscnr/utilities): `flightscnr/utilities`
- [FR24 client](https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/utilities/fr24_client.py): `flightscnr/utilities/fr24_client.py`
- [Marine AIS](https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/utilities/ais_client.py): `flightscnr/utilities/ais_client.py`
- [Aircraft alerts](https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/utilities/aircraft_alert.py): `flightscnr/utilities/aircraft_alert.py`

### Maps and overlays

- [Map tiles](https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/display/round_touch/map_bg.py): `flightscnr/display/round_touch/map_bg.py`
- [Airport overlay](https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/display/round_touch/airport_overlay.py): `flightscnr/display/round_touch/airport_overlay.py`
- [Wildfire overlay](https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/display/round_touch/wildfire_overlay.py): `flightscnr/display/round_touch/wildfire_overlay.py`

### Portal and preferences

- [Web portal](https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/web/app.py): `flightscnr/web/app.py`
- [Display settings](https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/display/round_touch/settings.py): `flightscnr/display/round_touch/settings.py`

### Shared services

- [Application config](https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/config.py): `flightscnr/config.py`
- [Localization](https://github.com/yashmulgaonkar/flightscnr_pi/blob/main/flightscnr/i18n/catalog.py): `flightscnr/i18n/catalog.py`

### Other components

- **Touch user**
- **Traffic and weather feeds**
- **Map providers**

## Connections

- Touch user → Application startup: starts app
- Application startup → Display controller: starts display (evidence: `flightscnr/flightscnr.py`)
- Display controller → Radar screen: presents radar
- Touch user → Radar screen: views traffic
- Radar screen → Flight detail: opens details
- Radar screen → Tracked flight: opens tracking
- Touch user → Web portal: configures app
- Web portal → Display settings: updates preferences (evidence: `flightscnr/web/app.py`)
- Display controller → Map tiles: uses map (evidence: `flightscnr/display/round_touch/app.py`)
- Radar screen → Map tiles: renders tiles (evidence: `flightscnr/display/round_touch/screens/radar.py`)
- Map tiles → Map providers: fetches tiles (evidence: `flightscnr/display/round_touch/map_bg.py`)
- Radar screen → Airport overlay: renders airports (evidence: `flightscnr/display/round_touch/screens/radar.py`)
- Radar screen → Wildfire overlay: renders fires (evidence: `flightscnr/display/round_touch/screens/radar.py`)
- Radar screen → Flight position sources: loads traffic (evidence: `flightscnr/display/round_touch/screens/radar.py`)
- Flight position sources → FR24 client: queries FR24 (evidence: `flightscnr/utilities/overhead.py`)
- Flight position sources → Traffic and weather feeds: queries feeds
- Radar screen → Marine AIS: shows vessels
- Flight detail → Aircraft alerts: uses alert data
- Display controller → Radar HUD: draws HUD (evidence: `flightscnr/display/round_touch/app.py`)
- Display controller → Other screens: presents screens
- Web portal → Application config: reads configuration (evidence: `flightscnr/web/app.py`)
- Display controller → Application config: reads configuration (evidence: `flightscnr/display/round_touch/app.py`)
- Display settings → Application config: reads options (evidence: `flightscnr/display/round_touch/settings.py`)
- Web portal → Localization: uses translations (evidence: `flightscnr/web/app.py`)
- Radar screen → Localization: uses translations (evidence: `flightscnr/display/round_touch/screens/radar.py`)
- Tracked flight → FR24 client: enriches flight
