aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-02-13 21:57:41 -0500
committerKevin O'Connor <kevin@koconnor.net>2020-02-13 22:04:40 -0500
commitc3899cefa8d8824f83ff430c025075127adc2aab (patch)
tree93f5c5242c270d528d3297fac260fa1f48cadbed /docs
parentfd6baa3d161a02a5ca1933fc460070c17429808c (diff)
downloadkutter-c3899cefa8d8824f83ff430c025075127adc2aab.tar.gz
kutter-c3899cefa8d8824f83ff430c025075127adc2aab.tar.xz
kutter-c3899cefa8d8824f83ff430c025075127adc2aab.zip
configfile: Add get_status() to export raw config file information
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'docs')
-rw-r--r--docs/Command_Templates.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/Command_Templates.md b/docs/Command_Templates.md
index 9727bb2b..1c97880b 100644
--- a/docs/Command_Templates.md
+++ b/docs/Command_Templates.md
@@ -180,6 +180,12 @@ The following are common printer attributes:
QUERY_ENDSTOP command. Note, due to the order of template expansion
(see above), the QUERY_STATUS 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).
The above list is subject to change - if using an attribute be sure to
review the [Config Changes document](Config_Changes.md) when upgrading