Skip to content

feat(cuepool): time-window trigger - #68

Merged
BlueJayLouche merged 2 commits into
mainfrom
feat/time-window-trigger
Nov 21, 2026
Merged

BlueJayLouche merged 2 commits into
mainfrom
feat/time-window-trigger

Conversation

@BlueJayLouche

Copy link
Copy Markdown
Collaborator

Summary

A daily From–To window trigger, for shows that must be running during set hours even if the machine boots late.

  • While the clock is inside the window, the cue fires once. A Mac that comes up at 9:31 for a 9:30 window still starts it, from the beginning.
  • Once per window: an operator's Stop sticks until the next window. A CuePool restart mid-window fires it again, which is what you want after a crash. The state is in memory.
  • At To the cue stops with its own fade-out.
  • To at or before From wraps past midnight (22:00–02:00).
  • If the cue is already playing when the window opens, it is left alone.

Evaluated beside the wall-clock trigger in the winit adapter, since the engine never reads wall-clock time. The stop goes through a new EngineCommand::StopCue, which stops a cue the way a Stop cue aimed at it with the cue's fade-out would (groups resolve to their members).

UI: Triggers → Time Window with From/To fields, a win badge in the cue list, and the window in the trigger tooltip.

Test plan

  • cargo fmt --check, cargo clippy --workspace -D warnings, cargo test --workspace (macOS)
  • Unit tests: late start fires once, Stop sticks, stop at To, next day re-fires, already-playing cue left alone, overnight wrap
  • StopCue uses the cue's fade-out
  • Attended: a window across a real reboot

🤖 Generated with Claude Code

BlueJayLouche and others added 2 commits November 19, 2026 09:44
A daily From–To window per cue. While the clock is inside it the cue fires
once, so a machine that boots after From still starts the show; an
operator's Stop sticks for the rest of the window. At To the cue stops with
its own fade-out. To at or before From wraps past midnight.

Evaluated beside the wall-clock trigger in the winit adapter (the engine
never reads wall-clock time). The stop goes through a new
EngineCommand::StopCue, which stops a cue the way a Stop cue aimed at it
with the cue's fade-out would.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@BlueJayLouche
BlueJayLouche merged commit b954f31 into main Nov 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant