Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Planes Overhead

Live flights around your house on an M5Stack CardputerZero running Gh0st OS. No accounts and no API keys.

  • Radar: the planes around home over a dark map, refreshed every few seconds, with trails, callsigns and range rings from 3 to 50 nautical miles. The selected flight's type, altitude, speed and route sit across the top.
  • Nearby on Tab: the nearest flights as a list, with route or type, altitude (and whether it's climbing or descending) and distance.
  • Flight details on Enter: route, airline, altitude, speed, heading, climb rate, distance from home, aircraft type, registration and squawk.
  • Colours, as on HomeFlightRadar: airlines yellow, general aviation white, military red, aircraft on the ground grey.
  • Alerts: a plane squawking 7500, 7600 or 7700 turns red with a red ring, a sound and a toast.
  • Home from a GPS receiver, or a city, ZIP code or lat,lon you type.

Install

Build on a Mac or Linux computer (or WSL on Windows) with Rust installed.

Make the .deb:

sh build-deb.sh            # -> dist/planes-overhead_<version>_arm64.deb

Copy that file to any CardputerZero and install it there:

sudo apt-get install ./planes-overhead_0.1.0_arm64.deb

Or build and install in one step over SSH (turn on Settings > SSH on the CardputerZero first):

CARDPUTER_USER=yourname sh install.sh 192.168.1.77

Planes Overhead appears on the home screen. To remove it: sudo apt-get remove planes-overhead.

Use

Key Does
↑ / ↓ (Fn+F / Fn+X) Pick the next or previous plane (nearest first)
Enter or I Flight details
Tab or 5 Radar ↔ nearest flights
→ or = Zoom in (closer range: 50, 25, 10, 5, 3 nm)
← or - Zoom out (wider range)
6 Next range
R or 7 Reload now
K Callsigns on the radar on / off
O Planes on the ground on / off
M Map on / off
W Keep the screen on while it's in front
L Set home (city, ZIP or lat,lon)
G Use GPS
Esc Back; on the radar, go back to following the nearest plane
8 Menu

Until you pick a plane, the strip across the top follows whichever is nearest. A route shows only when it fits where the plane actually is: route databases list the route a flight number usually flies, which is often out of date.

GPS

Planes Overhead works with M5Stack's Cap LoRa-1262 (or Cap LoRa868) on the top connector, which talks NMEA on the main serial port (/dev/serial0) at 115200 baud, as well as USB GPS dongles (ttyACM0, ttyUSB0) and anything gpsd already runs. It finds the port and the speed by itself, and switches on the Cap's power (the top header's 5V, /sys/class/leds/ext_5v_out) while it looks, then off again if it was off. If it says it has no permission to read the port: sudo usermod -aG dialout $USER; to power the Cap: sudo usermod -aG gpio $USER; then reboot. A GPS needs sky: by a window or outside.

Settings

~/.local/share/planes-overhead/planes.conf:

source=gps          # gps | place
range=10            # 3 | 5 | 10 | 25 | 50 nautical miles
map=1               # 0 = rings on a plain background, no map download
labels=1            # callsigns beside the nearest planes
ground=0            # 1 = also show aircraft on the ground
awake=0             # 1 = keep the screen on while in front
gps_device=         # empty = try gpsd, ttyACM0/1, ttyUSB0/1, serial0
gps_baud=0          # 0 finds the speed; or set it, e.g. 115200

How it works

The same binary runs as the app and as a short-lived helper (--planes, --route, --map, --geocode, --locate) that does the network work in the background with curl and prints tab-separated lines. Flights are polled every 5 seconds (10 at 25 and 50 nm, and slower while the feeds fail), and only while the app is in front. The map is stitched once per place and range with ffmpeg into a 320×170 RGB565 frame cached in ~/.local/share/planes-overhead/cache, so the radar just blits it and draws the planes on top.

You can run the helper from the Gh0st terminal:

planes-overhead --planes 39.95 -75.16 10
planes-overhead --route AAL1234
planes-overhead --geocode "Boston, MA"

Data sources

  • Flights: adsb.lol (ODbL), with adsb.fi when it's down. Both are community feeds of ADS-B and MLAT receivers.
  • Routes and airlines: adsbdb.com.
  • Map: © OpenStreetMap contributors, from OpenStreetMap's own tile server, darkened by the app.
  • Place search: Open-Meteo (CC BY 4.0); GPS place names: OpenStreetMap Nominatim.

Publishing to the CardputerZero AppStore

Same as WX Radar: python3 packaging/set_author.py <github-username> "<Your Name>", put 320×170 screenshots in screenshots/ as radar.png, list.png and details.png (screenshot key on the device; they land in ~/Pictures/Screenshots), push this folder to github.com/<you>/planes-overhead, then sh publish.sh.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages