✏️ Add link to data model for printer profiles for gcode scripts

Closes #3603
This commit is contained in:
Charlie Powell authored and Gina Häußge committed 2021-07-26 11:08:17 +02:00
1 parent 464f0cd83f
commit 19388fc11f
1 file changed
+2 -1
+2 -1
View File
@@ -70,7 +70,8 @@ Context
All GCODE scripts have access to the following template variables through the template context:
* ``printer_profile``: The currently selected :ref:`Printer Profile <sec-modules-printer-profile>`, including
information such as the extruder count, the build volume size, the filament diameter etc.
information such as the extruder count, the build volume size, the filament diameter etc. The individual properties
follow the common data model for :ref:`printer profiles <sec-api-printerprofiles-datamodel-profile>`.
* ``last_position``: Last position reported by the printer via `M114` (might be unset if no `M114` was sent so far!).
Consists of ``x``, ``y``, ``z`` and ``e`` coordinates as received by the printer and tracked values for ``f`` and
current tool ``t`` taken from commands sent through OctoPrint. All of these coordinates might be ``None`` if no