feat(sakuya): klipper and motion

This commit is contained in:
arcnmx 2024-09-07 14:33:04 -07:00
parent 7e7d6b01f7
commit a02778b413
10 changed files with 214 additions and 127 deletions

View file

@ -3,7 +3,7 @@
lib,
...
}: let
inherit (lib.modules) mkIf mkAfter mkDefault;
inherit (lib.modules) mkIf mkDefault;
inherit (config.services) octoprint;
cfg = config.services.klipper;
in {

View file

@ -26,20 +26,20 @@ in {
port = 7125; # it's the default but i'm specifying it anyway
settings = {
"include secrets.conf" = {};
octoprint_compat = {};
octoprint_compat = {
stream_url = "/webcam/stream";
webcam_enabled = true;
};
history = {};
"webcam printer" = let
inherit (config.services.motion.cameras) printercam;
inherit (printercam.settings) camera_id;
in {
"webcam printer" = {
location = "printer";
enabled = true;
service = "mjpegstreamer";
icon = "mdiPrinter3d";
target_fps = 5;
target_fps_idle = 1;
stream_url = "https://kitchen.local.${domain}/${toString camera_id}/stream";
snapshot_url = "https://kitchen.local.${domain}/${toString camera_id}/current";
stream_url = "/webcam/stream";
snapshot_url = "/webcam/current";
aspect_ratio = "16:9";
};
authorization = {