Setup and build
just is the single entry point. From a clone of
erik-sutton95/OpenInstaCine:
just # list all recipesjust check # hygiene: lab parser tests, release-note checks, whitespacejust core-test # shared core and Luna protocol package (swift test)Both apps also need the shared OpenCine platform repository checked out next to
this repository, at ../OpenCine (scripts/checkout-opencine.sh fetches the pinned commit).
Shared protocol logic is tested without a camera. Pairing and live view need a physical phone and an Insta360 Luna Ultra on firmware 1.1.15. The first connection asks you to approve the phone on the camera’s touchscreen.
Needs Xcode 26, XcodeGen and just
(brew install just xcodegen):
just ios-generate # generate ios/OpenInstaCine.xcodeprojjust ios-build # Simulator build, no signingjust ios-run [device] # signed build, install and launch on a USB iPhonejust ios-test # app unit testsThe Simulator has no Bluetooth or hotspot API. To run on a phone, set your Team under Signing and enable Hotspot Configuration and Access WiFi Information on the App ID. The app targets iOS 17 and later.
More: iOS app.
Android
Section titled “Android”Needs a JDK (the recipes default to Homebrew’s openjdk), Android SDK with NDK
r27, and the Swift Android SDK (Swift 6.3.3); CI installs it with
scripts/ci-install-swift-android.sh.
From the repo root:
just android-build # debug APKjust android-check # debug APK, unit tests and lint for app and monitorThe app is arm64-v8a only, Android 10 or newer. The debug build is named OpenInstaCine Dev with a grayscale launcher mark. More: Android app.
Simulator live testing
Section titled “Simulator live testing”The Simulator has no Bluetooth or hotspot API, but it shares the Mac’s network.
In a Simulator build the Luna backend skips Bluetooth and talks straight to a
camera on the current network. Join the Mac’s Wi-Fi to the camera network
(camera at 192.168.42.1), keep internet on another interface, install the
DEBUG build, and launch it with a client identity the camera has already
approved (Simulator builds read it from the LUNA_IDENTITY environment
variable). The identity is private: keep it in .local/ and never paste it into
commits, docs or logs.
DEBUG builds (never Release) run a small HTTP remote on TCP 18780 that
tools/oic_remote.py
drives: connect, change settings, move the gimbal, open media, take a
screenshot or grab the last decoded frame.
export OIC_URL=http://127.0.0.1:18780python3 tools/oic_remote.py state # phase, live stats, camera settingspython3 tools/oic_remote.py do '{"action":"iso","value":400}'python3 tools/oic_remote.py shot out.png # key window snapshotThe full action list and the scripted XCUITest walkthrough are in
docs/DEVELOPMENT.md.
Mac live-view lab
Section titled “Mac live-view lab”A Python viewer connects to a real camera without the app. It is the research harness the protocol was mapped with:
just lab-setup # Python venvjust luna-authorize 'EXACT_ADVERTISED_NAME' # first time: approve on the camerajust luna-view # BLE, Wi-Fi join, live windowIt may change the Mac’s Wi-Fi and removes only the camera network profile it
added. tools/LunaProbe is a Swift command-line client over the same protocol
package, used for the firmware 1.1.15 verification. Details:
docs/mac-preview.md.
Shared OpenCine shell
Section titled “Shared OpenCine shell”The monitor UI is shared with OpenPocketCine
through the OpenCine dependency at ../OpenCine. Check out its pinned revision
with scripts/checkout-opencine.sh; common changes are made in that repository.
The contract between the two apps is
docs/SHARED-MONITOR-ENGINE.md.
This handbook
Section titled “This handbook”cd handbooknpm cinpm run dev # http://localhost:4321/HANDBOOK_BASE=/openinstacine/docs npm run buildIt is published at
opencapture.org/openinstacine/docs
when handbook/ changes on main.
Contributing
Section titled “Contributing”Bugs go in GitHub issues.
Pull requests follow Conventional Commits and the
pull request template:
just check, the relevant native check (just core-test, just ios-build or
just android-check), and docs updated when behavior or setup changed.
Community rules: Code of Conduct.
Hygiene
Section titled “Hygiene”Camera Wi-Fi passwords, approval identities, packet captures, camera footage, signing material and unofficial LUT dumps stay out of git. The app keeps its approval identity and the camera Wi-Fi password in the Keychain (iOS) or Keystore (Android).