chore(octoprint): misc changes

This commit is contained in:
arcnmx 2024-07-17 09:59:46 -07:00
parent 093c4b58df
commit 6b3980c23c
3 changed files with 16 additions and 4 deletions

View file

@ -9,8 +9,8 @@
in {
services.motion.cameras.printercam.settings = mapDefaults {
videodevice = "/dev/printercam";
width = 640;
height = 480;
width = 1280;
height = 720;
framerate = 5;
camera_id = 2;
text_left = "";

View file

@ -1,4 +1,5 @@
{
pkgs,
config,
gensokyo-zone,
lib,
@ -37,4 +38,7 @@ in {
networking.firewall.interfaces.local = mkIf cfg.enable {
allowedTCPPorts = [cfg.settings.stream_port cfg.settings.webcontrol_port];
};
environment.systemPackages = [
pkgs.v4l-utils
];
}

View file

@ -49,6 +49,7 @@ in {
_disabled = [
"softwareupdate"
];
PrintTimeGenius.showStars = false;
};
temperature = {
profiles = [
@ -94,6 +95,9 @@ in {
printing_cancelled = {
message = "Print cancelled after {time_formatted}";
};
printing_done = {
message = "Print complete after {time_formatted}";
};
printing_paused = {
message = "Print paused";
media = media.none;
@ -140,7 +144,7 @@ in {
ffmpegThreads = 2;
timelapse = {
fps = 25;
options.interval = 3;
options.interval = 4;
postRoll = 0;
type = "timed";
};
@ -153,7 +157,7 @@ in {
_config_version = 1;
snapshot = "https://kitchen.local.${domain}/${toString camera_id}/current";
stream = "https://kitchen.local.${domain}/${toString camera_id}/stream";
streamRatio = "4:3";
streamRatio = "16:9";
};
};
})
@ -186,4 +190,8 @@ in {
cfg.port
];
};
systemd.services.octoprint = mkIf cfg.enable {
restartIfChanged = false;
};
}