Skip to content

my.bluemaestro: skip log tables with inconsistent timestamps - #527

Merged
karlicoss merged 1 commit into
masterfrom
bluemaestro
Nov 11, 2026
Merged

karlicoss merged 1 commit into
masterfrom
bluemaestro

Conversation

@karlicoss

Copy link
Copy Markdown
Owner

For devices without a clock, the app assigns evenly spaced timestamps to the readings. It counts back from the download time, or forward from calcReferenceUnix if it's set. When that goes wrong (e.g. the device memory wraps around while calcReferenceUnix is set), the whole table is mislabelled.

The per-row "timestamp too far out" check only caught some of these: readings up to 10 days after the download still got through with wrong timestamps, and each rejected row produced its own error.

Now a table is skipped with a single error if:

  • any reading is dated after the download, or
  • the readings are evenly spaced and the newest one is more than one logging interval before the download.

Unevenly spaced readings come from devices with their own clock, which may legitimately stop logging before the download.

This replaces the is_bad_table config hook removed in 4b5b62b, which required listing bad tables by hand.

For devices without a clock, the app assigns evenly spaced timestamps to the readings.
It counts back from the download time, or forward from `calcReferenceUnix` if it's set.
When that goes wrong (e.g. the device memory wraps around while `calcReferenceUnix` is set), the whole table is mislabelled.

The per-row "timestamp too far out" check only caught some of these: readings up to 10 days after the download still got through with wrong timestamps, and each rejected row produced its own error.

Now a table is skipped with a single error if:
- any reading is dated after the download, or
- the readings are evenly spaced and the newest one is more than one logging interval before the download.

Unevenly spaced readings come from devices with their own clock, which may legitimately stop logging before the download.

This replaces the `is_bad_table` config hook removed in 4b5b62b, which required listing bad tables by hand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@karlicoss
karlicoss merged commit 20890e7 into master Nov 11, 2026
18 checks passed
@karlicoss
karlicoss deleted the bluemaestro branch November 11, 2026 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant