bi_get_reg
Retrieve Blue Iris camera registry data that the JSON API misses: trigger zones, AI thresholds, preset alerts, ONVIF handlers, alert actions. Limit to a subtree via key_path, with staleness warning.
Instructions
Parse a camera's .reg export and return the requested key subtree. Use this for what the BI JSON API does NOT expose: trigger zone polygons (Motion<profile>\maskbits_*), per-class AI confidence thresholds (AI<profile>\smartconf), per-preset alert-skip flags (PTZ\Presets<n>\noalerts), ONVIF event handlers (camevents<n>), and alert action definitions (Alerts\OnTrigger). Optional 'key_path' limits the response to that subtree (e.g. 'AI\3' for profile 3 AI config). Returns staleness warning if the .reg file is >7 days old.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | If true, return the raw Blue Iris JSON instead of the shaped view. | |
| camera | Yes | Camera short name (e.g. 'SecCam_3'). Required. | |
| key_path | No | Optional registry subkey path relative to the hive root, e.g. 'AI\\3', 'Motion\\1', 'PTZ\\Presets', 'camevents'. Omit to return the full hive. Motion off-by-one quirk (per jaydeel on ipcamtalk, 'legacy reasons'): 'Motion' (no number) = profile 1; 'Motion\\1' = profile 2; 'Motion\\2' = profile 3; etc. AI\\<N> and PTZ\\Presets\\<N> use straight 1:1 indexing, NOT this offset. | |
| include_masks | No | Include `maskbits_*` hex blobs in the response. Default false — each blob is ~9KB and a full `PTZ\\Presets` read can exceed 250KB. Set true when you specifically need the polygon bytes. |