You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -170,14 +170,6 @@ To activate a Raspberry Pi camera attached via ribbon cable:
170
170
171
171
* The device path on the right hand side of the `CAMERA_DEV` environment variable corresponds with the right hand side (ie *after* the colon) of the device mapping. There should be no reason to change either.
172
172
173
-
Use the following values to configure the camera in the OctoPrint web interface:
> For those who normally hear alarm bells when they see "localhost" in a Docker context, rest assured that this is correct. The MJPG streamer runs inside the *same* container as OctoPrint so "localhost" is appropriate.
180
-
181
173
The three environment variables are required:
182
174
183
175
```
@@ -220,6 +212,140 @@ To start a print session:
220
212
221
213
If you try to start the OctoPrint container before your 3D printer has been switched on and the USB interface has registered with the Raspberry Pi, the container will go into a restart loop.
222
214
215
+
### first run – the Setup Wizard
216
+
217
+
Use a browser to point to port 9980 on your Raspberry Pi. For example:
218
+
219
+
```
220
+
http://raspberrypi.local:9980
221
+
```
222
+
223
+
This will launch the "Setup Wizard".
224
+
225
+
1. Click the "Next" button until you reach the "Access Control" screen:
226
+
227
+
* Define a Username and Password, and keep a record of your decisions.
228
+
* Click "Create Account".
229
+
* Ignore the alarming popup alert by clicking "Ignore". This alert is a result of OctoPrint running in a Docker container.
230
+
* Click "Next".
231
+
232
+
2. At the "Online Connectivity Check" screen:
233
+
234
+
* Click "Disable Connectivity Check".
235
+
* Click "Next".
236
+
237
+
3. At the "Configure Anonymous Usage Tracking" and "Configure plugin blacklist processing" screens:
238
+
239
+
* Make a decision about whether you want the feature enabled or disabled and click the appropriate button.
240
+
* Click "Next".
241
+
242
+
4. At the "Set up your printer profile" screen:
243
+
244
+
* It is probably a good idea to visit the tabs and set values appropriate to your printer (build volume, at least).
245
+
* Click "Next".
246
+
247
+
5. At the "Server Commands" screen:
248
+
249
+
* Enter the following in the "Restart OctoPrint" field:
250
+
251
+
```
252
+
s6-svc -r /var/run/s6/services/octoprint
253
+
```
254
+
255
+
* Click "Next".
256
+
257
+
6. At the "Webcam & Timelapse Recordings" screen, and assuming you are configuring a PiCamera:
258
+
259
+
* Enter the following in the "Stream URL" field:
260
+
261
+
```
262
+
/webcam/?action=stream
263
+
```
264
+
265
+
Click the "Test" button to confirm that the camera is working, then click "Close".
266
+
267
+
* Enter the following in the "Snapshot URL" field:
268
+
269
+
```
270
+
http://localhost:8080/?action=snapshot
271
+
```
272
+
273
+
Click the "Test" button to confirm that the camera is working, then click "Close".
274
+
275
+
* Enter the following in the "Path to FFMPEG" field:
276
+
277
+
```
278
+
/usr/bin/ffmpeg
279
+
```
280
+
281
+
The expected result is the message "The path is valid".
282
+
283
+
* Click "Next".
284
+
285
+
7. Click "Finish" then click the button to reload the user interface.
286
+
287
+
### after the first run
288
+
289
+
Use a browser to point to port 9980 on your Raspberry Pi. For example:
290
+
291
+
```
292
+
http://raspberrypi.local:9980
293
+
```
294
+
295
+
Supply your user credentials and login.
296
+
297
+
### popup messages
298
+
299
+
OctoPrint will display *numerous* messages in popup windows. These generally fall into two categories:
300
+
301
+
* Messages that refer to updates; and
302
+
* Messages that refer to other events.
303
+
304
+
In general, you can ignore messages about updates. You will get all updates automatically the next time the octoprint-docker container is rebuilt and pushed to DockerHub.
305
+
306
+
You can, if you wish, allow an update to proceed. It might be appropriate to do that if you want to test an update. Just be aware that:
307
+
308
+
1. Updates are ephemeral and will disappear the next time the Octoprint container is created.
309
+
2. Updates can change the structure of the persistent storage area in a way which can't be undone, and which may prevent the Octoprint container from starting the next time it is created. In other words, if you want to trial an update, take a backup of OctoPrint's persistent storage area **first**.
310
+
311
+
### restarting the OctoPrint container
312
+
313
+
You can restart the OctoPrint service in two ways:
314
+
315
+
* via the Raspberry Pi command line; or
316
+
* via the OctoPrint user interface.
317
+
318
+
Whichever method you choose will result in a refresh of the OctoPrint user interface and you will need to follow the prompts to reload your browser page.
319
+
320
+
#### restarting via the command line
321
+
322
+
Run the following commands:
323
+
324
+
```
325
+
$ cd ~/IOTstack
326
+
$ docker-compose restart octoprint
327
+
```
328
+
329
+
#### restarting via OctoPrint user interface
330
+
331
+
From the "System" icon in the OctoPrint toolbar (looks like a power button symbol):
332
+
333
+
1. Choose "Restart OctoPrint".
334
+
335
+
Note:
336
+
337
+
* If you do not see the "System" icon in the toolbar, fix it line this:
338
+
339
+
1. Click the "Settings" icon (looks like a wrench) in the OctoPrint toolbar.
340
+
2. Choose "Server".
341
+
3. Enter the following into the "Restart OctoPrint" field:
342
+
343
+
```
344
+
s6-svc -r /var/run/s6/services/octoprint
345
+
```
346
+
347
+
4. Click "Save".
348
+
223
349
### stopping the OctoPrint container
224
350
225
351
Unless you intend to leave your printer switched on 24 hours a day, you will also need to be careful when you switch off the printer:
@@ -236,25 +362,15 @@ Unless you intend to leave your printer switched on 24 hours a day, you will als
236
362
237
363
If you turn the printer off without terminating the container, you will crash the container.
238
364
239
-
### Connecting to OctoPrint
240
-
241
-
Use a browser to point to port 9980 on your Raspberry Pi. For example:
242
-
243
-
```
244
-
http://raspberrypi.local:9980
245
-
```
246
-
247
-
The first time you do this, you will need to create an administrative account.
248
-
249
-
### Video feed (built-in camera interface)
365
+
## Video feed (built-in camera interface)
250
366
251
367
You can view the video feed independently of the OctoPrint web interface like this:
OctoPrint assumes it is running "natively" rather than in a container. From a data-communications perspective, OctoPrint (the process running inside the OctoPrint container) sees itself as running on a computer attached to the internal Docker network. When you connect to OctoPrint's web interface from a client device attached to an external network, OctoPrint sees that your source IP address is not on the internal Docker network and it issues a security warning.
260
376
@@ -278,16 +394,16 @@ To silence the warning:
278
394
279
395
```
280
396
server:
281
-
…
282
-
ipCheck:
283
-
enabled: true
284
-
trustedSubnets:
285
-
- 192.168.1.0/24
397
+
…
398
+
ipCheck:
399
+
enabled: true
400
+
trustedSubnets:
401
+
- 203.0.132.0/24
286
402
```
287
403
288
404
Notes:
289
405
290
-
* It is likely that the `server:`, `ipCheck:` and `enabled:` directives are already in place but the `trustedSubnets:` directive may not be. Add it, and then add your local subnet(s) where you see the "192.168.1.0/24" example.
406
+
* The `server:`, `ipCheck:` and `enabled:` directives may already be in place but the `trustedSubnets:` directive may not be. Add it, and then add your local subnet(s) where you see the "192.168.1.0/24" example.
291
407
* Remember to use spaces in YAML files. Do not use tabs.
292
408
293
409
4. Save the file.
@@ -298,7 +414,7 @@ To silence the warning:
298
414
$ docker-compose up -d octoprint
299
415
```
300
416
301
-
### routine container maintenance
417
+
##Routine container maintenance
302
418
303
419
You can check for updates like this:
304
420
@@ -309,9 +425,46 @@ $ docker-compose up -d octoprint
309
425
$ docker system prune
310
426
```
311
427
312
-
### if all else fails…
428
+
##If you forget your username and password
313
429
314
-
If you forget your administrative password or the OctoPrint container seems to be misbehaving, you can get a "clean slate" by:
430
+
You can view a list of usernames like this:
431
+
432
+
```
433
+
$ docker exec octoprint octoprint --basedir /octoprint/octoprint user list
434
+
```
435
+
436
+
To reset a user's password:
437
+
438
+
1. Use the following line as a template and replace `«username»` and `«password»` with appropriate values:
The OctoPrint container is well-behaved and will re-initialise its persistent storage area correctly. OctoPrint will adopt "first run" behaviour and display the Setup Wizard.
0 commit comments