2022-10-27 20:02:00 +00:00
|
|
|
# GENERAL
|
|
|
|
|
daemon off
|
2023-02-01 19:51:18 +00:00
|
|
|
target_dir ${MOTION_DIR}
|
|
|
|
|
log_file ${MOTION_LOG_FILE}
|
2022-10-27 20:02:00 +00:00
|
|
|
|
|
|
|
|
# IMAGE PROCESSING
|
|
|
|
|
despeckle_filter EedDl
|
|
|
|
|
framerate 24
|
|
|
|
|
text_scale 2
|
|
|
|
|
text_changes on
|
|
|
|
|
text_left %$
|
|
|
|
|
text_right %Y-%m-%d-T%H:%M:%S %q
|
|
|
|
|
|
|
|
|
|
# MOTION DETECTION
|
|
|
|
|
event_gap 1
|
|
|
|
|
threshold 2000
|
|
|
|
|
|
|
|
|
|
# MOVIES
|
|
|
|
|
movie_output off
|
|
|
|
|
movie_filename /video/%Y-%m-%dT%H:%M:%S-%v
|
|
|
|
|
|
|
|
|
|
# PICTURES
|
|
|
|
|
picture_output first
|
|
|
|
|
picture_filename /photo/%Y-%m-%dT%H-%M-%S_%q
|
|
|
|
|
|
|
|
|
|
# TIMELAPSE
|
|
|
|
|
timelapse_interval 1
|
|
|
|
|
timelapse_mode hourly
|
|
|
|
|
timelapse_fps 60
|
|
|
|
|
timelapse_codec mpg
|
|
|
|
|
timelapse_filename /timelapse/%Y-%m-%d-%H-%M-%S
|
|
|
|
|
|
|
|
|
|
# WEBCONTROL
|
|
|
|
|
webcontrol_auth_method 2
|
2022-10-28 17:17:00 +00:00
|
|
|
webcontrol_authentication ${MOTION_USER}:${MOTION_PASSWORD}
|
2023-02-01 19:51:18 +00:00
|
|
|
webcontrol_port ${WEBCONTROL_PORT}
|
2022-10-27 20:02:00 +00:00
|
|
|
webcontrol_localhost off
|
2023-02-01 19:51:18 +00:00
|
|
|
webcontrol_cert ${TLS_CERT}
|
|
|
|
|
webcontrol_key ${TLS_KEY}
|
2022-10-27 20:02:00 +00:00
|
|
|
webcontrol_parms 0
|
|
|
|
|
webcontrol_tls on
|
|
|
|
|
|
|
|
|
|
# LIVE STREAM
|
2023-02-01 19:51:18 +00:00
|
|
|
stream_port ${STREAM_PORT}
|
2022-10-27 20:02:00 +00:00
|
|
|
stream_localhost off
|
|
|
|
|
stream_quality 25
|
|
|
|
|
stream_motion on
|
|
|
|
|
stream_maxrate 24
|
|
|
|
|
stream_auth_method 2
|
2022-10-28 17:17:00 +00:00
|
|
|
stream_authentication ${MOTION_USER}:${MOTION_PASSWORD}
|
2022-10-27 20:02:00 +00:00
|
|
|
stream_preview_method 0
|
|
|
|
|
stream_tls on
|
|
|
|
|
|
|
|
|
|
# SCRIPTS
|
2023-02-01 19:51:18 +00:00
|
|
|
on_motion_detected ${MOTION_DIR}/alert
|
|
|
|
|
on_movie_end ${MOTION_DIR}/sync %f
|
|
|
|
|
on_picture_save ${MOTION_DIR}/notify %f
|
2022-10-27 20:02:00 +00:00
|
|
|
|
|
|
|
|
# CAMERA
|
|
|
|
|
camera_name ${CAMERA_NAME}
|
|
|
|
|
videodevice /dev/video0
|
|
|
|
|
height 1080
|
|
|
|
|
width 1920
|