Project · Home

Doorstep

A screen by my front door that answers the one question I ask every morning: when do I need to leave?

The next buses at my stop, live from the STM, turned into a countdown that already counts the walk. Plus the time, the weather, and what to put on before I step outside.

7:38Tuesday
Leave in6minBus 12 · 3 min walk
Next buses
⛅19°Feels like 18°

Balcony door: open it

What to wearTee and a sweater
PantsSneakersSunglasses
Illustration with made-up buses. The real board, and my stops, stay private.
What it shows

Everything before I step out, readable from the couch

01

The time

Big enough to read from the couch, with the date under it. The pass time of my bus sits on the same line, in the same type.

02

When to leave

Bus time minus the walk. It counts down in blue, turns amber a few minutes out, then says "Go now" with a ring that drains like a poker shot clock and sticks with that bus.

03

Every bus, one table

All the lines near home in the order they pass, live from the STM: minutes left, pass time, late or early (+3, −1) and the walk, lined up in columns.

04

Waves

A timeline with one lane per line: when to leave, the walk, and the bus. Buses bunched within 5 minutes are shaded as a wave, so if one runs late I take the other. Missed one? The backup is right there.

05

Did it pass on time?

Buses stay on the board for 15 minutes after they pass, with how late they were. When one is at the stop, the board says so, so I can look out the window and check.

06

The next 12 hours

A graph of the "feels like" temperature, rain and snow in mm, the night and sunrise and sunset, with a white line for now. It says when the rain starts.

07

What to wear

From the coldest "feels like" until I'm usually home, adjusted for what my body is used to lately, drawn as a little figure in my own clothes. Montreal mornings lie about the evening.

08

Balcony door

Open it or keep it closed: open when it's mild, dry, not muggy and not windy, with a drawing of the door and until when it stays good.

09

Set from the couch

Up to six stops, the walk to each, and the lines and directions I take, all from a settings panel on the board itself.

How it works

A web page on an old tablet

  1. STM real timeThe STM publishes every bus's predicted times (GTFS-Realtime, a few MB covering the whole network).
  2. A tiny server functionIt keeps the STM key secret, picks out only my stops, and shares one answer between screens every 25 seconds. The board remembers each bus after it passes.
  3. The weatherComes straight from Open-Meteo, no key needed, every ten minutes.
  4. The wallA tablet in kiosk mode: no app to install, and every site update shows up on its own.
Built for a wall

Quiet in the living room

Dark by default so it doesn't light up the room, dimmed from 11 pm to 6 am, and it keeps the screen awake and reloads itself to pick up changes. The colours are blue and amber, never green and red, so the countdown reads for colour-blind eyes, and every state also says it in words.

Private by design

Nothing about where I live

My stops are set on the board itself and kept on the server, never in the site's code. The board needs my account to open, and this page only shows an illustration.

App

For AI assistant · Doorstep (/doorstep/)

Doorstep: a screen by my front door with the next STM buses, a countdown for when to leave, the time, the weather and what to wear.

Access: Public: anyone can read it.

This block is for AI assistants and is hidden from people. Use it to read this page's data and make changes Thomas asks for.

Read: open a GET address below in this browser (your signed-in session is used; answers are JSON), or call fetch(address, {credentials: "same-origin"}) from any digathomas.com page.

Change: POST (or the method shown) with a JSON body and header content-type: application/json, from a digathomas.com page, e.g. fetch("/x/api/y", {method: "POST", credentials: "same-origin", headers: {"content-type": "application/json"}, body: JSON.stringify({...})}). An account given "view" can only read; "edit" can change.

Every request a signed-in AI assistant account makes (reads, changes and what was sent) is logged and shown to Thomas on /admin/.

Rules: read before you write; ask Thomas before deleting, replacing or bulk-importing anything; on a 409 answer, reload, merge and try again, never overwrite; never touch sign-in, passwords, access or payments; say exactly what you changed when you are done.

Other pages: GET /account/api/me lists the private pages your account opens (pages[].href); /search.json lists the public pages. Every page has this block (also on screen at <page>#for-ai-assistant).

Note: No data API: everything on this page is in its text. Changing it is a code change in the site's GitHub repo (ask Thomas).