SHARING.md (2087B)
1 # Dives from Open Rémora to Sub Rascasse 2 3 Jean's decision (2026-11-13): Sub Rascasse is the logbook. Open Rémora (watch) records, its iPhone app is the bridge. 4 5 ## Path 6 7 1. **Watch → iPhone** (WatchConnectivity, `OpenRemoraWatch/PhoneLink.swift`): at the end of each real dive, 8 one JSON file (`DiveLog`) sent with `transferFile`, metadata `kind = dive`. Demo dives are not sent. 9 Settings travel through the application context (`settings`, JSON of `UserSettings`); the iPhone only displays them. 10 2. **iPhone → shared folder** (`OpenRemora/PhoneStore.swift`): app group `group.org.schurger.dive` 11 (team CM5RQKJH56), folder `OpenRemora/Plongees/`, two files per dive: 12 - `<uuid>.json`: the complete dive (`DiveLog` from `RemoraDeco`, ISO 8601 dates); 13 - `<uuid>.uddf`: the same dive in UDDF 3.2 (profile, stops, alarms), readable without `RemoraDeco`. 14 3. **Sub Rascasse** (to do, other repository): 15 - declare the same app group `group.org.schurger.dive`; 16 - at launch and when returning to the foreground, read `OpenRemora/Plongees/*.json` (or `*.uddf`), add the dives 17 to the logbook (and to the Subsurface cloud if it is linked), then **delete both files**: the Open Rémora app counts 18 the remaining `.json` files as "pending"; 19 - declare the `subrascasse` URL scheme; Open Rémora opens `subrascasse://open-remora` ("Open Sub Rascasse" button). 20 21 ## Useful JSON fields 22 23 `id` (UUID), `number`, `start`, `surfacePressure` (bar), `surfaceIntervalBefore` (min), `gas.o2`, `gradientFactors.low|high`, 24 `water`, `samples[]` (`time` s, `depth` m, `temperature` °C, `ceiling` m, `noDecompressionLimit` min, `stopDepth`, 25 `stopMinutes`), `events[]` (`time`, `warning`: ascentFast, ascentTooFast, ceilingViolated, ppO2High, ppO2Critical), 26 `tissuesAfter` (16 nitrogen pressures, bar), `computerModel` = "Open Rémora". 27 Optional, absent when empty: `latitude`, `longitude` (entry point, GPS fix taken on the "Ready" screen before the dive) and 28 `marks[]` (points marked by the diver with the Action button: `time` s, `depth` m, `heading` magnetic degrees or absent).