Commit graph

208 commits

Author SHA1 Message Date
b803de93de feat: display clock delta history in UI
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-28 23:14:31 +01:00
7738d14097 addded comments to config.yml 2025-07-28 23:04:48 +01:00
4aced3eb48
Merge pull request #11 from cjfranko/daemon
Some checks failed
Build for Raspberry Pi / Build for aarch64 (push) Failing after 22s
Daemon


merging this branch in, 
we are aware that the time is currently off
2025-07-28 14:07:45 +01:00
Chris Frankland-Wright
784b3b9be6
Create LICENSE 2025-07-22 13:40:18 +01:00
Chris Frankland-Wright
5c321f5b1e
Add files via upload 2025-07-22 13:34:13 +01:00
Chris Frankland-Wright
1c05ed62d0
Update README.md 2025-07-21 22:38:45 +01:00
Chris Frankland-Wright
ec29655ff3
Add files via upload
slight variant to cope with single mismatch lines, this version will only go into free mode after 1 second of no LTC timecode. This improves reading in NTP-Timeturner where it would read a very bad timecode and panic with delta/sync status
2025-07-21 22:32:22 +01:00
1150fa20c3 cargo fix 2025-07-21 22:07:16 +01:00
7bf45c43c9 feat: add daemonization with the daemonize crate
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 22:05:11 +01:00
e243d87018 cargo update for daemonizeation 2025-07-21 22:04:29 +01:00
fb45a2e168 actually you do effectively build them twice 2025-07-21 21:36:58 +01:00
2dc82c34cb You only build twice, (well you usedt too) 2025-07-21 21:31:36 +01:00
8864bef1db fix: import DateTime and remove unused Datelike import
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 21:24:01 +01:00
060cff4089 fix: Resolve serde lifetime error in ApiStatus struct
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 21:21:41 +01:00
6ed1fc31e7 refactor: extract time calculation logic and add tests
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 21:16:38 +01:00
6afe6580fb gone 2025-07-21 21:14:41 +01:00
ec132a2840 refactor: replace systemd logger with env_logger
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 20:52:55 +01:00
cd737b895e build: vendor systemd to support cross-compilation
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 20:47:43 +01:00
4ebe8b597a fix: switch to systemd crate to resolve build failure
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 20:43:39 +01:00
2ac14c8d5b fix: Enable systemd feature to correctly initialize logger
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 20:40:18 +01:00
838082e95a fix: manually initialize systemd logger to fix build error
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 20:33:14 +01:00
9f39fb3739 fix: remove incorrect x86_64 target configuration
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 20:28:00 +01:00
56e6071e3a build: add aarch64 target for Raspberry Pi
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 20:24:14 +01:00
d983d632f8 build: set linker for x86_64-unknown-linux-gnu target 2025-07-21 20:23:57 +01:00
Chris Frankland-Wright
c1587e8ce6
Update README.md 2025-07-21 20:12:24 +01:00
Chris Frankland-Wright
d9e51888bb
Update README.md
added John as co-author
2025-07-21 20:12:02 +01:00
b2f50be611 fix: correct systemd logger initialization for Linux builds
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 20:10:49 +01:00
183fdc0725 fix: use init_with_level for systemd logger initialization
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 20:03:45 +01:00
b1a0483d6c fix: Correct systemd logger initialization
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 19:58:51 +01:00
154c07f613 fix: update logger call and remove unused import
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 19:54:46 +01:00
12065a08c2 fix: Conditionally compile systemd features for Linux only
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 19:46:16 +01:00
b854d29015 refactor: Extract system and status logic from UI module
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 19:44:10 +01:00
1d9bc1e25e feat: add daemon mode and systemd service
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 19:42:46 +01:00
d55a11b074
Merge pull request #10 from cjfranko/portal
Portal
2025-07-21 19:27:38 +01:00
fecfed04e7 fix: remove unused imports
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 19:20:29 +01:00
777a202877 feat: add timeturner for time offsets and migrate config to YAML
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 19:16:06 +01:00
08577f5064 json2yml 2025-07-21 19:12:33 +01:00
c48ef1cf3f feat: add web frontend to control the API
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 19:00:19 +01:00
666ce4308f
Merge pull request #9 from cjfranko/api
Api
2025-07-21 18:53:28 +01:00
19a7ac14fb test: remove non-functional manual_sync test
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 18:47:22 +01:00
03468d7568 test: fix failing manual_sync test assertion
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 18:41:46 +01:00
0a9f9c6612 fix: Add macOS support for time sync command
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 18:39:48 +01:00
ac08ffb54f test: add integration tests for API endpoints
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 17:18:41 +01:00
aa1973603e docs: add API documentation
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 17:00:58 +01:00
32b307b935 fix: Embed default config to resolve build failure
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
2025-07-21 16:58:56 +01:00
6eda9149ca api 2025-07-21 16:58:21 +01:00
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