docs: document remote methods registered by machine

The "reboot_machine" and "shutdown_machine" remote methods may
be called from a Klipper gcode macro to accomplish their respective
tasks.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan committed 2022-02-26 10:48:52 -05:00
1 parent ab09364a98
commit 65e76aeec8
1 file changed
+17
+17
View File
@@ -119,6 +119,23 @@ provider: systemd_dbus
Alternatively it may be possible to enable the `systemd-logind` service,
consult with your distro's documentation.
#### Reboot / Shutdown from Klipper
It is possible to call the `shutdown_machine` and `reboot_machine`
remote methods from a gcode macro in Klipper. For example:
```ini
# printer.cfg
[gcode_macro SHUTDOWN]
gcode:
{action_call_remote_method("shutdown_machine")}
[gcode_macro REBOOT]
gcode:
{action_call_remote_method("reboot_machine")}
```
### `[database]`
The `database` section provides configuration for Moonraker's lmdb database.