virtual_sdcard alternative providing ability to pause and cancel print
during macro execution (you still have to wait for blocking commands though)
and adds error stack trace
cd ~
git clone https://github.com/vertexbz/klipper-gcode-loader.git
cd ~/klipper/klippy/extras/
ln -s ~/klipper-gcode-loader/src gcode_loader
To add the extension to the update manager you can use following config
[update_manager klipper_gcode_loader]
type: git_repo
path: ~/klipper-gcode-loader
origin: https://github.com/vertexbz/klipper-gcode-loader.git
primary_branch: master
is_system_service: False
To have gcode_loader working you need to define it before virtual_sdcard. It is important to load gcode_loader
so it can take virtual_sdcards place, and to keep virtual_sdcard to satisfy moonraker.
[gcode_loader]
[virtual_sdcard]
path: /home/printer/gcode
[gcode_loader]
# A comma separated list of macros to be executed without interruption
uninterrupted: T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11
G-Code command MACRO_RELOAD [VARIABLES=1] [NAME=<macro name>] re-reads configuration files again and reloads
macros. By default, it also adds new variables, to disable this behavior add VARIABLES=0 parameter, or to replace
current macro variables with those from file use VARIABLES=2. You can also restrict reload by macro/template name
using NAME=... parameter.
- recursive call protection