README.md (4691B)
1 # Open Mérou 2 3 A free, open-source iOS app for the Oceanic+ dive housing: buttons, vacuum pump, sensors and camera with 4 color correction, without a subscription. It can also act as a secondary dive computer (optional, off by 5 default). 6 7 The Bluetooth protocol of the housing was reverse-engineered, for interoperability, from the exchanges 8 between the housing and the official app: see [docs/PROTOCOL.md](docs/PROTOCOL.md). 9 This project is neither affiliated with nor endorsed by Huish Outdoors; "Oceanic" is their trademark. 10 11 The app is available in English and French. 12 13 ## Status 14 15 Version 0.4: automatic connection to the housing ("HUISH"); vacuum sequence guided by the buttons, leak 16 test corrected for temperature, continuous monitoring; camera driven by the buttons (full-resolution photo, 17 ProRAW, video up to what the iPhone can do, lenses, exposure, stabilization, sleep). 18 19 ## Dive computer (optional) 20 21 Off by default: the app then only shows basic dive information (estimated depth, dive time, temperature 22 inside the housing) and records nothing. 23 24 Turned on from the home screen, after accepting its terms, it is the same computer as 25 [Open Rémora](https://git.schurger.org/open-remora/) (Apple Watch): Bühlmann ZHL-16C with gradient factors, air 26 or nitrox, from the shared [RemoraKit](https://git.schurger.org/remora-kit/) library, with the same settings, 27 words, colours and alarms. **It is not a certified dive computer**: a secondary instrument, to be used with a 28 primary dive computer. The depth comes from the housing's external pressure sensor, which has not been 29 validated underwater yet. 30 31 - Home screen (touch, before the housing is closed; full screen on black, no camera preview): gas and conservatism, settings, last dive and waiting 32 time before flying, dives pending for Sub Rascasse. The housing is searched from launch; once it is 33 detected, its right button starts the vacuum sequence, then the camera. 34 - Underwater (housing buttons only): a band over the camera shows depth, dive time, ascent rate and the NDL 35 or the stop to do. A long press up, or Menu → Dive computer, opens a full-screen page (left goes back). 36 The settings can be read in Menu → Information, not changed. 37 - Alarms flash the whole screen red with a sound and wake the screen; the first button press silences the 38 sound. The leak alarm keeps priority. The sounds are the app's own tones (`tools/make-sounds.py`), played 39 even when the ring/silent switch is on silent; the volume of the iPhone still applies. 40 - Real dives are handed over to the Sub Rascasse logbook: see [docs/SHARING.md](docs/SHARING.md). 41 - The basic dive information is written in the metadata of the photos and videos taken during a dive, whether 42 the computer is on or off (see docs/SHARING.md). 43 44 ## Development 45 46 XcodeGen project (`project.yml`), Swift 6, iOS 17. RemoraKit is a separate repository, expected next to this 47 one (`../remora-kit`). The Makefile assumes the author's setup: the sources are edited on a Linux host and 48 synced with `rsync` to a Mac reachable over SSH as `chunga`, which runs Xcode. Set `CHUNGA` (the SSH host), 49 `REMOTE` (the directory on the Mac), `KIT` (RemoraKit here) and `REMOTE_KIT` (RemoraKit on the Mac) to adapt it: 50 51 ```bash 52 make build # rsync to the Mac, xcodegen, build 53 make test # unit tests (simulator "OpenMerou test iPhone") 54 ``` 55 56 Or work directly on a Mac: run `xcodegen` at the root of the repository and open the generated Xcode project 57 (`project.yml` is the source of truth; the `.xcodeproj` is not versioned). 58 59 English is the source language of the interface; the French translation lives in 60 `OpenMerou/Localizable.xcstrings` and `OpenMerou/InfoPlist.xcstrings`. 61 62 Launch options: `-simulation` (simulated housing from the start), `-demoMenu` (opens the settings menu). For 63 the dive computer: `-diveComputer YES -acceptTerms` (on for this launch), `-simulateDive reef|deep|shallow` 64 (simulated housing playing a dive on its pressure sensor; `-diveSkip <seconds>` jumps into it), 65 `-computerPage`, `-testAlarm`, `-demoLogbook` (a past dive on the home screen), `-demoHousingDetected` (home 66 screen as with a housing), `-demoHomeWorstCase` (the fullest home screen), `-previewPattern` (a test pattern 67 instead of the camera preview), `-demoVacuum` (simulated housing at the first card of the vacuum sequence), 68 `-showDiveSettings`, `-showTerms`, `-noPermissionPrompts` (screenshots in the simulator). In the simulated 69 housing, "Simulate a dive" does the same by touch. 70 71 Tools: `tools/pklg.py` decodes an iOS Bluetooth log (PacketLogger, sysdiagnose); `tools/make-sounds.py` 72 generates the alert tones of `OpenMerou/Sounds`. 73 74 ## License 75 76 GPL-2.0-only. See [LICENSE](LICENSE).