github ilyakruchinin/SomnoTrace v4.0.3

one hour ago

πŸš€ SomnoTrace v4.0.3

A focused release bringing direct browser-app integration, cleaner therapy session detection, and clearer timezone diagnostics.

✨ New Features

  • 🌐 Direct Web App Integration & Read-Only SD Export API

    • HTTPS sleep platforms (such as CPAP Clarity) can now pull your CPAP files directly from SomnoTrace in 1 click using a secure window.postMessage consent popup (/?connect=<origin>). Works across Chrome, Firefox (including HTTPS-Only Mode), and Safari/iOSβ€”no CORS workarounds, no manual SD shuffling, and your SomnoTrace password never leaves your device.
    • Added read-only endpoints GET /api/sdcard/files (with optional ?dir=) and GET|HEAD /api/sdcard/file?path=..., strictly jailed to /somnotrace/SDCARD behind your existing web auth, for scripts, Home Assistant, and desktop tools.
    • Full protocol & integration guide documented in spec/0016-browser-sdcard-export-bridge.md.
  • πŸ•’ Timezone Mismatch Indicator for Live BLE Sessions

    • Live BLE-captured sessions now surface AirSense 11 vs. SomnoTrace timezone offsets directly in the Web UI, making CPAP clock or DST misconfigurations immediately obvious.

πŸ› Bug Fixes & Diagnostics

  • πŸ‘» Fixed "Ghost" Sessions After Therapy / Tube Drying

    • Fixed an edge case where post-therapy airflow (such as AirSense 11 tube drying) could trigger a second, flat/empty session after therapy had already ended.
    • Tightened session start/validation checks so empty or non-breathing sessions are ignored cleanly instead of producing incomplete ghost sessions.
  • πŸͺ΅ Better Reboot & Diagnostics Logging

    • Improved startup/reboot logging in the log stream and provisioning/runtime paths to make troubleshooting unexpected resets much clearer.

πŸ§ͺ Testing & Quality

  • Added unit tests for SD export path jailing/walking (sdcard_api_test), the browser postMessage bridge (connect_bridge_test), and therapy session detection (session_detect_test), plus expanded edf_gen and UI tests.

Don't miss a new SomnoTrace release

NewReleases is sending notifications on new releases.