This commit is contained in:
Aiden
2026-05-13 21:11:12 +10:00
parent c7997d5131
commit 6c2d13156b
8 changed files with 1506 additions and 0 deletions

View File

@@ -156,6 +156,11 @@ def parse_args() -> argparse.Namespace:
parser.add_argument("--repeat", type=int, default=1, help="how many times to send the full frame group")
parser.add_argument("--repeat-interval", type=float, default=0.0, help="delay between repeated frame groups")
parser.add_argument("--read-after-group", type=float, default=0.0, help="extra seconds to read/classify after each full group")
parser.add_argument(
"--prompt-screen",
action="store_true",
help="prompt for a final screen/light note so visible panel state is captured in the log",
)
return parser.parse_args()
@@ -220,6 +225,12 @@ def main() -> int:
if emit_rx(emit, label, read_window(ser, args.read_after_group), args.ascii):
anomaly_count += 1
if args.prompt_screen:
note = input("Final screen/light note (blank = no note): ").strip()
if note:
stamp = dt.datetime.now().strftime("%H:%M:%S.%f")[:-3]
emit(f"{stamp} PANEL {note}")
emit(f"Anomalies: {anomaly_count}")
except KeyboardInterrupt:
emit("Stopped.")