Warning
This repo is still at work, doc is uncomplete and code can present some bugs, use it whith care
Kbobine is a gateway between Spoolman and Klipper, it allows to send current spool informations to Klipper. Then, it let you store settings inside Klipper configuration.
Compatibility: Fluidd/Klipperscreen/Mainsail UI.
Requirements: a working Spoolman component in Moonraker
Fluidd | KlipperScreen | Mainsail |
At Klipper startup or when a spool is selected (by UI or macro), it informs Klipper and send back informations from Spoolman to klipper (material, vendor, name of the filament, ...). Then Klipper apply settings previously set for this spool. If no information found, settings from equivalent spool/material/default can be imported.
Note
With the minimal install you can use kbobine just to share information between klipper and spoolman. More informations on how spoolman_ext.py
works
Pressure advance and firmware retraction was the first parameters introduced in early version. But you can store any settings you need in your Macros. For example, I store temperatures, filter use, filament sensor use, extrude_factor... I use some extended functions to limit max_flow and fan_speed during the print.
These settings are mostly printer/toolhead dependent. It also allows you to call settings even if connexion to spoolman is lost.
KBobine use a moonraker component spoolman_ext.py
to track spool change then send informations about spool to klipper.
It stores infos about spool in a saved_variable array kbobine_table
once the spool is loaded. If no setting is detected, it will prompt to calibrate filament or load settings from other filaments in table.
Then it populates a current_settings
array from default settings and stored settings. This array can be called from your Macros like this:
{% set settings = printer['gcode_macro _KBOBINE'].current_settings %}
First clone the current repo on your printer
cd ~
git clone https://github.com/fbeauKmi/kbobine_filament_settings.git kbobine
cd kbobine
Usage: bash install.sh [-0|--option]
Kbobine installer
Optional args:
-m, --minimal Install moonraker component only.
-f, --force Force Moonraker component installation.
-h, --help Display this help message and exit.
Warning
The script does not restart Klipper/Moonraker, you will have to do it manually once done.
sudo systemctl restart klipper
sudo systemctl restart moonraker
Remove Moonraker component, delete kbobine
folder, Manually remove entries in moonraker.conf
and klipper config
unlink ~/moonraker/moonraker/components/spoolman_ext.py
rm -rf ~/kbobine
Thanks to French Voron Community for support and advices.