MCPcopy Create free account

hub / github.com/Th0rgal/open_oura / functions

Functions292 in github.com/Th0rgal/open_oura

↓ 2 callersFunctiontmin
(ds)
tools/run_activity_model.py:112
↓ 2 callersMethodwith_quiet
Override the per-request quiet window.
crates/oura-link/src/client.rs:99
↓ 1 callersFunction_scan_json
(obj, host: str, path: str = "")
tools/oura_token_sniff.py:35
↓ 1 callersFunctionbehavior
behavior-id -> name, from the model's behavior table (ActivityTypes.json).
crates/oura-cli/src/activity_model.rs:19
↓ 1 callersFunctionbuild_config_params
Best-effort minimal ConfigParams. If the server returns no ota_files, capture the real body/response from mitmproxy instead.
tools/oura_firmware_download.py:122
↓ 1 callersFunctionbuild_segments
(db, since_ds)
tools/run_cva_model.py:41
↓ 1 callersMethodcheck_sleep_analysis
Trigger the ring's sleep analysis. Returns the `0x29` status byte.
crates/oura-link/src/client.rs:330
↓ 1 callersFunctioncmd_accel
(cli: &Cli, key: &Option<[u8; 16]>, seconds: u64)
crates/oura-cli/src/main.rs:782
↓ 1 callersFunctioncmd_events
(cli: &Cli)
crates/oura-cli/src/main.rs:1099
↓ 1 callersFunctioncmd_feature_mode
Set a feature's operating mode (SetFeatureMode). The consumer-feature enable path — e.g. `feature-mode real_steps` turns on the on-ring step/gait DSP
crates/oura-cli/src/main.rs:345
↓ 1 callersFunctioncmd_feature_status
Read the actual on-ring mode/status of the data-producing features.
crates/oura-cli/src/main.rs:383
↓ 1 callersFunctioncmd_features
( cli: &Cli, key: &Option<[u8; 16]>, enable_hr: bool, enable_spo2: bool, )
crates/oura-cli/src/main.rs:488
↓ 1 callersFunctioncmd_info
(cli: &Cli, key: &Option<[u8; 16]>)
crates/oura-cli/src/main.rs:590
↓ 1 callersFunctioncmd_latest
(cli: &Cli, key: &Option<[u8; 16]>)
crates/oura-cli/src/main.rs:703
↓ 1 callersFunctioncmd_live_hr
(cli: &Cli, key: &Option<[u8; 16]>, seconds: u64, raw: bool)
crates/oura-cli/src/main.rs:745
↓ 1 callersFunctioncmd_pair
(cli: &Cli)
crates/oura-cli/src/main.rs:547
↓ 1 callersFunctioncmd_rdata
(cli: &Cli, key: &Option<[u8; 16]>, action: &str)
crates/oura-cli/src/main.rs:815
↓ 1 callersFunctioncmd_scan
(cli: &Cli)
crates/oura-cli/src/main.rs:535
↓ 1 callersFunctioncmd_sessions
Label activity sessions by running Oura's own `automatic_activity_detection` TorchScript model over the stored events. Built with `--features torch` i
crates/oura-cli/src/main.rs:418
↓ 1 callersFunctioncmd_sleep_analyze
(cli: &Cli, key: &Option<[u8; 16]>, force: bool)
crates/oura-cli/src/main.rs:770
↓ 1 callersFunctioncmd_subscribe
Subscribe a feature capability via SetFeatureSubscription (needs auth).
crates/oura-cli/src/main.rs:294
↓ 1 callersFunctioncmd_sync
(cli: &Cli, key: &Option<[u8; 16]>, sync_time: bool)
crates/oura-cli/src/main.rs:628
↓ 1 callersMethodcursor
The persisted incremental-sync cursor (deciseconds), or 0 if none.
crates/oura-store/src/storage.rs:112
↓ 1 callersFunctiondecode_atlas_metadata
`atlas_metadata` (tag `0x87`): control message that opens an Atlas (bioZ) stream. Only the subtype-0 "start" form (10 bytes) is decoded.
crates/oura-protocol/src/events.rs:630
↓ 1 callersFunctiondecode_event_body
Decode an event body for a given tag. Public entry point for re-decoding events already stored raw (e.g. after adding new decoders).
crates/oura-protocol/src/events.rs:54
↓ 1 callersFunctiondecode_first_byte
A single leading byte under a named key.
crates/oura-protocol/src/events.rs:424
↓ 1 callersFunctiondecode_ibi_amplitude
`ibi_and_amplitude_event` (tag `0x60`): a fixed 14-byte packet holding 6 inter-beat intervals (ms) and PPG amplitudes, bit-packed per the native `pars
crates/oura-protocol/src/events.rs:312
↓ 1 callersFunctiondecode_real_steps
`real_steps_features_1/2` (tags `0x7e`/`0x7f`): a 14-byte bit-packed feature record (the firmware packs 9-bit counts as `byte*2 + carry_bit`). The par
crates/oura-protocol/src/events.rs:566
↓ 1 callersFunctiondecode_sleep_summary_1
`sleep_summary_1` (tag `0x49`): two minute-offsets from the event's ring time to the sleep window start/end. The absolute timestamps need the event he
crates/oura-protocol/src/events.rs:507
↓ 1 callersFunctiondecode_sleep_summary_2
`sleep_summary_2` (tag `0x4c`): 14-byte record (u64, u16, u32). Field names/units unresolved in the decompile.
crates/oura-protocol/src/events.rs:520
↓ 1 callersFunctiondecode_sleep_summary_3
`sleep_summary_3` (tag `0x4f`): 11-byte record; three fields are `>>3` (÷8 fixed-point) in the parser.
crates/oura-protocol/src/events.rs:534
↓ 1 callersFunctiondecode_sleep_summary_4
`sleep_summary_4` (tag `0x58`): 7-byte record (u32, u16, u8).
crates/oura-protocol/src/events.rs:550
↓ 1 callersFunctiondecode_spo2
`spo2_event`: a header byte then one SpO2 % per sample (1 Hz). A trailing `0xff` is a "continued" sentinel, not a sample.
crates/oura-protocol/src/events.rs:277
↓ 1 callersMethoddecoded_events
All decoded events as `(ring_timestamp_deciseconds, tag, decoded_json, captured_unix)`, ordered by ring time. For analysis/reporting commands that rec
crates/oura-store/src/storage.rs:206
↓ 1 callersFunctiondescribe
(name)
tools/inspect_models.py:49
↓ 1 callersMethoddeviation
Abs-deviation in real units.
crates/oura-analysis/src/ported/baseline.rs:69
↓ 1 callersMethoddevice_serials
Distinct device serials that have stored events.
crates/oura-store/src/storage.rs:225
↓ 1 callersMethoddrain_events
Drain history events starting from `cursor` (deciseconds), invoking `on_event` for each. Loops until the ring reports no bytes left. Returns the count
crates/oura-link/src/client.rs:229
↓ 1 callersMethodfeature_latest
Read a feature's latest cached values (HR / SpO2). Reflects the last automatic measurement; meaningful only when the ring is worn.
crates/oura-link/src/client.rs:285
↓ 1 callersFunctiongenerate_key
Generate a random 16-byte auth key from the OS CSPRNG.
crates/oura-cli/src/main.rs:199
↓ 1 callersFunctionget_config
(token: str, params: dict)
tools/oura_firmware_download.py:66
↓ 1 callersFunctionget_events
(start_timestamp: int = 0, max_events: int = 8, flags: int = -1)
tools/oura_protocol.py:160
↓ 1 callersFunctionget_manifest
(token: str, type_: str, version: str, slug: str)
tools/oura_firmware_download.py:76
↓ 1 callersMethodhardware_id
Read the hardware id (e.g. `BLB_03`).
crates/oura-link/src/client.rs:145
↓ 1 callersMethodinsert_event
Insert an event, ignoring exact duplicates. Returns true if a row was added.
crates/oura-store/src/storage.rs:138
↓ 1 callersMethodis_asleep
(self)
crates/oura-analysis/src/ported/sleep.rs:32
↓ 1 callersMethodis_success
(self)
crates/oura-protocol/src/auth.rs:35
↓ 1 callersFunctionle16
(b: &[u8], i: usize)
crates/oura-protocol/src/events.rs:497
↓ 1 callersMethodlive_heart_rate
Enable live heart rate (daytime HR, `CONNECTED_LIVE`) and invoke `on_sample` for each valid beat for up to `duration`. Restores `AUTOMATIC` mode on ex
crates/oura-link/src/client.rs:435
↓ 1 callersMethodmagnitude
Vector magnitude, useful for motion/wave detection.
crates/oura-link/src/client.rs:32
↓ 1 callersFunctionmain
()
tools/run_models.py:164
↓ 1 callersFunctionmain
()
tools/run_cva_model.py:69
↓ 1 callersFunctionmain
()
tools/run_spo2.py:35
↓ 1 callersFunctionmain
()
tools/run_activity_model.py:86
↓ 1 callersFunctionmain
()
tools/oura_protocol.py:630
↓ 1 callersFunctionmain
()
tools/oura_realtime_listener.py:64
↓ 1 callersFunctionmain
()
tools/inspect_models.py:91
↓ 1 callersFunctionmain
()
tools/oura_firmware_download.py:149
↓ 1 callersFunctionmedian7
(buf: &[u16; 7])
crates/oura-analysis/src/ported/temperature.rs:12
↓ 1 callersMethodnew
Wrap a transport with the default response window.
crates/oura-link/src/client.rs:91
↓ 1 callersFunctionparse_args
()
tools/run_activity_model.py:60
↓ 1 callersFunctionparse_capabilities
Parse a capabilities page response (`0x2f` ext `0x02`).
crates/oura-protocol/src/device.rs:89
↓ 1 callersFunctionrdata_probe
RData capacity rate-probe (Phase-2 spike): arm ACM-50, record briefly, then stop and drain pages to measure the real byte rate and page size. **ALWAYS
crates/oura-cli/src/main.rs:855
↓ 1 callersFunctionrdata_recipe
Test 1: run the app's strict start recipe — Clear (require SUCCESS) -> state -> CONFIGURE with startTime=0 — and report each status. Tears down afterw
crates/oura-cli/src/main.rs:965
↓ 1 callersFunctionrdata_sweep
Try several RData `configure` argument variants and report which (if any) moves the ring out of the idle state (status 3). Each attempt is immediately
crates/oura-cli/src/main.rs:1060
↓ 1 callersFunctionrdata_unlock
Combined in-session unlock attempt: confirm RAW_DATA_SAMPLER is advertised, try enabling it (subscription + feature-mode) on the correct id 0x12, then
crates/oura-cli/src/main.rs:998
↓ 1 callersMethodredecode
Re-decode every stored event body with the current decoders, updating `decoded_json`. Returns `(rows_with_decode, total_rows)`. Lets new decoders be a
crates/oura-store/src/storage.rs:178
↓ 1 callersFunctionreq_auth_nonce
Request the app-auth nonce (`0x2f` ext `0x2b`).
crates/oura-protocol/src/protocol.rs:100
↓ 1 callersFunctionreq_authenticate
Authenticate with the AES-encrypted nonce (`0x2f` ext `0x2d`).
crates/oura-protocol/src/protocol.rs:105
↓ 1 callersFunctionreq_battery
Get battery level (`0x0c`).
crates/oura-protocol/src/protocol.rs:95
↓ 1 callersFunctionreq_capabilities
Get a capabilities page (`0x2f` ext `0x01`).
crates/oura-protocol/src/protocol.rs:131
↓ 1 callersFunctionreq_check_sleep_analysis
Ask the ring to run sleep analysis (`28 01 <force>`). After it postprocesses, `sleep_phase`/`sleep_summary` events appear in history. Response tag `0x
crates/oura-protocol/src/protocol.rs:200
↓ 1 callersFunctionreq_feature_latest
Get a feature's latest values (`0x2f` ext `0x24`).
crates/oura-protocol/src/protocol.rs:162
↓ 1 callersFunctionreq_feature_status
Get a feature's status (`0x2f` ext `0x20`).
crates/oura-protocol/src/protocol.rs:157
↓ 1 callersFunctionreq_firmware
Get firmware / API / bootloader / BT-stack / MAC (`0x08`).
crates/oura-protocol/src/protocol.rs:90
↓ 1 callersFunctionreq_get_event
Get up to `max_events` history events from `start` (deciseconds) (`0x10`). `flags` is passed through verbatim; the app uses `-1` to request all types
crates/oura-protocol/src/protocol.rs:148
↓ 1 callersFunctionreq_rdata_clear
Clear RData session/data from flash (`030104`).
crates/oura-protocol/src/protocol.rs:280
↓ 1 callersFunctionreq_rdata_configure
Configure/start an RData session for one or more signal types. Layout matches the app's `RDataStart`: `03 <len> 02 <startTime u32 LE> <currentTime u32
crates/oura-protocol/src/protocol.rs:294
↓ 1 callersFunctionreq_rdata_get_page
Request an RData page by index (`0303 01 <page u16 LE>`).
crates/oura-protocol/src/protocol.rs:285
↓ 1 callersFunctionreq_rdata_state
Query RData collection state (`030105`) — read-only, safe.
crates/oura-protocol/src/protocol.rs:270
↓ 1 callersFunctionreq_rdata_stop
Stop an RData collection session (`030103`).
crates/oura-protocol/src/protocol.rs:275
↓ 1 callersFunctionreq_set_auth_key
Install a 16-byte auth key on a factory-reset ring (`0x24`).
crates/oura-protocol/src/protocol.rs:113
↓ 1 callersFunctionreq_set_feature_subscription
`SetFeatureSubscription` — subscribe/unsubscribe a feature capability (e.g. real steps, Atlas/bioZ). Extended op `0x2f`, sub-op `0x26`; response sub-o
crates/oura-protocol/src/protocol.rs:194
↓ 1 callersFunctionreq_set_notification
Enable/disable the async notification flags (`0x1c`).
crates/oura-protocol/src/protocol.rs:126
↓ 1 callersFunctionreq_sync_time
Set the ring clock to a UTC unix timestamp (`0x12`).
crates/oura-protocol/src/protocol.rs:118
↓ 1 callersFunctionrequest_nonce
(client: BleakClient, listen_seconds: float, capture: Optional[Path])
tools/oura_protocol.py:610
↓ 1 callersFunctionrmssd
Heart-rate variability. Ported from ecore `hrv @ 0x1e7984`: RMSSD of the inter-beat-interval series — the textbook `sqrt(mean(diff(ibi)^2))`. The ring
crates/oura-analysis/src/ported/hrv.rs:8
↓ 1 callersFunctionsave_key
Persist a key as hex with owner-only permissions.
crates/oura-cli/src/main.rs:207
↓ 1 callersFunctionscan
Scan for Oura rings advertising the service, filtered by case-insensitive name substring. Returns candidates sorted by signal strength (strongest firs
crates/oura-link/src/ble.rs:47
↓ 1 callersFunctionset_auth_key
(client: BleakClient, key: bytes, listen_seconds: float, capture: Optional[Path])
tools/oura_protocol.py:620
↓ 1 callersMethodset_auth_key
Install a new 16-byte auth key. Only valid on a factory-reset ring.
crates/oura-link/src/client.rs:193
↓ 1 callersFunctionsleep_debt
Sleep debt from per-day actual and needed sleep (seconds), index 0 = most recent. Days with actual/need of 0 or `i32::MAX` are treated as invalid.
crates/oura-analysis/src/ported/sleep_debt.rs:34
↓ 1 callersMethodstream_accelerometer
Stream live accelerometer samples (the "wave to test motion" path): enable the ACM real-time measurement for `duration` and invoke `on_sample` for eac
crates/oura-link/src/client.rs:490
↓ 1 callersMethodsubscribe
(&self)
crates/oura-link/src/transport.rs:94
↓ 1 callersFunctionsummarize
Summarize an epoch stage-code series (+ optional time-in-bed seconds) into stage durations, sleep-onset latency, wake count and efficiency.
crates/oura-analysis/src/ported/sleep.rs:68
↓ 1 callersFunctionsync_time
(ts: Optional[int] = None, timezone_half_hours: int = 0)
tools/oura_protocol.py:164
↓ 1 callersFunctiontransact
Write `request` and collect notification frames until the link is quiet for `quiet` (i.e. no new frame arrives within that window). This matches the r
crates/oura-link/src/transport.rs:29
↓ 1 callersMethodupsert_device
Record/refresh device metadata.
crates/oura-store/src/storage.rs:84
↓ 1 callersFunctionvo2max_jackson
Metabolic helpers ported from ecore's activity/calorie path. These match the standard published formulas the decompile uses (constants confirmed again
crates/oura-analysis/src/ported/metabolic.rs:7
↓ 1 callersMethodwrite
(&self, data: &[u8])
crates/oura-link/src/transport.rs:84
← previousnext →101–200 of 292, ranked by callers