pulsebert: replace espCam with usb cam
This commit is contained in:
parent
0098f6a58b
commit
b9a64af1b6
|
@ -6,7 +6,6 @@
|
|||
|
||||
let
|
||||
octoprintPort = 8080;
|
||||
espCam = "http://172.20.78.164:81";
|
||||
in {
|
||||
imports = [ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
|
@ -198,7 +197,13 @@ in {
|
|||
Restart = "always";
|
||||
RestartSec = 60;
|
||||
};
|
||||
script = "exec ${mjpeg-proxy}/bin/rust-mjpeg-proxy ${espCam}/stream";
|
||||
script = "exec ${mjpeg-proxy}/bin/rust-mjpeg-proxy http://localhost:3020/?action=stream";
|
||||
};
|
||||
|
||||
services.mjpg-streamer = {
|
||||
enable = true;
|
||||
inputPlugin = "input_uvc.so -d /dev/v4l/by-id/usb-046d_0817_4B7115A0-video-index0 -r 640x480 -f 30 -pl 50hz -ex auto";
|
||||
outputPlugin = "output_http.so -p 3020";
|
||||
};
|
||||
|
||||
# Allow gpio group to access GPIO devices
|
||||
|
@ -216,4 +221,3 @@ in {
|
|||
system.stateVersion = "20.09"; # Did you read the comment?
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue