# Klipper
Fast 3D Printing with Raspberry Pi - klipper3d.org / github / r/klippers / ender6:7125/
KLIPPER Command
Easiest way to invoke a FIRMWARE_RESTART from the command-line is to run (this work for any GCODE):
The default Klipper startup script places a log in /tmp/klippy.log
which provides more detailed information.
Troubleshooting
If does not start and complain about
It’s probably because it can create /tmp/printer
. remove that symbolic link
Klipper features
- MoonRaker - Klipper API Server
- Mainsail / Fluidd - webclient
- macro
- Tip for resuming failed prints
Install
May Run as docker Image (but does not interact with octoprint) Current install run klipper directly on PI in which case Moonraker has to be able to acess klipper via unix-socket.
KIAUH
Can be used to setup local install + additionnal tools. CLI Menu that allow to install / remove.
Troubleshooting
websockets.py:build_error() - json-rpc request error method not found #405 - UI does not connect to Klipper - Please check if the Klipper service is running and an UDS (Unix Domain Socket) is configured #261
- Since you did a manual install the most likely cause is that you did not enable Klipper’s API server.
For whatever reason, moonraker was looking into /tmp/klippy_uds
, the klipper default
Docker images available:
- sillyfrog/octoprint / klipper/Dockerfile
- discussion
- OctoPrint-Klipper - seanauff Docker image for running OctoPrint and Klipper in a single container.
- dwc2-klipper - a Docker image for running DWC2 and Klipper
-
klipper-web-control-docker - Klipper with Moonraker shipped with Fluidd and/or Mainsail
- Klipper Ender 3 guide
- Klipper Vs 32 bit board Marlin - would I see any benefits of switching to Klipper if I already have a 32 bit board with Marlin?
Configuring Klipper
The Klipper configuration is stored in a text file on the Raspberry Pi.
Starting from ramp config. cp ~/klipper/config/generic-ramps.cfg ~/printer.cfg
Config can reference other config through [include x]
mechanism.
Verify config
Setup for Octoprint
- Install octoprint
- Follow instructions
- ssh to pi@octopi
- run commands
The above will download Klipper, install some system dependencies, setup Klipper to run at system startup, and start the Klipper host software. It will require an internet connection and it may take a few minutes to complete.
Flashing firmware
compile code
make menuconfig not working #3669 -> workaround => export LC_ALL=C
Finally, for common micro-controllers, the code can be flashed with: Make sure octoprint is disconnected before.
Make sure to restart board afterward: power off/on printer
Moonraker (Optional) - Klipper API
This is necessary to expose Klipper as a REST API, which can be used by Webclient interface like Fluidd or Mainsail. It can esealy be installed with KIAUH
If going through manual install
Enabling the Unix Socket
Add -a /tmp/klippy_uds to KLIPPY_ARGS in /etc/systemd/system/klipper.service
and maybe change printer.cfg
path as well…
Moonraker depends on the following Klippy extras for full functionality:
[virtual_sdcard]
[pause_resume]
[display_status]
to install with moonraker.conf in the config_path:
see Moonraker’s full configuration for futher doc.
Configure Octoprint to use Klipper
see also Fluidd which use Moonraker API and is more integrated with Klipper.
There is the OctoKlipper plugin that provide some interface and ui in octoprint.
power control on Klipper
see also
- Klipper for CNC: initiatives and projects list - Klipper is missing some basic features for general CNC (i.e. applications at and beyond 3D-printing).