Configuration
After installing KlipperMaintenance, follow this guide to configure it.
Main Section
First, a main [maintain]
section must be configured. This has two main purposes:
- Check periodically if maintenance needs to be done
- Provide the
MAINTAIN_STATUS
command
To configure it, add to your printer.cfg
:
printer.cfg
[maintain]
interval: 60 # optional, time (in seconds) between checking if maintenance needs to be done (default is 60)
Maintenance Sections
Next, for each maintenance object, a [maintain xxx]
config section should be configured. In this example, three maintenance objects will be configured (note the times here are purely for demonstration and are probably not ideal):
- Lubricate XY rods (250 hours print time)
- Replace air filter (500 hours time)
- Clean and tighten extruder screws (700m filament)
For each [maintain xxx]
section, there are four options that must be set:
label
text that will be displayed when referring to this maintenance objecttrigger
type of event that triggers this maintenance. Currently three options:print_time
print time, in hoursfilament
extruded filament, in meters (330m is roughly 1kg of PLA)time
time, in hours
threshold
how often maintenance needs to be done. Forprint_time
andtime
, this is in hours. Forfilament
, this is in metersmessage
message that will be displayed when maintenance needs to be doneexpired_gcode
GCode to run after maintenance expires. Not required
Example:
printer.cfg
# Lubricate XY rods
[maintain xyrods]
label: XY smooth rods
trigger: print_time
threshold: 250
message: Lubricate XY smooth rods
# Replace air filter
[maintain airfilter]
label: Air filter
trigger: time
threshold: 500
message: Replace HEPA and charcoal filters
# Extruder maintenance
[maintain extruder]
label: Extruder maintenance
trigger: filament
threshold: 700
message: Clean extruder gears and tighten extruder bolts