Skip to content

Commit

Permalink
Add better comments in docker-compose.yaml and add example dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
nvtkaszpir committed Jul 13, 2024
1 parent c694f4a commit a73f9b5
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 7 deletions.
2 changes: 1 addition & 1 deletion csi-legacy.dist
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion csi.dist
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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
Expand Down
6 changes: 6 additions & 0 deletions docker-csi.dist
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions docker-esphome-snapshot.dist
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions docker-video0.dist
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion esphome-snapshot.dist
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion esphome-stream.dist
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a73f9b5

Please sign in to comment.