# move-detect edge daemon environment — copy to /etc/move-detect/edge.env and fill in. # Consumed by edge.config.load_config() and edge.daemon.main(). # Keep this file 0640 root:movedetect — it holds the per-device HMAC secret. # # IMPORTANT: systemd EnvironmentFile= does NOT strip inline comments, so every active # line below is a bare KEY=value. All comments live on their own lines. # --- identity / cloud (required) --- # DEVICE_ID must match the devices.device_id row in the cloud. DEVICE_ID=pi-01 # DEVICE_SECRET: per-device HMAC secret; must match devices.secret. DEVICE_SECRET=CHANGEME # CAFE24_URL: cloud base URL (POST events / poll config / heartbeat). CAFE24_URL=https://cloud.example.com # CAMERA_ID: stamped on events and matched to dashboard zones. CAMERA_ID=cam-01 # --- pose backend / capture --- # POSE_BACKEND: "movenet" (CPU, needs MOVENET_ONNX) or "hailo" (needs HAILO_HEF). POSE_BACKEND=movenet # MOVENET_ONNX: required when POSE_BACKEND=movenet. MOVENET_ONNX=/opt/move-detect/models/movenet_lightning.onnx # HAILO_HEF: required when POSE_BACKEND=hailo (uncomment and set). #HAILO_HEF=/opt/move-detect/models/yolov8s_pose.hef # CAMERA_BACKEND: "uvc" (USB webcam, uses UVC_DEVICE) or "csi" (Pi CSI camera, uses CSI_DEVICE). CAMERA_BACKEND=uvc # UVC_DEVICE: OpenCV VideoCapture index for the USB (UVC) webcam. UVC_DEVICE=0 # CSI_DEVICE: picamera2 camera_num for the CSI camera (used when CAMERA_BACKEND=csi). CSI_DEVICE=0 # TARGET_FPS: frame pacing = 1/TARGET_FPS. TARGET_FPS=12 # --- offline queue (required) --- # QUEUE_DB: sqlite buffer for events while the cloud is unreachable. QUEUE_DB=/var/lib/move-detect/queue.db # --- detector tuning (optional; defaults shown) --- #FALL_PRONE_S=3.0 #FALL_NO_MOTION_S=10.0 #IMMOBILE_S=120.0 #GHOST_REAPPEAR_S=10.0 #ZONE_DEBOUNCE_S=0.75 #COOLDOWN_S=30.0