Jerry Zhang
Created October 29, 2018

Autonomous Security System

An indoor path-following security robot that meets your home security needs.

71
Autonomous Security System

Things used in this project

Hardware components

Donkeycar Kit
×1

Story

Read more

Code

Recording Code

SH
Put this code into a "record.sh" file and run it. This saves hour-long videos every hour and deletes videos older than 5 days.
#!/bin/bash

now=`date '+%Y-%m-%d:%H:%M:%S'`
avconv -f mjpeg -nostats -loglevel 0 -re -t 3600 -i http://USERNAME:PASSWORD@IP:PORT/video.cgi -an -r 10 -vcodec mpeg4 /home/nraboy/dlink_$now.mp4
crontab -e
0 * * * * /path/to/record.sh
find /home/nraboy -type f -mtime +5 -exec rm {} \;

Credits

Jerry Zhang

Jerry Zhang

11 projects • 15 followers

Comments