Skip to main content

Two Bells

Know when to leave. Live trains and buses for your station and stops in Great Britain, and Manchester's trams or London's Underground where you have them, with the walk already worked out: a departure board by the door and a dashboard on your phone, from one small app you run at home.

CI Licence: MIT

The dashboard at Manchester Piccadilly at 07:31: Leave now for the 07:38 train to Manchester Airport from platform 14, then a tram, a 192 bus and another train; light rain from 08:00; disruption between Piccadilly and Buxton; the trains with their platforms and the 07:41 to Liverpool Lime Street expected 07:45; buses from Piccadilly Gardens with the 50 two stops away

A made-up morning at Manchester Piccadilly. In every picture here the stations, stops and lines are real and the times invented.

One install is one app with two views of the same departures:

  • The board: a Raspberry Pi with a four-colour Inky pHAT (250x122). The app also draws for a Waveshare 10.85" e-Paper (G) (1360x480), a Waveshare 7.9" HDMI screen (1280x400, on its side) and an 11.3" HDMI bar screen (1920x440); those are tested in software but not yet on the hardware.
  • The dashboard: a web page for a phone or computer at home, with the next 10 trains and 15 buses (and 10 trams), calling points and coaches, bus strips and maps, the weather, disruptions, punctuality history, a Performance page with Delay Repay, and station announcements.

A Pi can run either view or both; Docker and a desktop run the dashboard. Each install has one settings site, at /settings on port 8090, with one password and a setup wizard that finds your station, bus and tram stops, walk times and bus companies from your postcode. Each view shows the modes of transport you choose. The examples, and the pictures from The dashboard on, use Glossop, with trains to Manchester and buses from two nearby stops (examples/glossop.toml).

Busy places, every mode at once

In London the Underground, DLR, river buses and cable car come live from TfL, beside the buses and trains: at Bank the Underground, the DLR and London's buses, and at Greenwich trains, buses, the river bus and the cable car's status.

The dashboard at Bank: Leave now for the 07:35 Northern line train to Edgware from platform 4; minor delays on the Central line; London buses from Bank and Monument, the 21 three stops away; the Metro section with the Northern, Waterloo and City, Central, DLR and District lines, each with its platform and where it is; and a lift at Bank out of service The dashboard at Greenwich: Leave now for the 07:37 RB1 river bus to Battersea Power Station Pier from Greenwich Pier; the cable car suspended in high winds; Southeastern and Thameslink trains, the 07:43 to Luton expected 07:47 and the 07:49 cancelled; buses from Greenwich Church Street and Cutty Sark

By the door, an 11.3" bar screen shares the same departures between three modes, here in the station board and split-flap looks (as the app draws them; not yet run on the screen itself):

The station board look on the 11.3 inch bar screen at Manchester Piccadilly: Leave now for the 07:38 to Manchester Airport from platform 14 with its calling-at line, the 07:41 to Liverpool Lime Street expected 07:45, the 192 bus, the tram to Eccles and the disruption to Buxton

The split-flap look on the 11.3 inch bar screen at Greenwich: the cable car suspended, the 07:40 to London Cannon Street, the 07:43 to Luton expected 07:47, the 188 bus two stops away and the RB1 river bus to Battersea Power Station Pier

Why it's worth a place by your door

  • It tells you when to leave, not just when it goes. Every train and bus comes with your walk to its stop, so the page says Leave now, Leave in 4 min or Go now, and can remind you a minute before.
  • Live trains, properly. National Rail Darwin gives the platform, coaches, delays and their reasons, every calling point, and where the train is right now.
  • Live buses, for free, all day. Worked out the way bustimes.org does it, from the BODS timetable plus live bus positions. A strip under each bus shows how many stops away it is.
  • Trams and the Underground too. Manchester's Metrolink from TfGM's own timetable, and London's Underground, DLR, trams, cable car and river buses live from TfL, each in a section of its own with its walk and when to leave.
  • The things that change your plan. Disruptions on your journeys, rain on its way, a new timetable starting soon, and which trains are often late.
  • Yours, at home. It runs on a Pi, a NAS or a laptop on your own network, with free API keys and no cloud account. The Pi's web server never connects to the internet, and releases are signed.
  • Easy to read for everyone. It is built to WCAG 2.2 AA, for the keyboard and screen readers, and always says what it means in words. Colour only backs the words up.

The dashboard

The next trains and buses side by side, each with its walk, its countdown and where it is now:

The train and bus boards: the 07:12 waiting at Hadfield and often late, the 07:42 cancelled, and buses with strips, the 341 two stops away and the 61's bus on its way

Manchester's trams have a section too, wherever home is; in London the Underground and DLR come live, with each line's colour and where each train is now, as at Bank.

Open a train for its whole journey, or the area map for every bus on your lines:

The 07:12 to Manchester Piccadilly: expected 07:19 after a broken down train, leave by 07:09, arriving 07:55, its three coaches from the front, quietest at the back, and its journey with the train at Hadfield The area map of Glossop with three live buses on their routes past Henry Street and St Marys Road, and the same buses listed in words

Where there is room, the line runs across the page with each train placed on it:

The line from Manchester Piccadilly to Hadfield with Glossop marked as this station and the 07:12 waiting at Hadfield

Light, dark, the amber Dot matrix look, the white and yellow TFT look or the Split-flap look, at any size from a phone to a wall tablet (/?kiosk):

The dashboard on a phone at 07:03, Leave now for the 07:09 341 bus: the Standard look, light and dark, and the amber Dot matrix look

The board

An e-paper board needs no attention: it redraws only when what it shows changes. It comes in two looks: sign, an amber dot-matrix station board whose font was drawn for this project one pixel per LED, and plain, black on white with a red accent.

The station board look on the Inky pHAT, scaled up: the next three trains with the 08:12 cancelled, and three buses with when to leave for each

On the 10.85" e-paper there is room for platforms and three modes (as the app draws it; not yet run on the panel itself):

The station board look on the 10.85 inch e-paper at Manchester Piccadilly: the 07:38 to Manchester Airport from platform 14, leave by 07:32, the 07:41 to Liverpool Lime Street expected 07:45, the 192 bus, the tram to Eccles and the disruption to Buxton

An HDMI screen redraws every second, with a running clock and countdowns, two more looks (tft, white and yellow on black, and flap, a split-flap board whose tiles turn), and if you want them the first train's calling points, a platform clock page and station announcements through a speaker. It also has a page showing where your next bus is (again as the app draws it, not yet tried on a real screen):

The bus position page: the 341 to Hyde three stops from Henry Street, leave in 3 min

Set up in a few minutes

No config files to write. Give the setup wizard your postcode or address: it finds your nearest stations, bus stops and tram stops (or any tram stop by name), works out the walk to each along real streets, finds your bus companies and builds their timetable.

Setup step 2: the five nearest stations with their distances, Glossop chosen, and trains filtered to those calling at Manchester (MAN) Setup step 5: walk times to Glossop station and two bus stops, each worked out along streets and paths

Everything else is on the settings site, in plain words, behind one password:

The settings site's Dashboard page: which modes of transport it lists, how many trains and buses, and position strips on or off

What it covers

  • Where it works: trains anywhere in Great Britain. Bus times and positions from BODS cover England only. Trams: Manchester's Metrolink and London's metro. The rain warning works anywhere. Bank holidays follow England and Wales, Scotland or Northern Ireland.
  • Trains: National Rail Darwin, via the Rail Data Marketplace. Free.
  • Buses: worked out the way bustimes.org does, from the DfT's Bus Open Data Service (BODS) timetable for your stops plus live bus positions, free and checked all day. On the board, TransportAPI (free plan: 30 lookups a day) can stand in while there is no usable timetable.
  • Trams: Manchester's Metrolink from the timetable TfGM publishes each night (booked times, no key), and London's Underground, DLR, trams, cable car and river buses live from TfL's Unified API (free; an optional key raises TfL's allowance).
  • Meaning is always in text (On time, Exp 07:49, Delayed, Cancelled, No report, sch, Not updating). Colour only reinforces it, so both views work for colour-blind viewers, and the board works on a mono panel.

Install

  • Raspberry Pi (the board, and the dashboard if you like): download a release tarball and its SHA256SUMS, check it, unpack it and run sudo ./deploy/pi/install.sh. Nothing is piped from the internet into sudo bash. See Install on a Raspberry Pi.
  • Docker (a NAS, say; the dashboard): the signed image ghcr.io/acornelissen/twobells, or build it from source with docker compose up -d --build. See Docker, with steps for Synology, QNAP, Unraid, TrueNAS SCALE, and Docker or Podman on Linux.
  • Desktop (a Mac or Linux laptop; the dashboard): uv tool install twobells or pipx install twobells, then twobells serve. See Desktop.

Then open the settings at /settings on port 8090 and let the setup wizard do the rest. No config.toml is needed. You'll need free keys for trains and buses.

The settings password is claimed with a code shown on the board, or put in the log where there is no board. Or set it from the command line; in Docker:

docker exec -it twobells python -m twobells serve --set-password --state-dir /data
docker exec -it twobells python -m twobells serve --reset-code --state-dir /data

Documentation

The user guide is the index to everything: reading the board and the dashboard, installing, the settings, keys, looking after a Pi, and troubleshooting. What changed in each release is in CHANGELOG.md.

Contributing

CONTRIBUTING.md covers setting up with mise, running the app and the browser panel emulator, the checks a change must pass, and releases. Architecture shows how the code is laid out, and Dashboard API the contract between the server and the dashboard page.

Security

Found a vulnerability? Please report it privately, as SECURITY.md says.

Licence

MIT: see LICENSE. The data the app shows comes under its providers' own terms.

Data credits

See NOTICE.md for every data source and licence.

Metadata

Release files for twobells 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for twobells 0.5.2
File Size Uploaded Provenance
twobells-0.5.2.tar.gz 1.1 MB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for twobells 0.5.2
File Interpreter ABI Platform
twobells-0.5.2-py3-none-any.whl Python 3 none any Details

Total release size: 2.2 MB

Release files / twobells-0.5.2.tar.gz

Download URL twobells-0.5.2.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
70249ca04b54c6f60a75779e4dcb4c9f692157b8a8dfa545c6305d3ad53e908b
BLAKE2b-256 checksum
How to use checksums
9a161267f35919be3790dd5d1112716d53010348c86803306817d495a128068e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / twobells-0.5.2-py3-none-any.whl

Download URL twobells-0.5.2-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
35d2f419ea6916acaae21cecf50879b23af4cd6ac1eb8dfd78c1a04d4a6d39e0
BLAKE2b-256 checksum
How to use checksums
c9855c158ce7622cbb7567291dd96ae1cc7673825dc96feead981e54a7aa4c16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Security for twobells 0.5.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for twobells-0.5.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page