diff --git a/csi-legacy.dist b/csi-legacy.dist index e5f0a02..e83605a 100644 --- a/csi-legacy.dist +++ b/csi-legacy.dist @@ -1,4 +1,4 @@ -PRINTER_ADDRESS=127.0.0.1 +PRINTER_ADDRESS= PRUSA_CONNECT_CAMERA_TOKEN=token-change-me PRUSA_CONNECT_CAMERA_FINGERPRINT=fingerprint-change-me CAMERA_DEVICE=/dev/video0 diff --git a/csi.dist b/csi.dist index b0d19f3..5881216 100644 --- a/csi.dist +++ b/csi.dist @@ -1,4 +1,4 @@ -PRINTER_ADDRESS=127.0.0.1 +PRINTER_ADDRESS= PRUSA_CONNECT_CAMERA_TOKEN=token-change-me PRUSA_CONNECT_CAMERA_FINGERPRINT=fingerprint-change-me CAMERA_DEVICE=/dev/video0 diff --git a/docker-compose.yaml b/docker-compose.yaml index c4fc2ae..887a9c1 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -8,7 +8,7 @@ services: read_only: true restart: unless-stopped env_file: - - .docker-csi + - .docker-csi # copy docker-csi.dist as .docker-csi and adjust env vars devices: - /dev:/dev volumes: @@ -25,7 +25,7 @@ services: read_only: true restart: unless-stopped env_file: - - .docker-video0 + - .docker-video0 # copy docker-video0.dist as .docker-video0 and adjust env vars devices: - /dev:/dev volumes: @@ -42,7 +42,7 @@ services: read_only: true restart: unless-stopped env_file: - - .docker-esphome-snapshot + - .docker-esphome-snapshot # copy docker-esphome-snapshot.dist as .docker-esphome-snapshot and adjust env vars volumes: - type: tmpfs target: /dev/shm diff --git a/docker-csi.dist b/docker-csi.dist new file mode 100644 index 0000000..2703a72 --- /dev/null +++ b/docker-csi.dist @@ -0,0 +1,6 @@ +PRINTER_ADDRESS= +PRUSA_CONNECT_CAMERA_TOKEN=token-change-me +PRUSA_CONNECT_CAMERA_FINGERPRINT=fingerprint-change-me +CAMERA_DEVICE=/dev/video0 +CAMERA_COMMAND=rpicam-still +CAMERA_COMMAND_EXTRA_PARAMS=--immediate --nopreview --mode 640:480 --lores-width 0 --lores-height 0 --thumb none -o diff --git a/docker-esphome-snapshot.dist b/docker-esphome-snapshot.dist new file mode 100644 index 0000000..817c8d0 --- /dev/null +++ b/docker-esphome-snapshot.dist @@ -0,0 +1,6 @@ +PRINTER_ADDRESS= +PRUSA_CONNECT_CAMERA_TOKEN=token-change-me +PRUSA_CONNECT_CAMERA_FINGERPRINT=fingerprint-change-me +CAMERA_DEVICE=/dev/null +CAMERA_COMMAND=curl +CAMERA_COMMAND_EXTRA_PARAMS=http://esp32-wrover-0461c8.intra.hlds.pl:8081/ -o diff --git a/docker-video0.dist b/docker-video0.dist new file mode 100644 index 0000000..ad0655d --- /dev/null +++ b/docker-video0.dist @@ -0,0 +1,6 @@ +PRINTER_ADDRESS= +PRUSA_CONNECT_CAMERA_TOKEN=token-change-me +PRUSA_CONNECT_CAMERA_FINGERPRINT=fingerprint-change-me +CAMERA_DEVICE=/dev/video0 +CAMERA_COMMAND=fswebcam +CAMERA_COMMAND_EXTRA_PARAMS=--resolution 640x480 --no-banner diff --git a/esphome-snapshot.dist b/esphome-snapshot.dist index a0bab3f..7039569 100644 --- a/esphome-snapshot.dist +++ b/esphome-snapshot.dist @@ -1,4 +1,4 @@ -PRINTER_ADDRESS=127.0.0.1 +PRINTER_ADDRESS= PRUSA_CONNECT_CAMERA_TOKEN=token-change-me PRUSA_CONNECT_CAMERA_FINGERPRINT=fingerprint-change-me CAMERA_DEVICE=/dev/null diff --git a/esphome-stream.dist b/esphome-stream.dist index 81686c4..c22971b 100644 --- a/esphome-stream.dist +++ b/esphome-stream.dist @@ -1,4 +1,4 @@ -PRINTER_ADDRESS=127.0.0.1 +PRINTER_ADDRESS= PRUSA_CONNECT_CAMERA_TOKEN=token-change-me PRUSA_CONNECT_CAMERA_FINGERPRINT=fingerprint-change-me CAMERA_DEVICE=/dev/null