diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-01-14 22:22:33 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-01-20 16:25:25 -0500 |
commit | 8cc1d841805250323bcdcc147dc50c90c15c7198 (patch) | |
tree | 04eb7e688e7cf07714647d26d5c758b82086073f /docs | |
parent | 023a985bfc8a627b1e4ccff797fbc33e3d064d6c (diff) | |
download | kutter-8cc1d841805250323bcdcc147dc50c90c15c7198.tar.gz kutter-8cc1d841805250323bcdcc147dc50c90c15c7198.tar.xz kutter-8cc1d841805250323bcdcc147dc50c90c15c7198.zip |
configfile: Add printer.configfile.settings command template parameter
Make available the parsed value (or default value) for config options
to command templates and to the api server.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/Command_Templates.md | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/Command_Templates.md b/docs/Command_Templates.md index f2c5699b..ea4c03b9 100644 --- a/docs/Command_Templates.md +++ b/docs/Command_Templates.md @@ -214,12 +214,14 @@ The following are common printer attributes: as "triggered" during the last QUERY_PROBE command. Note, due to the order of template expansion (see above), the QUERY_PROBE command must be run prior to the macro containing this reference. -- `printer.configfile.config["<section>"]["<option>"]`: Returns the - given config file setting as read by Klipper during the last - software start or restart. (Any settings changed at run-time will - not be reflected here.) All values are returned as strings (if math - is to be performed on the value then it must be converted to a - Python number). +- `printer.configfile.settings.<section>.<option>`: Returns the given + config file setting (or default value) during the last software + start or restart. (Any settings changed at run-time will not be + reflected here.) +- `printer.configfile.config.<section>.<option>`: Returns the given + raw config file setting as read by Klipper during the last software + start or restart. (Any settings changed at run-time will not be + reflected here.) All values are returned as strings. - `printer["gcode_macro <macro_name>"].<variable>`: The current value of a [gcode_macro variable](#variables). - `printer.webhooks.state`: Returns a string indicating the current |