[Unit] Description=Bulletproof interval camera capture (the experiment's data floor) Documentation=file:///home/arduino/git/uno-q-setup/SYSTEM-STATE.md # Deliberately does NOT depend on the network or the dashboard — capture must run # fully offline. It is the highest-priority workload while the board is in # "capture" mode. Enabled/started via `modectl capture`, NOT auto-enabled by # setup.sh (a fresh board shouldn't grab the camera until you choose capture mode). After=local-fs.target [Service] Type=simple User=arduino Environment=HOME=/home/arduino Environment=CAP_INTERVAL=600 # Optional per-board overrides (CAP_INTERVAL, CAP_RES, CAP_DEV) can live here: EnvironmentFile=-/etc/default/cam-capture ExecStart=/home/arduino/bin/cam-capture.sh Restart=always RestartSec=5 [Install] WantedBy=multi-user.target