@@ -27,7 +27,7 @@ launch of OctoPrint using docker.
27
27
Use the following values in the webcam & timelapse settings screen of the initial setup:
28
28
29
29
| Setting | Value |
30
- | ========= | ======= |
30
+ | ------- | ----- |
31
31
| Stream URL | ` /webcam/?action=stream ` |
32
32
| Snapshot URL | ` http://localhost:8080/?action=snapshot ` |
33
33
| Path to FFMPEG | ` /usr/bin/ffmpeg ` |
@@ -39,7 +39,7 @@ Listed below are the options and their defaults. These are implicit in example [
39
39
and if you wish to change them, refer to the docker-compose docs on setting environment variables.
40
40
41
41
| variable | default |
42
- | ========== | ========= |
42
+ | -------- | ------- |
43
43
| ` CAMERA_DEV ` | ` /dev/video0 ` (see [ note] ( #devices_note ) ) |
44
44
| ` CAMERA_DEV ` | ` MJPEG_STREAMER_INPUT -y -n -r 640x48 ` |
45
45
@@ -52,27 +52,30 @@ in your container.
52
52
53
53
#### Editing Config files manually
54
54
55
- This docker-compose file also contains a container based instance of vscode, accessible
55
+ This docker-compose file also contains a container based instance of [ vscode] [ ] , accessible
56
56
via your browser at the same url as your octoprint instance, allowing you to edit configuration
57
57
files without needing to login to your octoprint host.
58
58
59
- To make use of this editor, just uncomment the indicated lines in your [ docker-compose.yml] ( docker-compose.yml#20-32 )
59
+ To make use of this editor, just uncomment the indicated lines in your [ docker-compose.yml] ( docker-compose.yml#L20-L32 )
60
60
then run the following commands:
61
61
62
62
```
63
63
docker-compose up -d config-editor
64
64
```
65
65
66
- Now go to ` http://<octoprint_ip_or_url>:8443 ` in your browser to edit your octoprint files!
66
+ Now go to ` http://<octoprint_ip_or_url>:8443/?folder=/config ` in your browser to edit your octoprint files!
67
67
Use the 'explorer' (accessible by clicking the hamburger menu icon) to explore folder and files to load
68
68
into the editor workspace.
69
69
70
+ The active configuration will be accessible at ` /config/config.yaml `
71
+
70
72
When you're done, we recommend you stop and rm this service/container:
71
73
72
74
```
73
75
docker-compose stop config-editor && docker-compose rm config-editor
74
76
```
75
77
78
+ For full documenation about the config editor, see the docs for the product at [ github.com/cdr/code-server] [ code-server ] .
76
79
77
80
## Without docker-compose
78
81
@@ -84,3 +87,6 @@ docker volume create octoprint
84
87
docker run -d -v octoprint:/octoprint --device /dev/ttyACM0:/dev/ttyACM0 --device /dev/video0:/dev/video0 -p 80:80 --name octoprint octoprint/octoprint
85
88
86
89
```
90
+
91
+ [ code-server ] : https://github.com/cdr/code-server
92
+ [ vscode ] : https://code.visualstudio.com
0 commit comments