Add random phrases when an optional pi camera detects motion.
Fix LED paths for more recent pi-image operating systems. FossilOrigin-Name: 95bda0bf25a4c8760c07217545106e4a5116a2a6e01463d5189551eb83bfa0f7
This commit is contained in:
parent
65ac4ce493
commit
74bfdfac57
9 changed files with 135 additions and 19 deletions
50
motion/motion.conf
Normal file
50
motion/motion.conf
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
daemon off
|
||||
setup_mode off
|
||||
log_level 6
|
||||
log_file /dev/null
|
||||
|
||||
stream_localhost off
|
||||
stream_port 8080
|
||||
stream_motion on
|
||||
stream_preview_method 4
|
||||
|
||||
videodevice /dev/video0
|
||||
camera_name MaudeCam
|
||||
camera_id 1
|
||||
width 1024
|
||||
height 768
|
||||
|
||||
locate_motion_mode on
|
||||
framerate 5
|
||||
text_left MAUDECAM!!
|
||||
text_changes on
|
||||
text_scale 3
|
||||
text_right %Y-%m-%d\n%T-%q
|
||||
emulate_motion off
|
||||
threshold 2500 # Threshold for number of changed pixels that triggers motion.
|
||||
threshold_maximum 2050000
|
||||
lightswitch_percent 40
|
||||
lightswitch_frames 15
|
||||
; noise_level 32 # Noise threshold for the motion detection.
|
||||
despeckle_filter EedDl
|
||||
minimum_motion_frames 3 # Number of images that must contain motion to trigger an event.
|
||||
event_gap 30 # Gap in seconds of no motion detected that triggers the end of an event.
|
||||
pre_capture 2 # The number of pre-captured (buffered) pictures from before motion.
|
||||
post_capture 0 # Number of frames to capture after motion is no longer detected.
|
||||
|
||||
on_event_start echo 1 | nc localhost 62877
|
||||
on_event_end find /service/motion/capture -type f -mtime +12 -depth 1 -delete
|
||||
|
||||
picture_output first
|
||||
picture_filename capture/%Y%m%d%H%M%S-%q
|
||||
|
||||
#timelapse_mode weekly
|
||||
#timelapse_interval 1800
|
||||
#timelapse_filename timelapse/%Y%m%d
|
||||
|
||||
movie_output off
|
||||
#movie_max_time 60 # Maximum length of movie in seconds.
|
||||
#movie_quality 0 # The encoding quality of the movie. (0=use bitrate. 1=worst quality, 100=best)
|
||||
#movie_codec mkv
|
||||
#movie_filename motion/%t-%v-%Y%m%d%H%M%S
|
||||
|
||||
5
motion/run
Executable file
5
motion/run
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec 2>&1
|
||||
exec /usr/bin/motion -c /service/motion/motion.conf
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue