Even G2 HUD app that shows the nearest aircraft over you, sourced from adsb.lol.
- On launch, draws a "scanning..." page on the G2 HUD.
- Asks the Even App webview for the phone's GPS (
navigator.geolocation), falling back to the last cached coordinates in Even App local storage. - Queries
https://api.adsb.lol/v2/lat/{lat}/lon/{lon}/dist/10for aircraft within 10 nautical miles, picks the closest, and renders:FLIGHT / TYPE · ALT · SPEED / DISTANCE / tap to refresh. - Tapping the first text container (CLICK / DOUBLE_CLICK on the G2 touchpad) triggers a refresh.
- TypeScript + Vite
@evenrealities/even_hub_sdkfor the page-container bridge to the HUD- Plain
fetchtoapi.adsb.lol(no API key)
npm install
npm run dev # vite dev server on :5174
npm run build # tsc + vite build to dist/
npm run typecheckTo run on glasses, point the Even App at the dev URL (or upload dist/).
- Webview geolocation permission has not been verified on the Even App yet —
if
getCurrentPositionis denied, the app falls back to cached coords; no UI to set them yet (manualsetLocalStorage('overhead.lastCoords', ...)). - No route lookup (origin → destination): adsb.lol doesn't carry it.
- No auto-poll: tap to refresh only.
- No image budget used: text-only HUD.