Never restart Klipper again for simple macros.
Klipper Dynamic Macros is an unofficial way to update macros without restarting Klipper, so you can update macros mid-print and see their results live. It also supports extra features that normal GCode Macros don't have.
Read the documentation here
If you like this project, don't forget to give it a star! Also, check out my other projects:
- 3MS, a modular multimaterial system for Klipper
- KlipperMaintenance, maintenance reminders for Klipper
- Recursion
- Receiving Variables
- Utility Functions
- Variables
- Python
- Delayed GCode
- Macro Clusters
- Rendering Macros
Your macros are written in a .cfg
file, then included into your printer.cfg
. When Klipper restarts, it parses these files and saves the macros internally (you can't change them without restarting Klipper). When a macro is called, the cached code is interpreted and run.
Your macros are written in a .cfg
file, then the relative path to that file is configured in a [dynamicmacros]
config section. The config files are read and parsed every time you run the DYNAMIC_MACRO
command, allowing you to update macros without restarting Klipper.
Follow the Tutorial to get started with Dynamic Macros.
See Development Status for the currently available features, and planned features.