move_detect/deploy/systemd/move-detect-edge.env.example
유창욱 2ffa74b639 feat(deploy): air-gapped offline bundle + systemd unit for edge daemon
Offline-installable bundle (wheelhouse + model + source) built on a machine with
internet and installed on the air-gapped Pi with --no-index (zero fetches), plus a
systemd unit (auto-restart, device access, hardening) and env template. Runs the
package from source via python -m edge (no offline build backend). Drift-guard test
keeps the env template in sync with what the daemon reads and rejects inline comments
that systemd EnvironmentFile= would fold into values.
2026-07-12 17:51:45 +09:00

40 lines
1.6 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
# UVC_DEVICE: OpenCV VideoCapture index for the USB (UVC) webcam.
UVC_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