run 32
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user