Allow plugins to define gcode script variables using the octoprint.comm.protocol.scripts hook

This commit is contained in:
Shawn Bruce committed 2018-01-12 13:05:45 -05:00
1 parent c11288ff65
commit 6545f9a816
3 files changed
+38 -19

No files matched your search

+1
View File
@@ -80,6 +80,7 @@ All GCODE scripts have access to the following template variables through the te
note that ``actual`` and ``target`` might be ``None``.
* ``script``: An object wrapping the script's type (``gcode``) and name (e.g. ``afterPrintCancelled``) as ``script.type``
and ``script.name`` respectively.
* ``plugins``: An object containing variables provided by plugins (e.g ``plugins.myplugin.myvariable``)
There are a few additional template variables available for the following specific scripts: