Several messages at once: the dot shows only the most serious, and how they share the turns #4

Closed
opened 2026-11-22 14:13:47 -05:00 by cmoriarty · 2 comments
Owner

Seen by the owner on the panel, 2026-11-22, on v0.1.4: a yellow warning message and a red "train stopped x stops away" message were active together. The dot in the top left corner was red; nothing showed that a yellow message was active too.

The owner: "Currently it appears that the red dot takes priority, and hides the yellow dot. We should explore designs to possibly shrink the dot down to a single pulsing LED, so we could reserve 3 leds to at least show that 3 types of alarms are active (red, yellow, gray). Also though, I'm not sure we have built any logic to handle multiple messages being scrolled on the bottom row, so this ticket will explore and design how it should work."

This ticket is to explore and design; nothing is to be built until the owner has chosen from pictures.

What the sign does today

  • The dot is one mark in one colour, that of the most serious thing the sign has to say: red while a suspension, shuttle or closure is in force or a train on the page is stopped; yellow for any other alert in force or a warning that passes; grey for planned work, or a stopped train on a page whose data is old. The lesser colours are hidden (SignCore::render in firmware/lib/sign_core/src/sign_core.cpp, the rank).
  • Several messages do take turns today (SignCore::takeTurns): one thing passes at a time, in the order a warning too wide for the row, then each alert, then each stopped train's row, with the page at rest between two passes (8 seconds before the first, 30 between passes since v0.1.4). A warning and an alert pass along the bottom row; a stopped train's status passes along its own row.
  • Scenarios with two alerts exist (look-alerts-two, warn-alerts-two-stops). None plays a warning, an alert and a stopped train together.

To explore

  1. The dot. Options as LED pictures, lettered, over time: one breathing LED per kind in force (red, yellow, grey), up to three; where they sit; whether all breathe or only the one whose message is passing; whether the lit one should match the message now passing. And how each reads on the panel, where one LED is small.
  2. The turns with several messages. With a 30-second rest between passes, three messages mean each is said about once every two minutes or more. Options: a shorter rest when more than one is waiting; the most serious said more often; a limit on how many take turns. Whether the order should be by seriousness.
  3. What is on the panel while each passes, so that the reader can tell which message belongs to which colour.
  4. A scenario with a warning, an alert and a stopped train together, with snapshots, whatever is chosen.

Related: #3 (a stopped train's row at rest), #2 (smoother scrolling).

**Seen** by the owner on the panel, 2026-11-22, on `v0.1.4`: a yellow warning message and a red "train stopped x stops away" message were active together. The dot in the top left corner was red; nothing showed that a yellow message was active too. The owner: "Currently it appears that the red dot takes priority, and hides the yellow dot. We should explore designs to possibly shrink the dot down to a single pulsing LED, so we could reserve 3 leds to at least show that 3 types of alarms are active (red, yellow, gray). Also though, I'm not sure we have built any logic to handle multiple messages being scrolled on the bottom row, so this ticket will explore and design how it should work." This ticket is to explore and design; nothing is to be built until the owner has chosen from pictures. ## What the sign does today - **The dot** is one mark in one colour, that of the most serious thing the sign has to say: red while a suspension, shuttle or closure is in force or a train on the page is stopped; yellow for any other alert in force or a warning that passes; grey for planned work, or a stopped train on a page whose data is old. The lesser colours are hidden (`SignCore::render` in `firmware/lib/sign_core/src/sign_core.cpp`, the `rank`). - **Several messages** do take turns today (`SignCore::takeTurns`): one thing passes at a time, in the order a warning too wide for the row, then each alert, then each stopped train's row, with the page at rest between two passes (8 seconds before the first, 30 between passes since `v0.1.4`). A warning and an alert pass along the bottom row; a stopped train's status passes along its own row. - Scenarios with two alerts exist (`look-alerts-two`, `warn-alerts-two-stops`). None plays a warning, an alert and a stopped train together. ## To explore 1. **The dot.** Options as LED pictures, lettered, over time: one breathing LED per kind in force (red, yellow, grey), up to three; where they sit; whether all breathe or only the one whose message is passing; whether the lit one should match the message now passing. And how each reads on the panel, where one LED is small. 2. **The turns with several messages.** With a 30-second rest between passes, three messages mean each is said about once every two minutes or more. Options: a shorter rest when more than one is waiting; the most serious said more often; a limit on how many take turns. Whether the order should be by seriousness. 3. **What is on the panel while each passes**, so that the reader can tell which message belongs to which colour. 4. A scenario with a warning, an alert and a stopped train together, with snapshots, whatever is chosen. Related: #3 (a stopped train's row at rest), #2 (smoother scrolling).
Author
Owner

This work is being done on #16

This work is being done on #16
Author
Owner

Done in v0.1.11 (commit bd8000e), together with #16, OpenSpec change alerts-with-their-stop.

The dot: look C

The owner chose from a demo page that played eleven looks side by side with the sign's own code, in five situations: https://claude.ai/artifact/9zeVA5zmyEak6m9K59Rqnc (private).

  • Round one: A, today's dot; B, a light for each kind (the idea in this ticket); C, colours in turn; D, a light for each message.
  • Round two: E, core and ring; F, the dot divides; G, beats; H, a turning ring; I, a line under the name; J, a bigger dot in slices; K, a corner flag.

The owner's words: "I still prefer C, lets go with that."

C: the dot keeps its place, size and breathing. Each kind present takes a breath in turn, most serious first: red (a suspension, shuttle or closure, or a stopped train), then yellow (any other alert, or a warning that passes), then grey (planned work). The colour changes only where the breath is dimmest. While a message passes, the dot is that message's colour. With one kind it is as before.

The other questions

  • The turns: still by seriousness, one at a time, with 30 s between passes on one page. The demo's switch for 15 s while several wait was not taken.
  • "The most serious said more often": left out. With one message a visit on a sign of several stops it would rarely matter, and it makes the order hard to follow.
  • Which message is which colour: each message passes in its own colour, and the dot holds that colour while it passes.
  • A warning, an alert and a stopped train together: new scenario look-warning-alert-and-stopped-train. The warning cuts the delay short and passes at once, the stopped train's row passes in grey, the dot breathes yellow and grey in turn, and the delay passes again once the data is back.

How it was checked

  • New scenarios: look-alerts-three-kinds (red, yellow and grey in turn), look-alert-and-stopped-train (the sighting of 2026-11-22), look-warning-alert-and-stopped-train.
  • The checkpoint test now checks the dot's colour at every alert checkpoint.
  • Tests: test_the_dots_colour_is_each_kinds_in_turn, test_the_dot_takes_each_kinds_colour_in_turn, and test_a_stopped_trains_row_takes_turns_with_an_alert updated.
  • All checks pass: pio test -e native 292 of 292, native_asan 292 of 292, program check 309 checkpoints with 0 differences, the browser build 308 with 0 differences, and both boards build (static RAM unchanged on both). CI passed on the commit.

Release

v0.1.11 was published on 2026-12-01 at 15:58 Boston time, with all seven files. Each sign installs it at its next nightly check (03:00 to 03:59 Boston time), or a minute after its first trains the next time it starts.

Done in **v0.1.11** (commit bd8000e), together with #16, OpenSpec change `alerts-with-their-stop`. ## The dot: look C The owner chose from a demo page that played eleven looks side by side with the sign's own code, in five situations: https://claude.ai/artifact/9zeVA5zmyEak6m9K59Rqnc (private). - Round one: A, today's dot; B, a light for each kind (the idea in this ticket); C, colours in turn; D, a light for each message. - Round two: E, core and ring; F, the dot divides; G, beats; H, a turning ring; I, a line under the name; J, a bigger dot in slices; K, a corner flag. The owner's words: "I still prefer C, lets go with that." **C:** the dot keeps its place, size and breathing. Each kind present takes a breath in turn, most serious first: red (a suspension, shuttle or closure, or a stopped train), then yellow (any other alert, or a warning that passes), then grey (planned work). The colour changes only where the breath is dimmest. While a message passes, the dot is that message's colour. With one kind it is as before. ## The other questions - **The turns:** still by seriousness, one at a time, with 30 s between passes on one page. The demo's switch for 15 s while several wait was not taken. - **"The most serious said more often":** left out. With one message a visit on a sign of several stops it would rarely matter, and it makes the order hard to follow. - **Which message is which colour:** each message passes in its own colour, and the dot holds that colour while it passes. - **A warning, an alert and a stopped train together:** new scenario `look-warning-alert-and-stopped-train`. The warning cuts the delay short and passes at once, the stopped train's row passes in grey, the dot breathes yellow and grey in turn, and the delay passes again once the data is back. ## How it was checked - New scenarios: `look-alerts-three-kinds` (red, yellow and grey in turn), `look-alert-and-stopped-train` (the sighting of 2026-11-22), `look-warning-alert-and-stopped-train`. - The checkpoint test now checks the dot's colour at every alert checkpoint. - Tests: `test_the_dots_colour_is_each_kinds_in_turn`, `test_the_dot_takes_each_kinds_colour_in_turn`, and `test_a_stopped_trains_row_takes_turns_with_an_alert` updated. - All checks pass: `pio test -e native` 292 of 292, `native_asan` 292 of 292, `program check` 309 checkpoints with 0 differences, the browser build 308 with 0 differences, and both boards build (static RAM unchanged on both). CI passed on the commit. ## Release `v0.1.11` was published on 2026-12-01 at 15:58 Boston time, with all seven files. Each sign installs it at its next nightly check (03:00 to 03:59 Boston time), or a minute after its first trains the next time it starts.
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#4
No description provided.