Repository navigation
Colmi sync fixes from OpenStrap Edge, automatic backups, corrected "What affects you" - #27
Merged
Merged
Conversation
…hat affects you" Colmi (ideas from OpenStrap Edge's adapter, reimplemented): - Drop heart-rate, stress and HRV history slots stamped after now: the ring reuses yesterday's byte for slots it hasn't measured yet today. HR history also keeps only 25–230 bpm. - A history request the ring refuses (opcode | 0x80) ends that stage at once instead of waiting out the 10–20 s watchdog. - A paged day that goes quiet for 2 s (5 s for activity) counts as complete. - Legacy temperature waits for quiet before finishing; some firmware answers one reply per day. Capped at 8 replies. - A night whose header disagrees with its stage blocks by more than 15 minutes is laid back from its end. - Activity slot calories (bytes 7–8) are carried in diagnostics, unused until a capture confirms the scale. - After a sync, once the link is quiet for 4 s and no live session runs, the app hangs up itself and the drop counts as idle (rest, no error). Automatic backups: daily or weekly, into a folder the user picks, keeping the latest 5; a lost folder grant fails loudly instead of writing elsewhere. "What affects you": Welch t-tests with a Benjamini-Hochberg correction across every tag and outcome, so chance differences aren't shown as findings. Claude-Session: https://claude.ai/code/session_01P1t1aUqSUPd3whKXmgVm7w
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Colmi sync. These ideas come from OpenStrap Edge's adapter and are reimplemented here, not copied (Edge is AGPL).
opcode | 0x80) ends its stage immediately instead of waiting for the watchdog.Automatic backups. Daily or weekly into a folder you choose (Settings → Privacy & Data), keeping the latest 5. If folder access is lost, the backup fails visibly instead of writing somewhere else.
"What affects you". Welch t-tests with a Benjamini-Hochberg correction across every tag and outcome.
Tests:
ColmiEdgeLessonsTest,StatsTest,AutoBackupTest, plus a newJournalInsightsTestcase.Generated by Claude Code