Refactor motion config

This commit is contained in:
dwrz
2023-02-01 19:51:18 +00:00
parent bbbe6b9ecf
commit b895528fba
+9 -9
View File
@@ -1,7 +1,7 @@
# GENERAL # GENERAL
daemon off daemon off
target_dir /var/lib/motion target_dir ${MOTION_DIR}
log_file /var/log/motion/motion.log log_file ${MOTION_LOG_FILE}
# IMAGE PROCESSING # IMAGE PROCESSING
despeckle_filter EedDl despeckle_filter EedDl
@@ -33,15 +33,15 @@ timelapse_filename /timelapse/%Y-%m-%d-%H-%M-%S
# WEBCONTROL # WEBCONTROL
webcontrol_auth_method 2 webcontrol_auth_method 2
webcontrol_authentication ${MOTION_USER}:${MOTION_PASSWORD} webcontrol_authentication ${MOTION_USER}:${MOTION_PASSWORD}
webcontrol_port 8080 webcontrol_port ${WEBCONTROL_PORT}
webcontrol_localhost off webcontrol_localhost off
webcontrol_cert /etc/letsencrypt/live/${DOMAIN}/fullchain.pem webcontrol_cert ${TLS_CERT}
webcontrol_key /etc/letsencrypt/live/${DOMAIN}/privkey.pem webcontrol_key ${TLS_KEY}
webcontrol_parms 0 webcontrol_parms 0
webcontrol_tls on webcontrol_tls on
# LIVE STREAM # LIVE STREAM
stream_port 3000 stream_port ${STREAM_PORT}
stream_localhost off stream_localhost off
stream_quality 25 stream_quality 25
stream_motion on stream_motion on
@@ -52,9 +52,9 @@ stream_preview_method 0
stream_tls on stream_tls on
# SCRIPTS # SCRIPTS
on_motion_detected /var/lib/motion/alert on_motion_detected ${MOTION_DIR}/alert
on_movie_end /var/lib/motion/sync %f on_movie_end ${MOTION_DIR}/sync %f
on_picture_save /var/lib/motion/notify %f on_picture_save ${MOTION_DIR}/notify %f
# CAMERA # CAMERA
camera_name ${CAMERA_NAME} camera_name ${CAMERA_NAME}