Milestone 5: set up a sign without code #8

Closed
opened 2026-11-22 14:43:46 -05:00 by cmoriarty · 3 comments
Owner

The plan's milestone 5, as the OpenSpec change add-setup-without-code (openspec/changes/add-setup-without-code/: proposal, design, specs, 57 tasks, 1 done). One ticket for now (the owner, 2026-11-22); split it when work starts.

The goal: anyone with a phone sets up the sign in a couple of minutes, with no app, no cable and no file to edit.

What it holds, in the change's order

  1. Trials on real hardware first: QR codes scanned from the panel, the M4's co-processor as an access point, the setup page on an iPhone and an Android phone, a web install on an S3.
  2. Settings that survive updates: a forgiving reader, a writer that keeps what it doesn't know, the new keys, a sign with Wi-Fi and no stops. A release of its own.
  3. The settings page: in the core and the simulator, then on both boards at mystop.local, with the info screen on the UP button. A release of its own.
  4. The stop picker, asking MBTA for lines, stations and directions; up to four stops.
  5. Walk time per stop; elevator and escalator alerts as a setting.
  6. First setup over the sign's own Wi-Fi: the setup network, the QR code, a join tested before it is saved, holding UP to reset, setup again after 10 minutes offline.
  7. The web installer over USB (ESP Web Tools and Improv), built by the release job.
  8. The release and the guides.

Already decided: with several stops the sign rotates by default; the shared and merged lists are settings the page offers (the owner, 2026-11-22).

To change in the plan before starting: its tasks still ask for board checks and 24 hours on a desk M4 before each release (3.1, 8.1, 12.1 and others). By the rule of 2026-11-22 (docs/releasing.md) the simulator decides; what stays on real boards is what the simulator cannot run: Wi-Fi, the access point, the page's server, real phones.

Related: #6 (the guides written again).

The plan's milestone 5, as the OpenSpec change `add-setup-without-code` (`openspec/changes/add-setup-without-code/`: proposal, design, specs, 57 tasks, 1 done). One ticket for now (the owner, 2026-11-22); split it when work starts. **The goal:** anyone with a phone sets up the sign in a couple of minutes, with no app, no cable and no file to edit. **What it holds, in the change's order** 1. Trials on real hardware first: QR codes scanned from the panel, the M4's co-processor as an access point, the setup page on an iPhone and an Android phone, a web install on an S3. 2. Settings that survive updates: a forgiving reader, a writer that keeps what it doesn't know, the new keys, a sign with Wi-Fi and no stops. A release of its own. 3. The settings page: in the core and the simulator, then on both boards at `mystop.local`, with the info screen on the UP button. A release of its own. 4. The stop picker, asking MBTA for lines, stations and directions; up to four stops. 5. Walk time per stop; elevator and escalator alerts as a setting. 6. First setup over the sign's own Wi-Fi: the setup network, the QR code, a join tested before it is saved, holding UP to reset, setup again after 10 minutes offline. 7. The web installer over USB (ESP Web Tools and Improv), built by the release job. 8. The release and the guides. **Already decided:** with several stops the sign rotates by default; the shared and merged lists are settings the page offers (the owner, 2026-11-22). **To change in the plan before starting:** its tasks still ask for board checks and 24 hours on a desk M4 before each release (3.1, 8.1, 12.1 and others). By the rule of 2026-11-22 (`docs/releasing.md`) the simulator decides; what stays on real boards is what the simulator cannot run: Wi-Fi, the access point, the page's server, real phones. Related: #6 (the guides written again).
Author
Owner

An idea to consider - In addition to the QR code option, could we also have an option for when My Stop is plugged into a PC (mac, windows, linux)? I'm imagining when my stop is plugged in, the user gets some kind of notification to "Configure My Stop?", which could open the same web app that a QR code would open.

An idea to consider - In addition to the QR code option, could we also have an option for when My Stop is plugged into a PC (mac, windows, linux)? I'm imagining when my stop is plugged in, the user gets some kind of notification to "Configure My Stop?", which could open the same web app that a QR code would open.
Author
Owner

First setup from a phone is in v0.1.6 (tagged at 075bc5a, 2026-11-24). The settings page is not: it is the next version. This ticket stays open for it.

What a sign does now:

  • With no Wi-Fi details or no stop stored, it opens its own network, MYSTOP-XXXX, with a password of eight digits drawn afresh, and shows a code that joins it, with the name and digits beside it.
  • The phone's page: choose your stop (a line opens to its stations), then Wi-Fi and Connect. The panel follows: phone found, connected, resume on your phone, joining, joined; then the sign's own start, once, and trains.
  • Only a join that works is stored. A wrong password stores nothing and keeps the stop chosen.
  • Holding UP for 5 s forgets the Wi-Fi details and returns to setup. Until the settings page exists that is also how a stop is changed, and a setup always asks for the stop.
  • The M4 closes its own network to try the home network, and reopens it if the try fails; the S3 keeps both up.

How it was checked: 267 unit tests (27 new), 276 snapshots (nine setup-* scenarios), the browser viewer, and on the two boards on the desk with test builds. Each board ran a whole setup from the page's form sent over USB, and each joined the other's setup network as a phone would (address, name lookup, redirect, both screens, a form with a network that isn't there). Both signs then went onto the published release and show trains with their own settings.

Not checked yet: a phone. No phone has scanned a code from, or set up, either board's real firmware. Also open: a code the camera reads at once (task 1.10), an Android phone, and what a phone does with the M4.

The record is openspec/changes/add-setup-without-code/: tasks.md (What v0.1.6 takes, out of order) and design.md (What building it found). The guide is docs/building-a-sign.md, Set it up from a phone.

**First setup from a phone is in `v0.1.6`** (tagged at `075bc5a`, 2026-11-24). The settings page is not: it is the next version. This ticket stays open for it. What a sign does now: - With no Wi-Fi details or no stop stored, it opens its own network, `MYSTOP-XXXX`, with a password of eight digits drawn afresh, and shows a code that joins it, with the name and digits beside it. - The phone's page: choose your stop (a line opens to its stations), then Wi-Fi and Connect. The panel follows: phone found, connected, resume on your phone, joining, joined; then the sign's own start, once, and trains. - Only a join that works is stored. A wrong password stores nothing and keeps the stop chosen. - Holding UP for 5 s forgets the Wi-Fi details and returns to setup. Until the settings page exists that is also how a stop is changed, and a setup always asks for the stop. - The M4 closes its own network to try the home network, and reopens it if the try fails; the S3 keeps both up. How it was checked: 267 unit tests (27 new), 276 snapshots (nine `setup-*` scenarios), the browser viewer, and on the two boards on the desk with test builds. Each board ran a whole setup from the page's form sent over USB, and each joined the other's setup network as a phone would (address, name lookup, redirect, both screens, a form with a network that isn't there). Both signs then went onto the published release and show trains with their own settings. **Not checked yet: a phone.** No phone has scanned a code from, or set up, either board's real firmware. Also open: a code the camera reads at once (task 1.10), an Android phone, and what a phone does with the M4. The record is `openspec/changes/add-setup-without-code/`: `tasks.md` (*What v0.1.6 takes, out of order*) and `design.md` (*What building it found*). The guide is `docs/building-a-sign.md`, *Set it up from a phone*.
Author
Owner

Closing: first setup from a phone is done; the rest of milestone 5 has moved (the owner, 2026-12-01).

What shipped

  • v0.1.6 (tag at 075bc5a): first setup from a phone on both boards. A sign with no Wi-Fi or no stop opens MYSTOP-XXXX with eight fresh digits and a QR code that joins it; one visit on the phone picks the stop and the Wi-Fi; the panel follows the phone with a bar of four steps; only a join that works is stored; holding UP for 5 s goes back to setup.
  • v0.1.7 (tag at ec93c47): every setting in first setup (up to four stops, several branches of a line at one stop, the layout, font, colours, marker, page time, API key, automatic updates), setup starting from what the sign had, and the code brighter with orange words.
  • Settings that survive updates: a forgiving reader, a writer that keeps what it doesn't know, and a stored-settings record from every release read by the tests.
  • Checked by the unit tests, the snapshots (nine setup-* scenarios), the viewer, test builds on both boards, and the owner setting up both signs from an iPhone on 2026-11-24.

Where the rest went

  • The settings page on the home network: #15, with the leftover test tooling for pages (page snapshots, mystop-sim serve, the canary and hammer tests, recorded picker answers, the release job remaking the station list).
  • Setup over a USB cable and the web installer: #14.
  • Walk time per stop: #17.
  • Elevator and escalator alerts as a setting: #18.
  • The guide rewritten around the no-code path: #6.
  • Dropped at the owner's word: setup opening by itself after 10 minutes offline, and the phone checks not yet run (an Android phone, a wrong password typed on a phone, a home network on another channel, a dark room, a code the camera reads at once).

The plan is archived as openspec/changes/archive/2026-12-01-add-setup-without-code/: every task closed with where it went, and its specs cut to what shipped, now the sign's specs wifi-setup, stop-picker, several-stops and an updated sign-settings.

**Closing: first setup from a phone is done; the rest of milestone 5 has moved (the owner, 2026-12-01).** **What shipped** - `v0.1.6` (tag at `075bc5a`): first setup from a phone on both boards. A sign with no Wi-Fi or no stop opens `MYSTOP-XXXX` with eight fresh digits and a QR code that joins it; one visit on the phone picks the stop and the Wi-Fi; the panel follows the phone with a bar of four steps; only a join that works is stored; holding UP for 5 s goes back to setup. - `v0.1.7` (tag at `ec93c47`): every setting in first setup (up to four stops, several branches of a line at one stop, the layout, font, colours, marker, page time, API key, automatic updates), setup starting from what the sign had, and the code brighter with orange words. - Settings that survive updates: a forgiving reader, a writer that keeps what it doesn't know, and a stored-settings record from every release read by the tests. - Checked by the unit tests, the snapshots (nine `setup-*` scenarios), the viewer, test builds on both boards, and the owner setting up both signs from an iPhone on 2026-11-24. **Where the rest went** - The settings page on the home network: #15, with the leftover test tooling for pages (page snapshots, `mystop-sim serve`, the canary and hammer tests, recorded picker answers, the release job remaking the station list). - Setup over a USB cable and the web installer: #14. - Walk time per stop: #17. - Elevator and escalator alerts as a setting: #18. - The guide rewritten around the no-code path: #6. - Dropped at the owner's word: setup opening by itself after 10 minutes offline, and the phone checks not yet run (an Android phone, a wrong password typed on a phone, a home network on another channel, a dark room, a code the camera reads at once). **The plan** is archived as `openspec/changes/archive/2026-12-01-add-setup-without-code/`: every task closed with where it went, and its specs cut to what shipped, now the sign's specs `wifi-setup`, `stop-picker`, `several-stops` and an updated `sign-settings`.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
moriarty-engineering/my-stop#8
No description provided.