System Administration¶
The endpoints in this section provide administrative functions for the host machine and operating system.
Get System Info¶
GET /machine/system_info
{
"jsonrpc": "2.0",
"method": "machine.system_info",
"id": 4665
}
{
"system_info": {
"provider": "systemd_dbus",
"cpu_info": {
"cpu_count": 4,
"bits": "32bit",
"processor": "armv7l",
"cpu_desc": "ARMv7 Processor rev 4 (v7l)",
"serial_number": "b898bdb4",
"hardware_desc": "BCM2835",
"model": "Raspberry Pi 3 Model B Rev 1.2",
"total_memory": 945364,
"memory_units": "kB"
},
"sd_info": {
"manufacturer_id": "03",
"manufacturer": "Sandisk",
"oem_id": "5344",
"product_name": "SU32G",
"product_revision": "8.0",
"serial_number": "46ba46",
"manufacturer_date": "4/2018",
"capacity": "29.7 GiB",
"total_bytes": 31914983424
},
"distribution": {
"name": "Raspbian GNU/Linux 10 (buster)",
"id": "raspbian",
"version": "10",
"version_parts": {
"major": "10",
"minor": "",
"build_number": ""
},
"like": "debian",
"codename": "buster"
},
"available_services": [
"klipper",
"klipper_mcu",
"moonraker"
],
"instance_ids": {
"moonraker": "moonraker",
"klipper": "klipper"
},
"service_state": {
"klipper": {
"active_state": "active",
"sub_state": "running"
},
"klipper_mcu": {
"active_state": "active",
"sub_state": "running"
},
"moonraker": {
"active_state": "active",
"sub_state": "running"
}
},
"virtualization": {
"virt_type": "none",
"virt_identifier": "none"
},
"python": {
"version": [
3,
9,
2,
"final",
0
],
"version_string": "3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]"
},
"network": {
"wlan0": {
"mac_address": "<redacted_mac>",
"ip_addresses": [
{
"family": "ipv4",
"address": "192.168.1.127",
"is_link_local": false
},
{
"family": "ipv6",
"address": "<redacted_ipv6>",
"is_link_local": false
},
{
"family": "ipv6",
"address": "fe80::<redacted>",
"is_link_local": true
}
]
}
},
"canbus": {
"can0": {
"tx_queue_len": 128,
"bitrate": 500000,
"driver": "mcp251x"
},
"can1": {
"tx_queue_len": 128,
"bitrate": 500000,
"driver": "gs_usb"
}
}
}
}
Response Specification
Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
system_info |
object | A top level System Info object containing various attributes that report info. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Shutdown the Operating System¶
Commands the Operating System to shutdown. The following pre-requisites must be met to successfully perform this action:
- The
provider
must besystemd_cli
orsystemd_dbus
. - Moonraker must have permission to shutdown the host.
- Moonraker must not be running inside a container.
POST /machine/shutdown
{
"jsonrpc": "2.0",
"method": "machine.shutdown",
"id": 4665
}
"ok"
Reboot the Operating System¶
Commands the Operating System to shutdown. The following pre-requisites must be met to successfully perform this action:
- The
provider
must besystemd_cli
orsystemd_dbus
. - Moonraker must have permission to reboot the host.
- Moonraker must not be running inside a container.
POST /machine/reboot
{
"jsonrpc": "2.0",
"method": "machine.reboot",
"id": 4665
}
"ok"
Restart a system service¶
Commands a service to restart. The following pre-requisites must be met to successfully perform this action:
- The
provider
must NOT benone
. - The service must be present in the list of
allowed_services
. - Moonraker must have the necessary permissions to manage services.
POST /machine/services/restart
Content-Type: application/json
{
"service": "klipper"
}
{
"jsonrpc": "2.0",
"method": "machine.services.restart",
"params": {
"service": "klipper"
},
"id": 4656
}
Parameters
Name | Type | Default | Description |
---|---|---|---|
service |
string | REQUIRED | The name of the service to restart. |
"ok"
Stop a system service¶
Commands a service to stop. The following pre-requisites must be met to successfully perform this action:
- The
provider
must NOT benone
. - The service must be present in the list of
allowed_services
. - Moonraker must have the necessary permissions to manage services.
POST /machine/services/stop
Content-Type: application/json
{
"service": "klipper"
}
{
"jsonrpc": "2.0",
"method": "machine.services.stop",
"params": {
"service": "klipper"
},
"id": 4645
}
Parameters
Name | Type | Default | Description |
---|---|---|---|
service |
string | REQUIRED | The name of the service to stop. |
"ok"
Start a system service¶
Commands a service to start. The following pre-requisites must be met to successfully perform this action:
- The
provider
must NOT benone
. - The service must be present in the list of
allowed_services
. - Moonraker must have the necessary permissions to manage services.
POST /machine/services/start
Content-Type: application/json
{
"service": "klipper"
}
{
"jsonrpc": "2.0",
"method": "machine.services.start",
"params": {
"service": "klipper"
},
"id": 4645
}
Parameters
Name | Type | Default | Description |
---|---|---|---|
service |
string | REQUIRED | The name of the service to start. |
"ok"
Get process statistics¶
Requests system usage information. This includes CPU usage, network usage, etc.
GET /machine/proc_stats
{
"jsonrpc": "2.0",
"method": "machine.proc_stats",
"id": 7896
}
{
"moonraker_stats": [
{
"time": 1626612666.850755,
"cpu_usage": 2.66,
"memory": 24732,
"mem_units": "kB"
},
{
"time": 1626612667.8521338,
"cpu_usage": 2.62,
"memory": 24732,
"mem_units": "kB"
}
],
"throttled_state": {
"bits": 0,
"flags": []
},
"cpu_temp": 45.622,
"network": {
"lo": {
"rx_bytes": 113516429,
"tx_bytes": 113516429,
"bandwidth": 3342.68
},
"wlan0": {
"rx_bytes": 48471767,
"tx_bytes": 113430843,
"bandwidth": 4455.91
}
},
"system_cpu_usage": {
"cpu": 2.53,
"cpu0": 3.03,
"cpu1": 5.1,
"cpu2": 1.02,
"cpu3": 1
},
"system_uptime": 2876970.38089603,
"websocket_connections": 4
}
Response Specification
Field | Type | Description | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
moonraker_stats |
[object] | An array of Moonraker Stats objects. The array is a FIFO queue, where the first index is the oldest sample. Moonraker process stats are sampled roughly every second. The maximum size of the queue is 30 samples. |
|||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||
throttled_state |
object | null | An Throttled State object containing details about the CPU's throttled state. This information is only available on Raspberry Pi hosts, on other hardware this value will be null . |
|||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||
cpu_temp |
float | null | The current CPU temperature. Will be null if the temperature data is unavailable. |
|||||||||||||||||||||||||||||||||||||||
network |
object | A Network Usage object containing detailed network usage data. Will be an empty object if this information is unavailable. |
|||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||
system_cpu_usage |
object | A CPU Usage object containing detailed CPU usage data. Will be an empty object if this information is unavailable. |
|||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||
system_memory |
object | A Memory Usage object containing detailed memory usage data. Will be an empty object if this information is unavailable. |
|||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||
system_uptime |
float | The time elapsed, in seconds, since system boot. | |||||||||||||||||||||||||||||||||||||||
websocket_connections |
int | The current number of open websocket connections. |
Get Sudo Info¶
Retrieves sudo information status. Optionally checks if Moonraker has permission to run commands as root.
GET /machine/sudo/info?check_access=false
{
"jsonrpc": "2.0",
"method": "machine.sudo.info",
"params": {
"check_access": false
},
"id": 7896
}
Parameters
Name | Type | Default | Description |
---|---|---|---|
check_access |
bool | false |
When true Moonraker will attempt to run a sudo command in a effort to check if sudo permission is available. |
{
"sudo_access": null,
"linux_user": "pi",
"sudo_requested": false,
"request_messages": []
}
Response Specification
Field | Type | Description |
---|---|---|
sudo_access |
bool | null | The result of a requested sudo permission check. Will be null if the check was not requested via the check_access parameter. |
linux_user |
string | The name of the linux user the Moonraker process belongs to. |
sudo_requested |
bool | Returns true if an internal Moonraker component has |
requested a sudo password to perform some task, false otherwise. |
||
request_messages |
[string] | If one or more internal components have requested sudo access, each will provide a description of the request available in this array. |
Set sudo password¶
Sets the sudo password currently used by Moonraker. The password is not persistent across Moonraker restarts. If Moonraker has one or more pending sudo requests they will be processed.
POST /machine/sudo/password
Content-Type: application/json
{
"password": "linux_user_password"
}
{
"jsonrpc": "2.0",
"method": "machine.sudo.password",
"params": {
"password": "linux_user_password"
},
"id": 7896
}
Parameters
Name | Type | Default | Description |
---|---|---|---|
password |
string | REQUIRED | The linux user password necessary to grant Moonraker sudo permission. |
{
"sudo_responses": [
"Sudo password successfully set."
],
"is_restarting": false
}
Response Specification
Field | Type | Description |
---|---|---|
sudo_responses |
[string] | If any Moonraker component has an outstanding sudo it will process the task and provide a response included in this array. |
is_restarting |
bool | If a processed sudo request intends to restart Moonraker this value will be true , otherwise false . |
Note
This request will return an error if the supplied password is incorrect or if any pending sudo requests fail.
List USB Devices¶
Returns a list of all USB devices currently detected on the system.
GET /machine/peripherals/usb
{
"jsonrpc": "2.0",
"method": "machine.peripherals.usb",
"id": 7896
}
{
"usb_devices": [
{
"device_num": 1,
"bus_num": 1,
"vendor_id": "1d6b",
"product_id": "0002",
"usb_location": "1:1",
"manufacturer": "Linux 6.1.0-rpi7-rpi-v8 dwc_otg_hcd",
"product": "DWC OTG Controller",
"serial": "3f980000.usb",
"class": "Hub",
"subclass": null,
"protocol": "Single TT",
"description": "Linux Foundation 2.0 root hub"
},
{
"device_num": 3,
"bus_num": 1,
"vendor_id": "046d",
"product_id": "0825",
"usb_location": "1:3",
"manufacturer": "Logitech, Inc.",
"product": "Webcam C270",
"serial": "<unique serial number>",
"class": "Miscellaneous Device",
"subclass": null,
"protocol": "Interface Association",
"description": "Logitech, Inc. Webcam C270"
},
{
"device_num": 2,
"bus_num": 1,
"vendor_id": "1a40",
"product_id": "0101",
"usb_location": "1:2",
"manufacturer": "Terminus Technology Inc.",
"product": "USB 2.0 Hub",
"serial": null,
"class": "Hub",
"subclass": null,
"protocol": "Single TT",
"description": "Terminus Technology Inc. Hub"
},
{
"device_num": 5,
"bus_num": 1,
"vendor_id": "0403",
"product_id": "6001",
"usb_location": "1:5",
"manufacturer": "FTDI",
"product": "FT232R USB UART",
"serial": "<unique serial number>",
"class": null,
"subclass": null,
"protocol": null,
"description": "Future Technology Devices International, Ltd FT232 Serial (UART) IC"
},
{
"device_num": 4,
"bus_num": 1,
"vendor_id": "1d50",
"product_id": "614e",
"usb_location": "1:4",
"manufacturer": "Klipper",
"product": "stm32f407xx",
"serial": "<unique serial number>",
"class": "Communications",
"subclass": null,
"protocol": null,
"description": "OpenMoko, Inc. Klipper 3d-Printer Firmware"
}
]
}
Response Specification
Field | Type | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
usb_devices |
[object] | An array of USB Device objects. |
||||||||||||||||||||||||||||||||||||
|
List Serial Devices¶
Returns a list of all serial devices detected on the system. These may be USB CDC-ACM devices or hardware UARTs.
GET /machine/peripherals/serial
{
"jsonrpc": "2.0",
"method": "machine.peripherals.serial",
"id": 7896
}
{
"serial_devices": [
{
"device_type": "hardware_uart",
"device_path": "/dev/ttyS0",
"device_name": "ttyS0",
"driver_name": "serial8250",
"path_by_hardware": null,
"path_by_id": null,
"usb_location": null
},
{
"device_type": "usb",
"device_path": "/dev/ttyACM0",
"device_name": "ttyACM0",
"driver_name": "cdc_acm",
"path_by_hardware": "/dev/serial/by-path/platform-3f980000.usb-usb-0:1.2:1.0",
"path_by_id": "/dev/serial/by-id/usb-Klipper_stm32f407xx_unique_serial-if00",
"usb_location": "1:4"
},
{
"device_type": "usb",
"device_path": "/dev/ttyUSB0",
"device_name": "ttyUSB0",
"driver_name": "ftdi_sio",
"path_by_hardware": "/dev/serial/by-path/platform-3f980000.usb-usb-0:1.4:1.0-port0",
"path_by_id": "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_unique_serial-if00-port0",
"usb_location": "1:5"
},
{
"device_type": "hardware_uart",
"device_path": "/dev/ttyAMA0",
"device_name": "ttyAMA0",
"driver_name": "uart-pl011",
"path_by_hardware": null,
"path_by_id": null,
"usb_location": null
}
]
}
Response Specification
Field | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
serial_devices |
[object] | An array of Serial Device objects. |
||||||||||||||||||||||||
|
List Video Capture Devices¶
Retrieves a list of V4L2 video capture devices on the system. If the python3-libcamera system package is installed this request will also return libcamera devices.
GET /machine/peripherals/video
{
"jsonrpc": "2.0",
"method": "machine.peripherals.video",
"id": 7896
}
{
"v4l2_devices": [
{
"device_name": "video0",
"device_path": "/dev/video0",
"camera_name": "unicam",
"driver_name": "unicam",
"hardware_bus": "platform:3f801000.csi",
"capabilities": [
"VIDEO_CAPTURE",
"EXT_PIX_FORMAT",
"READWRITE",
"STREAMING",
"IO_MC"
],
"version": "6.1.63",
"path_by_hardware": "/dev/v4l/by-path/platform-3f801000.csi-video-index0",
"path_by_id": null,
"alt_name": "unicam-image",
"usb_location": null,
"modes": []
},
{
"device_name": "video1",
"device_path": "/dev/video1",
"camera_name": "UVC Camera (046d:0825)",
"driver_name": "uvcvideo",
"hardware_bus": "usb-3f980000.usb-1.1",
"modes": [
{
"format": "YUYV",
"description": "YUYV 4:2:2",
"flags": [],
"resolutions": [
"640x480",
"160x120",
"176x144",
"320x176",
"320x240",
"352x288",
"432x240",
"544x288",
"640x360",
"752x416",
"800x448",
"800x600",
"864x480",
"960x544",
"960x720",
"1024x576",
"1184x656",
"1280x720",
"1280x960"
]
},
{
"format": "MJPG",
"description": "Motion-JPEG",
"flags": [
"COMPRESSED"
],
"resolutions": [
"640x480",
"160x120",
"176x144",
"320x176",
"320x240",
"352x288",
"432x240",
"544x288",
"640x360",
"752x416",
"800x448",
"800x600",
"864x480",
"960x544",
"960x720",
"1024x576",
"1184x656",
"1280x720",
"1280x960"
]
}
],
"capabilities": [
"VIDEO_CAPTURE",
"EXT_PIX_FORMAT",
"STREAMING"
],
"version": "6.1.63",
"path_by_hardware": "/dev/v4l/by-path/platform-3f980000.usb-usb-0:1.1:1.0-video-index0",
"path_by_id": "/dev/v4l/by-id/usb-046d_0825_66EF0390-video-index0",
"alt_name": "UVC Camera (046d:0825)",
"usb_location": "1:3",
"modes": [
{
"format": "YUYV",
"description": "YUYV 4:2:2",
"flags": [],
"resolutions": [
"640x480",
"160x120",
"176x144",
"320x176",
"320x240",
"352x288",
"432x240",
"544x288",
"640x360",
"752x416",
"800x448",
"800x600",
"864x480",
"960x544",
"960x720",
"1024x576",
"1184x656",
"1280x720",
"1280x960"
]
},
{
"format": "MJPG",
"description": "Motion-JPEG",
"flags": [
"COMPRESSED"
],
"resolutions": [
"640x480",
"160x120",
"176x144",
"320x176",
"320x240",
"352x288",
"432x240",
"544x288",
"640x360",
"752x416",
"800x448",
"800x600",
"864x480",
"960x544",
"960x720",
"1024x576",
"1184x656",
"1280x720",
"1280x960"
]
}
]
},
{
"device_name": "video14",
"device_path": "/dev/video14",
"camera_name": "bcm2835-isp",
"driver_name": "bcm2835-isp",
"hardware_bus": "platform:bcm2835-isp",
"modes": [],
"capabilities": [
"VIDEO_CAPTURE",
"EXT_PIX_FORMAT",
"STREAMING"
],
"version": "6.1.63",
"path_by_hardware": null,
"path_by_id": null,
"alt_name": "bcm2835-isp-capture0",
"usb_location": null,
"modes": []
},
{
"device_name": "video15",
"device_path": "/dev/video15",
"camera_name": "bcm2835-isp",
"driver_name": "bcm2835-isp",
"hardware_bus": "platform:bcm2835-isp",
"modes": [],
"capabilities": [
"VIDEO_CAPTURE",
"EXT_PIX_FORMAT",
"STREAMING"
],
"version": "6.1.63",
"path_by_hardware": null,
"path_by_id": null,
"alt_name": "bcm2835-isp-capture1",
"usb_location": null,
"modes": []
},
{
"device_name": "video21",
"device_path": "/dev/video21",
"camera_name": "bcm2835-isp",
"driver_name": "bcm2835-isp",
"hardware_bus": "platform:bcm2835-isp",
"modes": [],
"capabilities": [
"VIDEO_CAPTURE",
"EXT_PIX_FORMAT",
"STREAMING"
],
"version": "6.1.63",
"path_by_hardware": "/dev/v4l/by-path/platform-bcm2835-isp-video-index1",
"path_by_id": null,
"alt_name": "bcm2835-isp-capture0",
"usb_location": null,
"modes": []
},
{
"device_name": "video22",
"device_path": "/dev/video22",
"camera_name": "bcm2835-isp",
"driver_name": "bcm2835-isp",
"hardware_bus": "platform:bcm2835-isp",
"modes": [],
"capabilities": [
"VIDEO_CAPTURE",
"EXT_PIX_FORMAT",
"STREAMING"
],
"version": "6.1.63",
"path_by_hardware": "/dev/v4l/by-path/platform-bcm2835-isp-video-index2",
"path_by_id": null,
"alt_name": "bcm2835-isp-capture1",
"usb_location": null,
"modes": []
}
],
"libcamera_devices": [
{
"libcamera_id": "/base/soc/i2c0mux/i2c@1/ov5647@36",
"model": "ov5647",
"modes": [
{
"format": "SGBRG10_CSI2P",
"resolutions": [
"640x480",
"1296x972",
"1920x1080",
"2592x1944"
]
}
]
},
{
"libcamera_id": "/base/soc/usb@7e980000/usb-port@1/usb-port@1-1.1:1.0-046d:0825",
"model": "UVC Camera (046d:0825)",
"modes": [
{
"format": "MJPEG",
"resolutions": [
"160x120",
"176x144",
"320x176",
"320x240",
"352x288",
"432x240",
"544x288",
"640x360",
"640x480",
"752x416",
"800x448",
"864x480",
"800x600",
"960x544",
"1024x576",
"960x720",
"1184x656",
"1280x720",
"1280x960"
]
},
{
"format": "YUYV",
"resolutions": [
"160x120",
"176x144",
"320x176",
"320x240",
"352x288",
"432x240",
"544x288",
"640x360",
"640x480",
"752x416",
"800x448",
"864x480",
"800x600",
"960x544",
"1024x576",
"960x720",
"1184x656",
"1280x720",
"1280x960"
]
}
]
}
]
}
Response Specification
Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
v4l2_devices |
[object] | An array of V4L2 Device objects. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
libcamera_devices |
[object] | An array of Libcamera Device objects. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Query Unassigned Canbus UUIDs¶
Queries the provided canbus interface for unassigned Klipper or Katapult node IDs.
Warning
It is recommended that frontends provide users with an explanation of how UUID queries work and the potential pitfalls when querying a bus with multiple unassigned nodes. An "unassigned" node is a CAN node that has not been activated by Katapult or Klipper. If either Klipper or Katapult has connected to the node, it will be assigned a Node ID and therefore will no longer respond to queries. A device reset is required to remove the assignment.
When multiple unassigned nodes are on the network, each responds to the query at roughly the same time. This results in arbitration errors. Nodes will retry the send until the response reports success. However, nodes track the count of arbitration errors, and once a specific threshold is reached they will go into a "bus off" state. A device reset is required to reset the counter and recover from "bus off".
For this reason, it is recommended that users only issue a query when a single unassigned node is on the network. If a user does wish to query multiple unassigned nodes it is vital that they reset all nodes on the network before running Klipper.
GET /machine/peripherals/canbus?interface=can0
{
"jsonrpc": "2.0",
"method": "machine.peripherals.canbus",
"params": {
"interface": "can0"
},
"id": 7896
}
Parameters
Name | Type | Default | Description |
---|---|---|---|
interface |
string | can0 |
The cansocket interface to query. |
{
"can_uuids": [
{
"uuid": "11AABBCCDD",
"application": "Klipper"
}
]
}
Response Specification
Field | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
can_uuids |
[object] | An array of discovered CAN UUID objects, Will be empty if no unassigned CAN nodes are found. |
|||||||||
|