Skip to content

v0.4.2 — Threshold cache

Latest

Choose a tag to compare

@ADNPolymerase ADNPolymerase released this 17 Jun 19:21
· 1 commit to main since this release

What's new

Persistent threshold cache — thresholds are now stored in localStorage per sensor and survive across measurements that have no ideal_low/ideal_high.

Priority chain (highest → lowest):

  1. Measurement attributes (ideal_low/ideal_high) — used + written to cache
  2. User config (min/max set in card editor) — used + written to cache
  3. localStorage cache — used as fallback when neither above is available
  4. Built-in defaults (PL_DEFAULT_TARGETS) — pH 7.2–7.6, etc.

The card editor also pre-fills threshold fields from cache when no measurement thresholds are available.