mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore(octoprint): misc changes
This commit is contained in:
parent
093c4b58df
commit
6b3980c23c
3 changed files with 16 additions and 4 deletions
|
|
@ -9,8 +9,8 @@
|
||||||
in {
|
in {
|
||||||
services.motion.cameras.printercam.settings = mapDefaults {
|
services.motion.cameras.printercam.settings = mapDefaults {
|
||||||
videodevice = "/dev/printercam";
|
videodevice = "/dev/printercam";
|
||||||
width = 640;
|
width = 1280;
|
||||||
height = 480;
|
height = 720;
|
||||||
framerate = 5;
|
framerate = 5;
|
||||||
camera_id = 2;
|
camera_id = 2;
|
||||||
text_left = "";
|
text_left = "";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
pkgs,
|
||||||
config,
|
config,
|
||||||
gensokyo-zone,
|
gensokyo-zone,
|
||||||
lib,
|
lib,
|
||||||
|
|
@ -37,4 +38,7 @@ in {
|
||||||
networking.firewall.interfaces.local = mkIf cfg.enable {
|
networking.firewall.interfaces.local = mkIf cfg.enable {
|
||||||
allowedTCPPorts = [cfg.settings.stream_port cfg.settings.webcontrol_port];
|
allowedTCPPorts = [cfg.settings.stream_port cfg.settings.webcontrol_port];
|
||||||
};
|
};
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.v4l-utils
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@ in {
|
||||||
_disabled = [
|
_disabled = [
|
||||||
"softwareupdate"
|
"softwareupdate"
|
||||||
];
|
];
|
||||||
|
PrintTimeGenius.showStars = false;
|
||||||
};
|
};
|
||||||
temperature = {
|
temperature = {
|
||||||
profiles = [
|
profiles = [
|
||||||
|
|
@ -94,6 +95,9 @@ in {
|
||||||
printing_cancelled = {
|
printing_cancelled = {
|
||||||
message = "Print cancelled after {time_formatted}";
|
message = "Print cancelled after {time_formatted}";
|
||||||
};
|
};
|
||||||
|
printing_done = {
|
||||||
|
message = "Print complete after {time_formatted}";
|
||||||
|
};
|
||||||
printing_paused = {
|
printing_paused = {
|
||||||
message = "Print paused";
|
message = "Print paused";
|
||||||
media = media.none;
|
media = media.none;
|
||||||
|
|
@ -140,7 +144,7 @@ in {
|
||||||
ffmpegThreads = 2;
|
ffmpegThreads = 2;
|
||||||
timelapse = {
|
timelapse = {
|
||||||
fps = 25;
|
fps = 25;
|
||||||
options.interval = 3;
|
options.interval = 4;
|
||||||
postRoll = 0;
|
postRoll = 0;
|
||||||
type = "timed";
|
type = "timed";
|
||||||
};
|
};
|
||||||
|
|
@ -153,7 +157,7 @@ in {
|
||||||
_config_version = 1;
|
_config_version = 1;
|
||||||
snapshot = "https://kitchen.local.${domain}/${toString camera_id}/current";
|
snapshot = "https://kitchen.local.${domain}/${toString camera_id}/current";
|
||||||
stream = "https://kitchen.local.${domain}/${toString camera_id}/stream";
|
stream = "https://kitchen.local.${domain}/${toString camera_id}/stream";
|
||||||
streamRatio = "4:3";
|
streamRatio = "16:9";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
@ -186,4 +190,8 @@ in {
|
||||||
cfg.port
|
cfg.port
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.octoprint = mkIf cfg.enable {
|
||||||
|
restartIfChanged = false;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue