getPrinterStatus
Get the current status of a printer.
Parameter
| Key | Type | Description |
|---|---|---|
| printer | string | Printer ID. |
Return value
A Status object with the following keys:
| Key | Type | Description |
|---|---|---|
| state | string | See getPrinterState. |
| ragStatus | string | RED, AMBER or GREEN. |
| errors | array of strings | Empty if there are no errors. |
| ink | array of InkStatus | See below. |
An InkStatus object as the following keys:
| Key | Type | Description |
|---|---|---|
| state | string | STOPPED, STANDBY, STARTING, STARTED, STOPPING, CALIBRATING, FILLING, EMPTYING, MANUAL, or ERROR. |
| ragStatus | string | RED, AMBER or GREEN. |
| level | string | EMPTY, LOW, or OK. |
| errors | array of strings | Empty if there are no errors. |
| warnings | array of strings | Empty if there are no warnings. |