Skip to content

feat(cli): add alarm suggest to recommend thresholds from meat profiles#279

Open
jongio wants to merge 1 commit into
mainfrom
idea/cli-alarm-suggest
Open

feat(cli): add alarm suggest to recommend thresholds from meat profiles#279
jongio wants to merge 1 commit into
mainfrom
idea/cli-alarm-suggest

Conversation

@jongio

@jongio jongio commented Jul 12, 2026

Copy link
Copy Markdown
Owner

What

Adds thermoworks alarm suggest <meat>, a one-shot command that recommends alarm thresholds for a cut of meat from the built-in meat profiles.

  • Meat-probe high alarm is set to the profile's pull temperature.
  • Pit band is centered on the profile's reference pit temperature, plus or minus --pit-band degrees (default 25).
  • By-feel cuts like ribs have no numeric pull temp, so only a pit-band suggestion is shown.

The command is offline (no login or network) and suggestion-only. It never writes to a device. It prints ready-to-edit alarm set commands, and --serial, --meat-channel, and --pit-channel fill those commands in with real values.

Why

The SDK already ships the meat profiles used by doneness and plan, but there was no quick way to turn a cut into concrete alarm thresholds. This closes that gap: pick a meat, get the numbers plus the exact commands to arm them.

Usage

thermoworks alarm suggest brisket
thermoworks alarm suggest brisket --pit-band 30
thermoworks alarm suggest brisket --serial ABC123 --meat-channel 1 --pit-channel 2
thermoworks alarm suggest ribs --json

Testing

  • pnpm --dir packages/cli typecheck - clean
  • pnpm --dir packages/cli test - 890 passing (14 new)
  • pnpm lint - clean

New tests cover the pure buildAlarmSuggestion helper (pit band math, pull-temp alarm, by-feel cuts, custom band, placeholders vs filled commands) and the alarmSuggest command (human output, aliases, JSON, flag parsing, error paths).

Closes #274

…iles

`alarm suggest <meat>` reads the built-in meat profiles and prints
suggested alarm thresholds: a meat-probe high alarm at the profile's
pull temperature and a pit band centered on the reference pit
temperature. By-feel cuts like ribs have no numeric target, so only a
pit-band suggestion is shown.

The command is offline (no login or network) and suggestion-only; it
never writes to a device. It prints ready-to-edit `alarm set` commands,
and `--serial`, `--meat-channel`, and `--pit-channel` fill those in.
`--pit-band` tunes the band half-width (default 25). `--json` emits a
structured object for scripting.

Closes #274

Co-authored-by: Copilot App <[email protected]>
@jongio jongio added cli CLI package enhancement New feature or request idea Feature idea from the idea pipeline labels Jul 12, 2026
@jongio jongio self-assigned this Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI package enhancement New feature or request idea Feature idea from the idea pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI: Add alarm suggest to recommend thresholds by meat

1 participant