aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/gcode_macro.py
Commit message (Collapse)AuthorAgeFilesLines
* gcode_macro: Parse variable_X parameters using ast.literal_eval()Kevin O'Connor2019-06-071-4/+16
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_macro: Add a default parameter to load_templateKevin O'Connor2019-06-071-3/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_macro: Add support "x in printer" to templatesKevin O'Connor2019-06-041-0/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_macro: Add support for SET_GCODE_VARIABLE commandKevin O'Connor2019-06-041-1/+22
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_macro: Rename "status" helper to "printer"Kevin O'Connor2019-06-041-5/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_macro: Evaluate macros using Jinja2 template engineKevin O'Connor2019-04-041-14/+79
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode: Raise a config error on invalid register_command()Kevin O'Connor2019-02-181-5/+1
| | | | | | | Raise a printer.config_error() on an invalid register_command() call. This error is easier to handle for the vast majority of callers. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_macro: Provide more information on a formatting errorKevin O'Connor2018-09-301-3/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_macro: default parameter valuesJanar Sööt2018-09-301-1/+7
| | | | | Signed-off-by: Janar Sööt <janar.soot@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_macro: 2 lines wrapped at 80 charsJanar Sööt2018-09-261-2/+4
| | | | Signed-off-by: Janar Sööt <janar.soot@gmail.com>
* gcode_macro: macro improvement with parametersJanar Sööt2018-09-261-1/+9
| | | | Signed-off-by: Janar Sööt <janar.soot@gmail.com>
* gcode: Rename run_script() to run_script_from_command()Kevin O'Connor2018-06-301-1/+1
| | | | | | | Emphasize that the run_script() method is only valid when run from a g-code command. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* gcode_macro: Add the ability to define custom g-code macrosKevin O'Connor2018-05-251-0/+29
Add the ability to add a custom g-code command that in turn executes one or more configured g-code commands. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>