docs: fixes invalid JSON in example
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
This commit is contained in:
parent
354cc11b8e
commit
ccbb03f5f3
@ -69,11 +69,13 @@ notify_status_update
|
|||||||
"jsonrpc": "2.0",
|
"jsonrpc": "2.0",
|
||||||
"method": "notify_status_update",
|
"method": "notify_status_update",
|
||||||
"params": [
|
"params": [
|
||||||
"gcode_move": {
|
{
|
||||||
"speed": 1500,
|
"gcode_move": {
|
||||||
},
|
"speed": 1500,
|
||||||
"toolhead": {
|
},
|
||||||
"status": "Ready"
|
"toolhead": {
|
||||||
|
"status": "Ready"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
578243.57824499
|
578243.57824499
|
||||||
]
|
]
|
||||||
@ -511,35 +513,37 @@ notify_proc_stat_update
|
|||||||
{
|
{
|
||||||
"jsonrpc": "2.0",
|
"jsonrpc": "2.0",
|
||||||
"method": "notify_proc_stat_update",
|
"method": "notify_proc_stat_update",
|
||||||
"params": [{
|
"params": [
|
||||||
"moonraker_stats": {
|
{
|
||||||
"time": 1615837812.0894408,
|
"moonraker_stats": {
|
||||||
"cpu_usage": 1.99,
|
"time": 1615837812.0894408,
|
||||||
"memory": 23636,
|
"cpu_usage": 1.99,
|
||||||
"mem_units": "kB"
|
"memory": 23636,
|
||||||
},
|
"mem_units": "kB"
|
||||||
"cpu_temp": 44.008,
|
|
||||||
"network": {
|
|
||||||
"lo": {
|
|
||||||
"rx_bytes": 114555457,
|
|
||||||
"tx_bytes": 114555457,
|
|
||||||
"bandwidth": 2911.49
|
|
||||||
},
|
},
|
||||||
"wlan0": {
|
"cpu_temp": 44.008,
|
||||||
"rx_bytes": 48773134,
|
"network": {
|
||||||
"tx_bytes": 115035939,
|
"lo": {
|
||||||
"bandwidth": 3458.77
|
"rx_bytes": 114555457,
|
||||||
}
|
"tx_bytes": 114555457,
|
||||||
},
|
"bandwidth": 2911.49
|
||||||
"system_cpu_usage": {
|
},
|
||||||
"cpu": 2.53,
|
"wlan0": {
|
||||||
"cpu0": 3.03,
|
"rx_bytes": 48773134,
|
||||||
"cpu1": 5.1,
|
"tx_bytes": 115035939,
|
||||||
"cpu2": 1.02,
|
"bandwidth": 3458.77
|
||||||
"cpu3": 1
|
}
|
||||||
},
|
},
|
||||||
"websocket_connections": 2
|
"system_cpu_usage": {
|
||||||
}]
|
"cpu": 2.53,
|
||||||
|
"cpu0": 3.03,
|
||||||
|
"cpu1": 5.1,
|
||||||
|
"cpu2": 1.02,
|
||||||
|
"cpu3": 1
|
||||||
|
},
|
||||||
|
"websocket_connections": 2
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
///
|
///
|
||||||
@ -1268,7 +1272,7 @@ when the current active spool ID has changed.
|
|||||||
notify_active_spool_set
|
notify_active_spool_set
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```{.json .apiresponse title="Example Notification"}
|
||||||
{
|
{
|
||||||
"jsonrpc": "2.0",
|
"jsonrpc": "2.0",
|
||||||
"method": "notify_active_spool_set",
|
"method": "notify_active_spool_set",
|
||||||
@ -1308,7 +1312,7 @@ the connection status to Spoolman changes.
|
|||||||
notify_spoolman_status_changed
|
notify_spoolman_status_changed
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```{.json .apiresponse title="Example Notification"}
|
||||||
{
|
{
|
||||||
"jsonrpc": "2.0",
|
"jsonrpc": "2.0",
|
||||||
"method": "notify_spoolman_status_changed",
|
"method": "notify_spoolman_status_changed",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user