Skip to content

Commit

Permalink
octoprint: add basic config
Browse files Browse the repository at this point in the history
  * adds config/octoprint.yaml
  * sets the serial device for octoprint
  * sets the stream and snapshot urls for octoprint

resolves #26
  • Loading branch information
mkuf committed Jun 13, 2022
1 parent 09261e6 commit a1a7f84
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/octoprint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
serial:
additionalPorts:
- /opt/run/klipper.tty
autoconnect: true
port: /opt/run/klipper.tty
webcam:
snapshot: http://webcam:8080/snapshot
stream: /webcam/stream
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ services:
- /dev:/dev
- run:/opt/run
- octoprint:/octoprint
- ./config/octoprint.yaml:/octoprint/octoprint/config.yaml
profiles:
- octoprint
labels:
Expand Down

1 comment on commit a1a7f84

@truong0vanchien
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Mkuf, thanks for your effort.
But how can I deal about printer.cfg and klippy.log?
Yesterday, I had to create a printer.cfg in Octoprint at first, then I looked up this file in the docker directory. After locating the root folder, I created a klippy.log in tmp folder.
Is there any ways to work on that?
Thanks in advance.

Please sign in to comment.