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. |
| position | number | Current position in meters. Present only when known. |
| speed | number | Current speed in meters per second. Present only when known. |
For Marvin1 printers, an InkStatus object has 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. Present only when known. |
| errors | array of strings | Empty if there are no errors. |
| warnings | array of strings | Empty if there are no warnings. |
For TIJ1 printers, an InkStatus object instead has the following keys:
| Key | Type | Description |
|---|---|---|
| phState | string | Printhead state. |
| crtState | string | Cartridge state. |
| ragStatus | string | RED, AMBER or GREEN. |
| inkLevel | number | Cartridge ink level. Present only when known. |
| inkLow | boolean | Whether the cartridge ink is low. Present only when known. |