Tailwind

A custom connected flight tracking board, with a self-hosted backend and dashboard.

Tailwind board showing upcoming flight BA491 from Heathrow to Nice
Status
In Development
Live boards
–
Built with
MicroPython, Node.js, Supabase
Cards available
19

A Brief Overview

Tailwind is a custom connected flight tracking board, with a self-hosted backend and dashboard. 3 boards currently exist, 1 lives in my parents kitchen and the other 2 are at home - friends and family requests have been made.

Cards/screens available include Upcoming Flights, In-Air Flights, Overhead Flights, ISS Flyovers, Weather, Word Clock, SONOS Now Playing, F1 Results, Traffic Updates, Calendar, Custom Birthday/Xmas Countdown, Solar and Home Energy Use.

Backend runs on Node.js and stores data in cache or a self-hosted Supabase database. Boards have a hardcoded authentication token, and the web dashboard is behind Cloudflare Access.

Inspiration

I saw on Instagram a similar commercial project which tracks overhead planes using freely available ADS-B data. I liked this but wanted expanded functionality to cover my own upcoming flights, as well as other smart home data, at a greatly reduced price.

Design Spec

  • Automatically detect and display upcoming flights.
  • Automatically detect "in air" flights with speed and alt readout.
  • "Downroute" mode to show time zone and weather in destination.
  • Ability to add/change/remove screens in rotation, including initially Now Playing and Weather.
  • Web or app based user friendly dashboard.
  • User customisable data feeds for flight detection, calendar entries, weather location and other data.

The Hardware

  • Interstate 75w
    • Dual core 150mhz ARM M33
    • 520kB sRAM
    • 4Mb flash storage
    • Wifi 4 and Bluetooth 5.4
    • Flashed with MicroPython
  • 64x64 3mm pitch LED matrix panel
    • HUB75 communication protocol, standard in large video walls
    • 20w max power
      • In my testing I found 8w was common for all white screens and 2w was common for text only screens.
  • IKEA Sannahed frame 25x25cm
  • 3mm plywood
  • M3 screws & nuts

Assembly

The Interstate board has built in HUB75 pins which allows it to be seated directly on the back of the LED panel. It's powered by USB C and I found a 10-20w power adapter works fine, as only 20% of pixels are on at once. The LED panel mounts using M3 screws which I bought a job lot of from B&Q. The backing included with the IKEA frame isn't the strongest, so I cut some plywood to insert in the back of the frame, and the M3 screws secure to this.

The Firmware

The board runs Pimoroni's MicroPython 1.25. Both cores are used:

  • Core 0 runs main.py and deck.py handling Wi-Fi, backend polling, SONOS LAN polling, diagnostics and preparing of the next card.
  • Core 1 runs player.py handles the card display and transitions - so the board keeps going regardless of network status or lag.

Two endpoints are used:

  • 'Cards' holds available card layout, animations, sprites, and other assets.
  • 'Data' is purely changeable values like weather, flight status etc.
  • On boot the board polls GET /api/board/cards?have=hashes, where the have list tells the server which card versions the board already holds. The server only responds with cards the board is missing, eg in the case of new cards being added.
  • Card data is stored at boot into flash memory.
  • Card data is also updated if necessary at 5 minute intervals, hidden behind a 2s dip to black transition as writing to flash interrupts the LED panels refresh causing a strobing effect.

The Data

SourceWhat?Where?When?Card
iCloud ICSSummary is parsed into origin, destination, airline and flight number.
Flights are upserted into flights DB and deletes flights when applicable.
flights5minUpcoming flights.
Downroute.
Hexdb.ioAirport lat/long and city.airports5minUpcoming flights.
Downroute.
Users ICS calendarsEvent subject, time/date.5minCalendar
ADSB.fi and OpenSkyLive positioninglive_tracking1minIn-air
Overhead planes
Open-MeteoHourly board location and downroute city forecasts.Cached60minWeather
Downroute.
iss-api.polluxlabs.ioNext 5 ISS passes for boards location, filtered intoissEventWindowHours60minISS
f1api.devConstructors and drivers championships, last race resultCached60minF1
NASA JPL HorizonsDistance to Themisto moon, converted from AU to kmCached60min/api/themisto
NESOUK electricity generation mixCached60minGrid Mix
Google Cloud API (Maps)Journey time and traffic status for user configured routes.Cached240min
60 min at peak periods
Traffic
GOV.uk Fuel FinderCheapest N petrol stations around boards location.CachedDailyFuel Prices

Tailwind v1

Version 1 rendered pixels entirely server side, the API endpoint was comprised of a little bit of metadata (brightness and sleep times) and then RGB values for 4096 pixels as a string. The board called this API every 20s and would get a new 'screen' to draw each time.

This was born out of my impatience waiting for the hardware to arrive, so in the meantime a server side preview was built to output a png file every 20s. When the hardware did finally arrive, the quickest setup was to just show that preview on the board also.

Strengths of this implementation was that the board firmware was very lightweight, and 'screens' could be added/changed without any need to reflash the firmware.

Drawbacks of this implementation was that animations are not possible, and network issues were noticeable within 20s.

Tailwind v2

I'm currently midway through migrating to version 2, which I detailed slightly above, where assets are stored in flash and data values are stored in RAM. The board will continue to operate if the network drops, just cycling what it has cached.

This was a bit heavier on the board firmware, which was tricky to optimise. But is visually a lot nicer because cards can now include transitions and animated sprites.

↑ Back to top