|
@@ -1,9 +1,8 @@
|
1
|
1
|
title: OctoPrint Setup
|
2
|
2
|
description: Setting up OctoPrint and some common improvements
|
3
|
3
|
parent: 3d-printing
|
4
|
|
-position: 30
|
|
4
|
+position: 40
|
5
|
5
|
comments: true
|
6
|
|
-flattr: true
|
7
|
6
|
---
|
8
|
7
|
|
9
|
8
|
<span class="listdesc">[...back to 3D-Printing overview](3d-printing.html)</span>
|
|
@@ -12,7 +11,7 @@ All my 3D printers are connected to a Raspberry Pi running [OctoPrint](https://o
|
12
|
11
|
For ease of use, I suggest downloading and installing a pre-made [OctoPi image](https://octoprint.org/download/).
|
13
|
12
|
Here on this page I describe some common steps and improvements I do on each of them.
|
14
|
13
|
|
15
|
|
-### Controlling a Power Supply
|
|
14
|
+## Controlling a Power Supply
|
16
|
15
|
|
17
|
16
|
To turn the power for the 3D printer on and off from within OctoPrint, there are different methods available depending on the setup of your 3D printer.
|
18
|
17
|
If you are using a standard fixed-voltage brick power supply, you can use a cheap relais board to switch the power between your supply and the printer.
|
|
@@ -53,7 +52,7 @@ Mine look like this.
|
53
|
52
|
confirm: You are about to turn off the printer.
|
54
|
53
|
name: Turn off printer
|
55
|
54
|
|
56
|
|
-### Automatically Connect to Printer
|
|
55
|
+## Automatically Connect to Printer
|
57
|
56
|
|
58
|
57
|
[Bernd Zeimetz has a great writeup on how to auto-connect to the serial port](https://bzed.de/post/2017/11/octoprint_autoconnect_printer/) of your 3D printer.
|
59
|
58
|
Here is the brief version of it, slightly modified to work with current OctoPrint versions.
|
|
@@ -133,7 +132,7 @@ systemctl list-units 'octoprint_connect*'
|
133
|
132
|
journalctl -u octoprint_connect@ttyUSB0.service
|
134
|
133
|
</pre>
|
135
|
134
|
|
136
|
|
-### Physical Power Button
|
|
135
|
+## Physical Power Button
|
137
|
136
|
|
138
|
137
|
Besides controlling eg. an ATX power supply or a relay connecting the printer to the power supply, I also wanted a push-button connected to the Raspberry Pi that can toggle the power supply using the aforementioned connection on the Pi.
|
139
|
138
|
This can be solved using a simple Python script.
|
|
@@ -201,7 +200,7 @@ sudo /etc/init.d/octopi-power-button
|
201
|
200
|
|
202
|
201
|
Now simply hold your power button for two seconds and the printer power will be toggled.
|
203
|
202
|
|
204
|
|
-### Automatic Photo Upload
|
|
203
|
+## Automatic Photo Upload
|
205
|
204
|
|
206
|
205
|
As you may have seen, all my 3D printer are [uploading a photo every 5 minutes](printer.html) to this webserver.
|
207
|
206
|
Achieving this is very simple.
|