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 2022-02-26 08:38:36 -05:00
parent ab09364a98
commit 65e76aeec8
No known key found for this signature in database
GPG Key ID: 7027245FBBDDF59A
1 changed files with 17 additions and 0 deletions

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.