From b2804c604b6ff7aa812448849b53193fccf27ed5 Mon Sep 17 00:00:00 2001 From: Chris Frankland-Wright <85807217+cjfranko@users.noreply.github.com> Date: Tue, 8 Jul 2025 17:06:07 +0100 Subject: [PATCH] Update timeturner.py --- timeturner.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/timeturner.py b/timeturner.py index 593d2c9..c7f39b9 100644 --- a/timeturner.py +++ b/timeturner.py @@ -91,7 +91,7 @@ def run_curses(stdscr): SERIAL_PORT = find_teensy_serial() if not SERIAL_PORT: - stdscr.addstr(0, 0, "❌ No serial device found.") + stdscr.addstr(0, 0, "X No serial device found.") stdscr.refresh() time.sleep(2) return @@ -169,21 +169,21 @@ def run_curses(stdscr): color = curses.color_pair(1) stdscr.attron(color) - stdscr.addstr(7, 2, f"Sync Offset : {avg_ms:+.0f} ms ({avg_frames:+.0f} frames)") + stdscr.addstr(7, 2, f"Sync Jitter : {avg_ms:+.0f} ms ({avg_frames:+.0f} frames)") stdscr.attroff(color) elif parsed["status"] == "FREE": stdscr.attron(curses.color_pair(3)) - stdscr.addstr(7, 2, "⚠️ LTC UNSYNCED — offset unavailable") + stdscr.addstr(7, 2, "⚠ LTC UNSYNCED — offset unavailable") stdscr.attroff(curses.color_pair(3)) else: - stdscr.addstr(7, 2, "Sync Offset : …") + stdscr.addstr(7, 2, "Sync Jitter : …") # Timecode Match if timecode_match_status == "IN SYNC": stdscr.attron(curses.color_pair(2)) elif timecode_match_status == "OUT OF SYNC": stdscr.attron(curses.color_pair(1)) - stdscr.addstr(8, 2, f"Timecode Match: {timecode_match_status}") + stdscr.addstr(8, 2, f"Sync Status : {timecode_match_status}") stdscr.attroff(curses.color_pair(1)) stdscr.attroff(curses.color_pair(2)) @@ -218,7 +218,7 @@ def run_curses(stdscr): except KeyboardInterrupt: break except Exception as e: - stdscr.addstr(13, 2, f"⚠️ Error: {e}") + stdscr.addstr(13, 2, f"⚠ Error: {e}") stdscr.refresh() time.sleep(1) @@ -233,9 +233,9 @@ def do_sync(stdscr, parsed, arrival_time): ) timestamp = sync_time.strftime("%H:%M:%S.%f")[:-3] subprocess.run(["sudo", "date", "-s", timestamp], check=True) - stdscr.addstr(13, 2, f"✔️ Synced to LTC: {timestamp}") + stdscr.addstr(13, 2, f"✔ Synced to LTC: {timestamp}") except Exception as e: - stdscr.addstr(13, 2, f"❌ Sync failed: {e}") + stdscr.addstr(13, 2, f"X Sync failed: {e}") if __name__ == "__main__": curses.initscr()