@@ -16,40 +16,29 @@ Raspberry Pi computer. Use OctoPi v0.13.0 or later - see the
16
16
[ octopi releases] ( https://github.com/guysoft/OctoPi/releases ) for
17
17
release information. One should verify that OctoPi boots and that the
18
18
OctoPrint web server works. After connecting to the OctoPrint web
19
- page, follow the prompt to upgrade OctoPrint to v1.3.0 or later.
19
+ page, follow the prompt to upgrade OctoPrint to v1.3.2 or later.
20
20
21
21
After installing OctoPi and upgrading OctoPrint, ssh into the target
22
22
machine (ssh pi@octopi -- password is "raspberry") and run the
23
23
following commands:
24
24
25
25
```
26
- sudo apt-get update
27
- sudo apt-get install libncurses-dev libusb-dev
28
- sudo apt-get install avrdude gcc-avr binutils-avr avr-libc # AVR toolchain
29
- sudo apt-get install bossa-cli libnewlib-arm-none-eabi # ARM toolchain
30
- ```
31
-
32
- The host software (Klippy) requires a one-time setup - run as the
33
- regular "pi" user:
34
-
35
- ```
36
- virtualenv ~/klippy-env
37
- ~/klippy-env/bin/pip install cffi==1.6.0 pyserial==3.2.1 greenlet==0.4.10
26
+ git clone https://github.com/KevinOConnor/klipper
27
+ ./klipper/scripts/install-octopi.sh
38
28
```
39
29
40
- Building Klipper
41
- ================
42
-
43
- To obtain Klipper, run the following command on the target machine:
30
+ The above will download Klipper, install some system dependencies,
31
+ setup Klipper to run at system startup, and start the Klipper host
32
+ software. It will require an internet connection and it may take a few
33
+ minutes to complete.
44
34
45
- ```
46
- git clone https://github.com/KevinOConnor/klipper
47
- cd klipper/
48
- ```
35
+ Building the micro-controller code
36
+ ==================================
49
37
50
38
To compile the micro-controller code, start by configuring it:
51
39
52
40
```
41
+ cd ~/klipper/
53
42
make menuconfig
54
43
```
55
44
@@ -118,21 +107,10 @@ Enter the Settings tab again and under "Serial Connection" change the
118
107
"Serial Port" setting to "/tmp/printer". Change the Baudrate field to
119
108
250000 (this buad rate field is not related to the firmware baudrate
120
109
and may be safely left at 250000). Unselect the "Not only cancel
121
- ongoing prints but also disconnect..." checkbox.
122
-
123
- Running the host software
124
- =========================
125
-
126
- The host software is executed by running the following as the regular
127
- "pi" user:
128
-
129
- ```
130
- ~/klippy-env/bin/python ~/klipper/klippy/klippy.py ~/printer.cfg -l /tmp/klippy.log < /dev/null > /dev/null 2>&1 &
131
- ```
110
+ ongoing prints but also disconnect..." checkbox. Click "Save".
132
111
133
- Once Klippy is running, use a web-browser and navigate to the
134
- OctoPrint web site. Under the "Connection" tab (on the left of the
135
- main page) make sure the "Serial Port" is set to "/tmp/printer" and
112
+ From the main page, under the "Connection" window (at the top left of
113
+ the page) make sure the "Serial Port" is set to "/tmp/printer" and
136
114
click "Connect". (If "/tmp/printer" is not an available selection then
137
115
try reloading the page.)
138
116
@@ -142,7 +120,9 @@ the Klippy config file was successfully read, and the micro-controller
142
120
was successfully found and configured, then this command will report
143
121
that the printer is ready. Klippy reports error messages via this
144
122
terminal tab. The "status" command can be used to re-report error
145
- messages.
123
+ messages. The default Klipper startup script also places a log in
124
+ ** /tmp/klippy.log** which may provide more detailed information should
125
+ an error occur.
146
126
147
127
In addition to common g-code commands, Klippy supports a few extended
148
128
commands - "status" is an example of one of these commands. Use the
0 commit comments