From 0e538a2b9fb57651f87e35a9a4715d61c4499a42 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 15 Jan 2024 22:37:31 +0100 Subject: [PATCH] bam/cam: update autosymlink to camera --- 2configs/bam/cam.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2configs/bam/cam.nix b/2configs/bam/cam.nix index 6ab376e..0773ee4 100644 --- a/2configs/bam/cam.nix +++ b/2configs/bam/cam.nix @@ -1,11 +1,11 @@ { # the pseyecam in the diorama services.udev.extraRules = '' - KERNEL=="video*",ATTRS{vendor}=="0x1415", ATTRS{device}=="0x2000", GROUP="video", SYMLINK+="diorama_cam" + SUBSYSTEM=="video4linux", ATTRS{idVendor}=="1415", ATTRS{idProduct}=="2000", SYMLINK+="diorama_cam" ''; services.mjpg-streamer = { enable = true; inputPlugin = "input_uvc.so -d /dev/diorama_cam -r 640x480 -y -f 30 -q 50 -n"; outputPlugin = "output_http.so -w @www@ -n -p 18088"; }; -} \ No newline at end of file +}