|
1 | | -# Nest Recorder service environment |
2 | | -# Copy to .env to configure timezone and other settings |
3 | | - |
4 | | -# Timezone used by recorder container |
5 | 1 | # Nest Recorder Service Environment (.env.example) |
6 | 2 | # Copy to .env and set real values. Do NOT commit .env. |
7 | 3 |
|
|
10 | 6 | TZ=America/New_York |
11 | 7 |
|
12 | 8 | # --- Google SDM / OAuth --- |
13 | | -# Project context (used by scripts when building resource paths) |
14 | | -SDM_PROJECT_ID=projects/your-google-project-id |
15 | | - |
16 | | -# OAuth client credentials (prefer secrets files, see secrets/README.md) |
| 9 | +# OAuth client credentials (prefer secrets files — see secrets/README.md) |
| 10 | +# If set here, these override the secrets/*.txt files. |
17 | 11 | SDM_CLIENT_ID= |
18 | 12 | SDM_CLIENT_SECRET= |
19 | | - |
20 | | -# Refresh token: set here OR provide a file at services/nest_recorder/secrets/refresh_token.txt |
21 | | -# If both exist, the scripts prefer a rotated token cached under /recordings/secrets |
22 | 13 | SDM_REFRESH_TOKEN= |
23 | 14 |
|
24 | | -# --- Camera/Device assignment --- |
25 | | -# Map recording devices to camera IDs (up to 6 supported by scripts) |
26 | | -# DEVICE_* can be human-readable names; CAM_ID_* are SDM resource identifiers |
27 | | -DEVICE_1=mat-a |
28 | | -CAM_ID_1=enter-camera-id-1 |
29 | | -DEVICE_2=mat-b |
30 | | -CAM_ID_2=enter-camera-id-2 |
31 | | -DEVICE_3= |
32 | | -CAM_ID_3= |
33 | | -DEVICE_4= |
34 | | -CAM_ID_4= |
35 | | -DEVICE_5= |
36 | | -CAM_ID_5= |
37 | | -DEVICE_6= |
38 | | -CAM_ID_6= |
| 15 | +# --- Camera discovery --- |
| 16 | +# Cameras are auto-discovered from the SDM API on each recording run. |
| 17 | +# cam_id = last 6 chars of the SDM device path (e.g. "J_EDEw"). |
| 18 | +# No manual DEVICE_* / CAM_ID_* configuration is needed. |
| 19 | +# Discovery requires a valid access token (from secrets/ or env vars above). |
| 20 | + |
| 21 | +# --- Supabase connection (for camera auto-registration) --- |
| 22 | +# register_cameras.sh upserts discovered cameras into the cameras table. |
| 23 | +# Get these values from: cd backend/supabase/supabase && npx supabase status |
| 24 | +GYM_ID=00000000-0000-0000-0000-000000000000 |
| 25 | +SUPABASE_URL=http://192.168.0.66:54321 |
| 26 | +SUPABASE_SERVICE_KEY=your-service-role-key-here |
39 | 27 |
|
40 | 28 | # --- Recording window & segmentation --- |
41 | 29 | # WINDOW_MINUTES: total window to capture per invocation |
42 | 30 | # PRE_ROLL_SECONDS: lead-in seconds before window start |
43 | 31 | # SEG_SECONDS: segment length for rolling file outputs |
44 | | -# EXTEND_SLEEP: additional idle time between iterations (dev workflows) |
45 | 32 | WINDOW_MINUTES=30 |
46 | 33 | PRE_ROLL_SECONDS=10 |
47 | 34 | SEG_SECONDS=300 |
48 | | -EXTEND_SLEEP=0 |
49 | 35 |
|
50 | | -# --- Optional cache directory (defaults to /recordings/secrets) --- |
51 | | -# SDM_CACHE_DIR=/recordings/secrets |
52 | | - |
53 | | -# SDM secrets are mounted at /secrets; path is fixed inside container |
| 36 | +# --- Optional overrides --- |
54 | 37 | # SDM_SECRETS_DIR=/secrets |
| 38 | +# SDM_CACHE_DIR=/recordings/secrets |
0 commit comments