Commit graph

38 commits

Author SHA1 Message Date
2d6f65046a fix: run API server in LocalSet to fix spawn_local panic
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 16:55:17 +01:00
c94e1ea4b0 fix: use spawn_local to run non-Send API server task
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 16:49:35 +01:00
0325c3b570 fix: Set tokio runtime to current_thread to fix !Send errors
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 16:48:09 +01:00
8ad553aaee feat: add web API for status, sync, and configuration
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 16:44:41 +01:00
a124aae424 test: add tests for ensure_config function
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 16:31:28 +01:00
3cbe95bd6a test: add tests for serial input processing
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 16:18:17 +01:00
0b8fa0fbf8 fix: Calculate clock delta using median to resist outliers
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 16:10:40 +01:00
30fb752cbb test: add tests for UI status helpers
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 16:06:22 +01:00
Chris Frankland-Wright
80a4fbe538
force commit of ui.rs 2025-07-21 15:38:29 +01:00
a0115b556b fixed to accept incoming changes, 2025-07-21 14:43:04 +01:00
Chris Frankland-Wright
14a4083b20 updated ui.rs 2025-07-21 14:35:17 +01:00
Chris Frankland-Wright
5cfdf46955 merge into John's work 2025-07-21 14:35:04 +01:00
Chris Frankland-Wright
2d57d05908 updated ui.rs to localise the system clock from ssh clock 2025-07-21 14:33:09 +01:00
bbb5334202
Merge branch 'master' into withmergeresolve 2025-07-21 14:25:00 +01:00
fe98dad764 merged ui.rs for PR merge 2025-07-21 14:23:35 +01:00
Chris Frankland-Wright
d6aa5dd7b5 updated UI from NTPSEC to Chrony 2025-07-21 13:57:13 +01:00
1b51e45d87 ui 2025-07-21 12:39:54 +01:00
7b41d7ad06 fix: Silence unused variable warning for avg_frames
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 12:31:11 +01:00
dd544649b1 decomment 2025-07-21 12:29:37 +01:00
139d453afb removed comment 2025-07-21 12:29:09 +01:00
abc5d6af4b fix: use current frame for timecode sync check
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 11:58:47 +01:00
2b1481264e test: add tests for timecode match status and throttling
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 11:55:09 +01:00
6df45a1332 test: correct assertion for FREE frame status
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 11:49:00 +01:00
b049b27959
Update sync_logic.rs 2025-07-21 11:33:53 +01:00
10da97a631
Merge branch 'master' into withmergeresolve 2025-07-21 11:33:17 +01:00
Chris Frankland-Wright
c344d4b972 ntp service implemented 2025-07-20 17:37:02 +01:00
Chris Frankland-Wright
71cbc66f85 added logging window to UI 2025-07-20 13:28:21 +01:00
Chris Frankland-Wright
ad915c4aeb implemented sync drift detect and auto sync if out of sync 2025-07-20 12:42:12 +01:00
da7152d851 update with comment 2025-07-19 15:49:59 +01:00
f60b83ff9c keirstarmers five tests 2025-07-19 15:49:35 +01:00
bc91b15940 add the test for ltc_frame_does_not_match_system_time 2025-07-19 15:44:30 +01:00
b261d7c585 ci: add back in old test and fix test to be testing for something that actually exists 2025-07-19 15:41:45 +01:00
9412c7452c ci: removed system test function from application
as code for sync locking no longer exists,

    #[test]
    fn test_ltc_frame_does_not_match_system_time() {
        let now = Local::now();
        // Create a time that is one hour ahead, wrapping around 23:00
        let different_hour = (now.hour() + 1) % 24;
        let frame = get_test_frame("LOCK", different_hour, now.minute(), now.second());
        assert!(!frame.matches_system_time());
    }
2025-07-19 15:33:35 +01:00
f61a2b0871
Merge branch 'main' into update 2025-07-19 15:27:35 +01:00
Chris Frankland-Wright
a47a0e6bd3
double check upload of tested version 2025-07-19 12:29:10 +01:00
a6523bf105 CD/CI git build workflow and unit testing + dependabot intergration for security updates 2025-07-18 12:50:53 +01:00
Chris Frankland-Wright
bd2111d77a Rust ported and tested version 2025-07-09 01:18:49 +01:00
Chris Frankland-Wright
138b1e07a8 initial push of Rust version 2025-07-08 20:57:15 +01:00