mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore(motion): update settings
This commit is contained in:
parent
aa6f6587a6
commit
64d302abec
6 changed files with 48 additions and 14 deletions
|
|
@ -18,9 +18,10 @@ in {
|
|||
movie_output = false;
|
||||
picture_filename = "%Y%m%d%H%M%S-%q";
|
||||
movie_filename = "%t-%v-%Y%m%d%H%M%S";
|
||||
movie_passthrough = true;
|
||||
pause = true;
|
||||
|
||||
text_right = "%Y-%m-%d\\n%T-%q";
|
||||
emulate_motion = false;
|
||||
threshold = 1500;
|
||||
despeckle_filter = "EedDl";
|
||||
minimum_motion_frames = 1;
|
||||
|
|
@ -33,8 +34,17 @@ in {
|
|||
webcontrol_parms = 0;
|
||||
webcontrol_port = webPort;
|
||||
stream_port = streamPort;
|
||||
|
||||
stream_maxrate = 30;
|
||||
stream_quality = 75;
|
||||
};
|
||||
};
|
||||
systemd.services.motion = mkIf cfg.enable {
|
||||
serviceConfig.LogFilterPatterns = [
|
||||
''~Corrupt image \.\.\. continue''
|
||||
''~Invalid JPEG file structure: missing SOS marker''
|
||||
];
|
||||
};
|
||||
networking.firewall.interfaces.local = mkIf cfg.enable {
|
||||
allowedTCPPorts = [cfg.settings.stream_port cfg.settings.webcontrol_port];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue