← Back to Projects
Fire Tablet Transit Board
An old Fire tablet turned into a wall display that answers one question at a glance: when is the next bus or streetcar?
Overview
A 2019 Fire 7 tablet was sitting in a drawer. It now hangs as a full-screen display showing live Toronto Transit Commission arrivals for the stops I use, plus the weather. It has to be readable from across the room, and it must never show a time that looks live but is not.
What it shows
- Six cards, two directions for each of three routes, with the next three arrivals on each. "Due" is amber, and a small tag marks replacement buses on a streetcar route.
- A header with the clock, current temperature, feels-like, today's high and low, and the chance of rain over the next three hours, with an hourly strip for the next six.
- Service alerts for those routes only, along the bottom.
- A background animation that matches the weather: rain, drizzle, thunderstorm with lightning, snow, fog, drifting clouds, stars at night and a sun glow by day.
- A small ring that fills between updates. When new data arrives, only the arrival times that changed fade in, so the board stays calm.
Weather scenes
The background follows the real weather, and any scene can be previewed on demand. These two loops show rain and snow moving behind the same live data.
How it works
- A small Python server fetches the TTC's public GTFS-realtime trip feed every 30 seconds and the alerts feed every two minutes, keeps the next three arrivals per stop, and serves them as JSON. Weather comes from Open-Meteo, which needs no API key, every ten minutes.
- The static TTC schedule is read once at startup to tell replacement buses from streetcars, because the live feed alone does not say. If that file is missing, the board still works and only loses the tag.
- The page is plain HTML and JavaScript. It polls the server every five seconds and redraws every second, so the minute counts stay smooth between feed updates.
- The server runs as a systemd service on a Raspberry Pi and starts at boot. The tablet runs Fully Kiosk Browser, launches into the board on power-up and needs only power and wifi.
Engineering notes
- Honest by design: if there has been no transit data for two minutes the cards dim and the header says "Live data unavailable". Stale weather is labelled the same way. On any fetch error the server keeps the last good data, so the page can see it ageing.
- Feed fetching pauses from 1 to 5 AM, since the feed is about 590 KB every 30 seconds, roughly 1.7 GB a day.
- TTC cuts alert titles at 32 characters, so the board uses the description text. Subway alerts tag every route ending at an affected station, so alerts are kept only when their text starts with the route's own number and name.
- The Fire 7 is slow at continuous animation. A smooth progress bar used about 60% of a core, so the ring steps once a second, and slow scenes such as stars, clouds and fog draw at 10 frames a second while rain and snow draw at 30.
- The tablet's browser caches pages hard, so the server sends no-cache headers and the wrapper page reloads the board every five minutes with a fresh URL.
- The feed logic has a self-check script that runs against sample data.
Unofficial project. It reads public transit data and is not affiliated with the TTC.