Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
th33xitus 2022-06-18 00:02:27 +02:00
parent c5c27e05b1
commit bdcce5291a
14 changed files with 16 additions and 7 deletions

View File

@ -61,7 +61,6 @@ RUN git clone --depth 1 https://github.com/jacksonliam/mjpg-streamer \
&& cd .. \ && cd .. \
&& make \ && make \
&& rm -rf _build && rm -rf _build
COPY mjpg_streamer_images ./mjpg-streamer/mjpg-streamer-experimental/images
## --------- This is the runner image ## --------- This is the runner image
@ -114,5 +113,6 @@ COPY --from=builder --chown=printer:printer /build/simulavr.elf ./simulavr.elf
COPY --from=builder --chown=printer:printer /build/mjpg-streamer/mjpg-streamer-experimental ./mjpg-streamer COPY --from=builder --chown=printer:printer /build/mjpg-streamer/mjpg-streamer-experimental ./mjpg-streamer
COPY ./example-configs/ ./example-configs/ COPY ./example-configs/ ./example-configs/
COPY ./mjpg_streamer_images/ ./mjpg_streamer_images/
ENTRYPOINT ["/bin/start"] ENTRYPOINT ["/bin/start"]

View File

@ -14,9 +14,9 @@
--- ---
### Configure a Dummy-Webcam: ### Configure a Dummy-Webcam:
1) To configure a dummy-webcam, use the following URL for the stream: \ To configure a dummy-webcam, use the following URLs: \
`http://localhost:8110/?action=stream` * Stream: `http://localhost:8110/?action=stream`
2) In Mainsail pick either `MJPEG-Streamer` or `UV4L-MJPEG` as service. * Snapshot: `http://localhost:8110/?action=snapshot`
--- ---

View File

@ -10,6 +10,7 @@ services:
- ./printer_storage/gcode_files:/home/printer/gcode_files:delegated - ./printer_storage/gcode_files:/home/printer/gcode_files:delegated
- ./printer_storage/klipper_config:/home/printer/klipper_config:delegated - ./printer_storage/klipper_config:/home/printer/klipper_config:delegated
- ./printer_storage/klipper_logs:/home/printer/klipper_logs:delegated - ./printer_storage/klipper_logs:/home/printer/klipper_logs:delegated
- ./printer_storage/webcam_images:/home/printer/mjpg-streamer/images:delegated
ports: ports:
- "7125:7125" - "7125:7125"
- "8110:8080" - "8110:8080"

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

View File

@ -1,19 +1,27 @@
#!/bin/bash #!/bin/bash
[ ! -e /bin/systemctl ] && sudo -S ln -s /bin/true /bin/systemctl [ ! -e /bin/systemctl ] && sudo -S ln -s /bin/true /bin/systemctl
cd ~ || exit 1 cd ~ || exit
[ ! -d ~/klipper_config ] && mkdir klipper_config
[ ! -d ~/klipper_logs ] && mkdir klipper_logs [ ! -d ~/klipper_logs ] && mkdir klipper_logs
[ ! -d ~/gcode_files ] && mkdir gcode_files [ ! -d ~/gcode_files ] && mkdir gcode_files
[ ! -d ~/webcam_images ] && mkdir webcam_images
[ ! -d ~/.moonraker_database ] && mkdir .moonraker_database [ ! -d ~/.moonraker_database ] && mkdir .moonraker_database
if [ ! -d ~/klipper_config ] || find ~/klipper_config -type d -empty; then if find ~/klipper_config -type d -empty; then
cd ~/example-configs || exit 1 cd ~/example-configs || exit 1
cp -r ./* ~/klipper_config sudo cp -r ./* ~/klipper_config
fi
if find ~/webcam_images -type d -empty; then
cd ~/mjpg_streamer_images || exit 1
sudo cp -r ./* ~/webcam_images
fi fi
sudo chown -R printer:printer ~/klipper_config sudo chown -R printer:printer ~/klipper_config
sudo chown -R printer:printer ~/klipper_logs sudo chown -R printer:printer ~/klipper_logs
sudo chown -R printer:printer ~/gcode_files sudo chown -R printer:printer ~/gcode_files
sudo chown -R printer:printer ~/webcam_images
sudo chown -R printer:printer ~/.moonraker_database sudo chown -R printer:printer ~/.moonraker_database
sudo -S rm /bin/systemctl sudo -S rm /bin/systemctl