48 lines
2 KiB
Text
48 lines
2 KiB
Text
# 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
|
|
# CAMERAS (optional): run several cameras at once; overrides CAMERA_BACKEND/*_DEVICE.
|
|
# Format backend:device:camera_id, comma-separated. Each camera_id must match its
|
|
# cloud zones. Example — CSI + USB together on a Hailo Pi:
|
|
#CAMERAS=csi:0:cam-01,uvc:0:cam-02
|
|
# 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
|