mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
feat(fluidd): take over print
This commit is contained in:
parent
6c3727a246
commit
1c8a8f7a9e
6 changed files with 82 additions and 21 deletions
|
|
@ -1,4 +1,7 @@
|
|||
_: {
|
||||
{ config, gensokyo-zone, ... }: let
|
||||
inherit (config.services) motion;
|
||||
inherit (gensokyo-zone.lib) domain;
|
||||
in {
|
||||
services = {
|
||||
moonraker = {
|
||||
enable = true;
|
||||
|
|
@ -8,6 +11,23 @@ _: {
|
|||
settings = {
|
||||
octoprint_compat = { };
|
||||
history = { };
|
||||
"webcam printer" = {
|
||||
location = "printer";
|
||||
enabled = true;
|
||||
service = "mjpegstreamer";
|
||||
icon = "mdiPrinter3d";
|
||||
target_fps = 5;
|
||||
target_fps_idle = 1;
|
||||
stream_url = let
|
||||
inherit (motion.cameras) printercam;
|
||||
inherit (printercam.settings) camera_id;
|
||||
in "https://kitchen.local.${domain}/${toString camera_id}/stream";
|
||||
snapshot_url = let
|
||||
inherit (motion.cameras) printercam;
|
||||
inherit (printercam.settings) camera_id;
|
||||
in "https://kitchen.local.${domain}/${toString camera_id}/current";
|
||||
aspect_ratio = "16:9";
|
||||
};
|
||||
authorization = {
|
||||
force_logins = true;
|
||||
cors_domains = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue