Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Th0rgal/open_oura
/ functions
Functions
292 in github.com/Th0rgal/open_oura
⨍
Functions
292
◇
Types & classes
30
↓ 2 callers
Function
tmin
(ds)
tools/run_activity_model.py:112
↓ 2 callers
Method
with_quiet
Override the per-request quiet window.
crates/oura-link/src/client.rs:99
↓ 1 callers
Function
_scan_json
(obj, host: str, path: str = "")
tools/oura_token_sniff.py:35
↓ 1 callers
Function
behavior
behavior-id -> name, from the model's behavior table (ActivityTypes.json).
crates/oura-cli/src/activity_model.rs:19
↓ 1 callers
Function
build_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 callers
Function
build_segments
(db, since_ds)
tools/run_cva_model.py:41
↓ 1 callers
Method
check_sleep_analysis
Trigger the ring's sleep analysis. Returns the `0x29` status byte.
crates/oura-link/src/client.rs:330
↓ 1 callers
Function
cmd_accel
(cli: &Cli, key: &Option<[u8; 16]>, seconds: u64)
crates/oura-cli/src/main.rs:782
↓ 1 callers
Function
cmd_events
(cli: &Cli)
crates/oura-cli/src/main.rs:1099
↓ 1 callers
Function
cmd_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 callers
Function
cmd_feature_status
Read the actual on-ring mode/status of the data-producing features.
crates/oura-cli/src/main.rs:383
↓ 1 callers
Function
cmd_features
( cli: &Cli, key: &Option<[u8; 16]>, enable_hr: bool, enable_spo2: bool, )
crates/oura-cli/src/main.rs:488
↓ 1 callers
Function
cmd_info
(cli: &Cli, key: &Option<[u8; 16]>)
crates/oura-cli/src/main.rs:590
↓ 1 callers
Function
cmd_latest
(cli: &Cli, key: &Option<[u8; 16]>)
crates/oura-cli/src/main.rs:703
↓ 1 callers
Function
cmd_live_hr
(cli: &Cli, key: &Option<[u8; 16]>, seconds: u64, raw: bool)
crates/oura-cli/src/main.rs:745
↓ 1 callers
Function
cmd_pair
(cli: &Cli)
crates/oura-cli/src/main.rs:547
↓ 1 callers
Function
cmd_rdata
(cli: &Cli, key: &Option<[u8; 16]>, action: &str)
crates/oura-cli/src/main.rs:815
↓ 1 callers
Function
cmd_scan
(cli: &Cli)
crates/oura-cli/src/main.rs:535
↓ 1 callers
Function
cmd_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 callers
Function
cmd_sleep_analyze
(cli: &Cli, key: &Option<[u8; 16]>, force: bool)
crates/oura-cli/src/main.rs:770
↓ 1 callers
Function
cmd_subscribe
Subscribe a feature capability via SetFeatureSubscription (needs auth).
crates/oura-cli/src/main.rs:294
↓ 1 callers
Function
cmd_sync
(cli: &Cli, key: &Option<[u8; 16]>, sync_time: bool)
crates/oura-cli/src/main.rs:628
↓ 1 callers
Method
cursor
The persisted incremental-sync cursor (deciseconds), or 0 if none.
crates/oura-store/src/storage.rs:112
↓ 1 callers
Function
decode_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 callers
Function
decode_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 callers
Function
decode_first_byte
A single leading byte under a named key.
crates/oura-protocol/src/events.rs:424
↓ 1 callers
Function
decode_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 callers
Function
decode_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 callers
Function
decode_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 callers
Function
decode_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 callers
Function
decode_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 callers
Function
decode_sleep_summary_4
`sleep_summary_4` (tag `0x58`): 7-byte record (u32, u16, u8).
crates/oura-protocol/src/events.rs:550
↓ 1 callers
Function
decode_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 callers
Method
decoded_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 callers
Function
describe
(name)
tools/inspect_models.py:49
↓ 1 callers
Method
deviation
Abs-deviation in real units.
crates/oura-analysis/src/ported/baseline.rs:69
↓ 1 callers
Method
device_serials
Distinct device serials that have stored events.
crates/oura-store/src/storage.rs:225
↓ 1 callers
Method
drain_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 callers
Method
feature_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 callers
Function
generate_key
Generate a random 16-byte auth key from the OS CSPRNG.
crates/oura-cli/src/main.rs:199
↓ 1 callers
Function
get_config
(token: str, params: dict)
tools/oura_firmware_download.py:66
↓ 1 callers
Function
get_events
(start_timestamp: int = 0, max_events: int = 8, flags: int = -1)
tools/oura_protocol.py:160
↓ 1 callers
Function
get_manifest
(token: str, type_: str, version: str, slug: str)
tools/oura_firmware_download.py:76
↓ 1 callers
Method
hardware_id
Read the hardware id (e.g. `BLB_03`).
crates/oura-link/src/client.rs:145
↓ 1 callers
Method
insert_event
Insert an event, ignoring exact duplicates. Returns true if a row was added.
crates/oura-store/src/storage.rs:138
↓ 1 callers
Method
is_asleep
(self)
crates/oura-analysis/src/ported/sleep.rs:32
↓ 1 callers
Method
is_success
(self)
crates/oura-protocol/src/auth.rs:35
↓ 1 callers
Function
le16
(b: &[u8], i: usize)
crates/oura-protocol/src/events.rs:497
↓ 1 callers
Method
live_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 callers
Method
magnitude
Vector magnitude, useful for motion/wave detection.
crates/oura-link/src/client.rs:32
↓ 1 callers
Function
main
()
tools/run_models.py:164
↓ 1 callers
Function
main
()
tools/run_cva_model.py:69
↓ 1 callers
Function
main
()
tools/run_spo2.py:35
↓ 1 callers
Function
main
()
tools/run_activity_model.py:86
↓ 1 callers
Function
main
()
tools/oura_protocol.py:630
↓ 1 callers
Function
main
()
tools/oura_realtime_listener.py:64
↓ 1 callers
Function
main
()
tools/inspect_models.py:91
↓ 1 callers
Function
main
()
tools/oura_firmware_download.py:149
↓ 1 callers
Function
median7
(buf: &[u16; 7])
crates/oura-analysis/src/ported/temperature.rs:12
↓ 1 callers
Method
new
Wrap a transport with the default response window.
crates/oura-link/src/client.rs:91
↓ 1 callers
Function
parse_args
()
tools/run_activity_model.py:60
↓ 1 callers
Function
parse_capabilities
Parse a capabilities page response (`0x2f` ext `0x02`).
crates/oura-protocol/src/device.rs:89
↓ 1 callers
Function
rdata_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 callers
Function
rdata_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 callers
Function
rdata_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 callers
Function
rdata_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 callers
Method
redecode
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 callers
Function
req_auth_nonce
Request the app-auth nonce (`0x2f` ext `0x2b`).
crates/oura-protocol/src/protocol.rs:100
↓ 1 callers
Function
req_authenticate
Authenticate with the AES-encrypted nonce (`0x2f` ext `0x2d`).
crates/oura-protocol/src/protocol.rs:105
↓ 1 callers
Function
req_battery
Get battery level (`0x0c`).
crates/oura-protocol/src/protocol.rs:95
↓ 1 callers
Function
req_capabilities
Get a capabilities page (`0x2f` ext `0x01`).
crates/oura-protocol/src/protocol.rs:131
↓ 1 callers
Function
req_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 callers
Function
req_feature_latest
Get a feature's latest values (`0x2f` ext `0x24`).
crates/oura-protocol/src/protocol.rs:162
↓ 1 callers
Function
req_feature_status
Get a feature's status (`0x2f` ext `0x20`).
crates/oura-protocol/src/protocol.rs:157
↓ 1 callers
Function
req_firmware
Get firmware / API / bootloader / BT-stack / MAC (`0x08`).
crates/oura-protocol/src/protocol.rs:90
↓ 1 callers
Function
req_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 callers
Function
req_rdata_clear
Clear RData session/data from flash (`030104`).
crates/oura-protocol/src/protocol.rs:280
↓ 1 callers
Function
req_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 callers
Function
req_rdata_get_page
Request an RData page by index (`0303 01 <page u16 LE>`).
crates/oura-protocol/src/protocol.rs:285
↓ 1 callers
Function
req_rdata_state
Query RData collection state (`030105`) — read-only, safe.
crates/oura-protocol/src/protocol.rs:270
↓ 1 callers
Function
req_rdata_stop
Stop an RData collection session (`030103`).
crates/oura-protocol/src/protocol.rs:275
↓ 1 callers
Function
req_set_auth_key
Install a 16-byte auth key on a factory-reset ring (`0x24`).
crates/oura-protocol/src/protocol.rs:113
↓ 1 callers
Function
req_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 callers
Function
req_set_notification
Enable/disable the async notification flags (`0x1c`).
crates/oura-protocol/src/protocol.rs:126
↓ 1 callers
Function
req_sync_time
Set the ring clock to a UTC unix timestamp (`0x12`).
crates/oura-protocol/src/protocol.rs:118
↓ 1 callers
Function
request_nonce
(client: BleakClient, listen_seconds: float, capture: Optional[Path])
tools/oura_protocol.py:610
↓ 1 callers
Function
rmssd
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 callers
Function
save_key
Persist a key as hex with owner-only permissions.
crates/oura-cli/src/main.rs:207
↓ 1 callers
Function
scan
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 callers
Function
set_auth_key
(client: BleakClient, key: bytes, listen_seconds: float, capture: Optional[Path])
tools/oura_protocol.py:620
↓ 1 callers
Method
set_auth_key
Install a new 16-byte auth key. Only valid on a factory-reset ring.
crates/oura-link/src/client.rs:193
↓ 1 callers
Function
sleep_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 callers
Method
stream_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 callers
Method
subscribe
(&self)
crates/oura-link/src/transport.rs:94
↓ 1 callers
Function
summarize
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 callers
Function
sync_time
(ts: Optional[int] = None, timezone_half_hours: int = 0)
tools/oura_protocol.py:164
↓ 1 callers
Function
transact
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 callers
Method
upsert_device
Record/refresh device metadata.
crates/oura-store/src/storage.rs:84
↓ 1 callers
Function
vo2max_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 callers
Method
write
(&self, data: &[u8])
crates/oura-link/src/transport.rs:84
← previous
next →
101–200 of 292, ranked by callers