bin/electric_eye in electric_eye-0.0.5 vs bin/electric_eye in electric_eye-0.1.0
- old
+ new
@@ -20,16 +20,22 @@
@configEye.remove_camera(camera)
elsif options[:l] # List cameras
@configEye.list_cameras
elsif options[:d] # Set duration
@configEye.set_duration(options[:duration])
+ elsif options[:w] # Set wrap
+ @configEye.set_wrap(options[:wrap])
elsif options[:p] # Set path
@configEye.set_path(options[:path])
elsif options[:s] # Start recording
@record.start
elsif options[:k] # Stop recordings
@record.stop
+ # elsif options[:m] # Perform post motion detection
+ # # NOTE: This happens automatically during recording so this option is only here for admins
+ # # to perform the operation manually.
+ # @record.start_motion_detection(options[:listfile])
elsif options[:t]
@configEye.set_threshold(options[:threshold])
else
puts opts.help
end
@@ -44,12 +50,14 @@
# Accept flags via:
on("-a", "--add", "Add a camera")
on("-r", "--remove", "Remove a camera")
on("-l", "--list", "List cameras")
on("-d", "--duration SECONDS", "Set recording duration in seconds (default: 600)")
+ on("-w", "--wrap FILES", "Set how many files to keep before wrapping (default: 168 at 1hr = 1week)")
on("-p", "--path DIR", "Set recordings path")
on("-s", "--start", "Start recordings")
on("-k", "--stop", "Stop recordings")
+ # on("-m", "--motion LISTFILE", "Post motion detection, pass in a list of video and it will process")
on("-t", "--threshold LEVEL", "Set threshold for motion detection (default: 2)")
# Arguments
arg :camera, :optional
arg :url, :optional