Use the Clawd Sentinel pattern to turn any old Android smartphone into a sovereign, frugal, and intelligent motion detection system.
192.168.1.100:8080).bin/sentinel_ultra_frugal.sh: The core logic for pixel comparison.bin/sentinel_runner.sh: The background loop runner.The IP Webcam server provides a REST-like API for full remote control. Base URL: http://
/shot.jpg (Fastest, current frame)/photoaf.jpg (Triggers autofocus before capture, highest quality)/startvideo?name=alert_123/stopvideo/list_videos (returns JSON/HTML)/v/.mp4 /settings/focus_distance?set=<0.0-10.0> (0.0 is often Infinity)/enabletorch | /disabletorch/settings/focusmode?set=/settings/scenemode?set=/settings/whitebalance?set=/sensors.json (Battery, light level, proximity, accelerometer)/status.json (Camera state, recording status, uptime)/audio.wav or /audio.opus (Live audio stream)# Get battery level via jq
curl -s http://<IP>:8080/sensors.json | jq '.battery_level[0][1][0]'
# Toggle flash remotely
curl http://<IP>:8080/enabletorch
共 1 个版本