executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
camera-watchYOLOv8-based camera surveillance with object detection. Works with any IP camera supporting RTSP streams or HTTP snapshots (Hikvision, Dahua, Reolink, Amcrest, Unifi, and more). Detects 80+ object types (person, car, dog, etc.) and sends notifications with snapshots. Use for motion detection, night watch routines, or security monitoring.
Independent GitHub snapshot · Automated classification · Original documentation governs
Real-time object detection on IP cameras using YOLOv8. Works with any camera supporting RTSP or HTTP snapshots. Detects people, vehicles, animals, and 80+ object types. Sends notifications with snapshots when objects are detected.
mkdir -p ~/camera-watch && cd ~/camera-watch
python -m venv venv
source venv/bin/activate
pip install opencv-python ultralytics pyyaml requests
Copy scripts/camera_watch.py to your project directory.
notifications:
enabled: true
whatsapp: "+1234567890" # Your phone number
cooldown_seconds: 60
recordings:
snapshots_dir: "./snapshots"
keep_days: 7
logging:
file: "./logs/detections.log"
level: "INFO"
cameras:
front-door:
name: "Front Door"
ip: "192.168.1.100" # Your camera IP
channel: 1 # Hikvision channel number
user: "admin" # Camera username
password: "yourpassword" # Camera password
poll_interval: 2
enabled: true
track:
- person
- car
confidence: 0.5
model:
name: "yolov8s" # Options: yolov8n (fast), yolov8s (balanced), yolov8m (accurate)
device: "cpu" # Use "mps" for Apple Silicon, "cuda" for NVIDIA
# Test cameras
python camera_watch.py --test
# Run in foreground
python camera_watch.py
# Run in background
nohup python camera_watch.py > /tmp/camera-watch.log 2>&1 &
People & Animals: person, bird, cat, dog, horse, sheep, cow, elephant, bear, zebra, giraffe
Vehicles: bicycle, car, motorcycle, airplane, bus, train, truck, boat
Common objects: backpack, umbrella, handbag, suitcase, bottle, cup, chair, couch, bed, laptop, cell phone, tv
Full list: 80 classes including sports equipment, food items, furniture, and more.
For automated night routines, create a separate script that:
Example cron integration:
# Start at midnight
0 0 * * * cd ~/camera-watch && source venv/bin/activate && nohup python camera_watch.py > /tmp/camera-watch.log 2>&1 &
# Stop at 7am and send report
0 7 * * * pkill -f camera_watch.py
The script sends notifications via Clawdbot gateway API. Ensure Clawdbot is running and configure the gateway URL in the script if needed.
Camera not connecting:
False positives:
High CPU usage: