π 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.postMessageconsent 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=) andGET|HEAD /api/sdcard/file?path=..., strictly jailed to/somnotrace/SDCARDbehind your existing web auth, for scripts, Home Assistant, and desktop tools. - Full protocol & integration guide documented in
spec/0016-browser-sdcard-export-bridge.md.
- HTTPS sleep platforms (such as CPAP Clarity) can now pull your CPAP files directly from SomnoTrace in 1 click using a secure
-
π 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 browserpostMessagebridge (connect_bridge_test), and therapy session detection (session_detect_test), plus expandededf_genand UI tests.