mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat(sakuya): klipper and motion
This commit is contained in:
parent
7e7d6b01f7
commit
a02778b413
10 changed files with 214 additions and 127 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue