# Start in daemon (background) mode and release terminal (default: off) daemon off # Level of log messages [1..9] (EMR, ALR, CRT, ERR, WRN, NTC, INF, DBG, ALL). (default: 6 / NTC) log_level 6 # Filter to log messages by type (COR, STR, ENC, NET, DBL, EVT, TRK, VID, ALL). (default: ALL) log_type all # Videodevice to be used for capturing (default /dev/video0) videodevice /dev/video0 # Image width (pixels). Valid range: Camera dependent, default: 352 width 320 # Image height (pixels). Valid range: Camera dependent, default: 288 height 240 # Maximum number of frames to be captured per second. # Valid range: 2-100. Default: 100 (almost no limit). framerate 2 # Event Gap is the seconds of no motion detection that triggers the end of an event. # An event is defined as a series of motion images taken within a short timeframe. # Recommended value is 60 seconds (Default). The value -1 is allowed and disables # events causing all Motion to be written to one single movie file and no pre_capture. # If set to 0, motion is running in gapless mode. Movies don't have gaps anymore. An # event ends right after no more motion is detected and post_capture is over. ; event_gap 60 event_gap 0 # Output 'normal' pictures when motion is detected (default: on) # Valid values: on, off, first, best, center output_pictures off # Use ffmpeg to encode movies in realtime (default: off) ffmpeg_output_movies off # The mini-http server listens to this port for requests (default: 0 = disabled) ; stream_port 8081 stream_port 0 # TCP/IP port for the http server to listen on (default: 0 = disabled) ; webcontrol_port 8082 webcontrol_port 0 # Command to be executed when an event starts. (default: none) # An event starts at first motion detected after a period of no motion defined by event_gap ; on_event_start value on_event_start echo '{"motion":"start"}' | json2cbor.rb > ./generic-sender.pipe # Command to be executed when an event ends after a period of no motion # (default: none). The period of no motion is defined by option event_gap. ; on_event_end value on_event_end echo '{"motion":"end"}' | json2cbor.rb > ./generic-sender.pipe # Command to be executed when a motion frame is detected (default: none) ; on_motion_detected value on_motion_detected echo '{"motion":"detected"}' | json2cbor.rb > ./generic-sender.pipe