## Raspberry Pi setup Hardware: an RTL-SDR dongle plugged into the Pi, and the LED matrix wired through the [rpi-rgb-led-matrix](https://github.com/hzeller/rpi-rgb-led-matrix) adapter board. On a fresh Raspberry Pi OS / DietPi install: ``` git clone --recurse-submodules https://gitea.dylanbenzi.com/dylan/flightwall cd flightwall sudo ./setup.sh ``` `setup.sh` asks for your latitude, longitude and timezone (saved to `flightwall.conf`), then: - installs build dependencies and lighttpd - builds dump1090-fa (pinned submodule in `external/dump1090`) and the FlightWall app - installs three systemd services, enabled on boot: - `flightwall-dump1090` - the ADS-B receiver (SBS output on port 30003) - `flightwall-web` - the dump1090 map / status UI at `http://:8080` - `flightwall` - the LED display - disables any existing dump1090 / dump1090-fa / readsb service so they don't fight over the dongle - blacklists the DVB kernel drivers that claim the RTL-SDR and the onboard sound module, sets `dtparam=audio=off`, and adds `isolcpus=3` to `cmdline.txt` (4+ core Pis) If it reports that the boot config changed, run `sudo reboot`. ### Configuration Edit `flightwall.conf` (created on first setup, not tracked by git): | Key | Meaning | | -------------------- | ------------------------------------------------------- | | `LAT`, `LON` | your location, decimal degrees | | `TIMEZONE` | used for day/night brightness | | `SBS_IP`, `SBS_PORT` | where the app reads SBS-1 data (default local dump1090) | | `STALE_SECONDS` | drop aircraft not seen for this long | | `WEB_PORT` | port of the web UI | | `DUMP1090_ARGS` | extra dump1090 flags, e.g. `"--gain 40"` | Apply changes with `sudo ./setup.sh` (re-runnable). For `LAT`, `LON`, `SBS_*`, `STALE_SECONDS` or `DUMP1090_ARGS` only, `sudo systemctl restart flightwall-dump1090 flightwall` is enough. To update: `git pull --recurse-submodules && sudo ./setup.sh`. ### Useful commands ``` journalctl -u flightwall -f journalctl -u flightwall-dump1090 -f sudo systemctl restart flightwall nc 127.0.0.1 30003 # raw SBS-1 stream ``` ## Development ### To clone `git clone --recurse-submodules https://gitea.dylanbenzi.com/dylan/flightwall` `git submodule update --init --recursive` ### To add logos Add logo to assets/logos/native_art, 16x16 png named by ICAO Re-generate logos with: `python logo16.py in --out out --native native_art`