Skip to content

Example of a Printer's Database Object


Example - database object containing a printer

{
  "_id": "printer1",
  "config": {
    "printer": "printer1",
    "connection": "socket://printer1:9100",
    "server": "spooler1",
    "webUrl": "http://printer1",
    "template": {
      "bos": [
        {
          "name": "Test",
          "context": "startJob",
          "rules": [
            {
              "condition": true,
              "action": "nochn test\n"
            }
          ]
        }
      ]
    },
    "TALLY_FILTER": "tally2pcl_lex",
    "connectionHostname": "printer1"
  },
  "runtime": {
    "status": "idle",
    "currentPrintingJob": "",
    "lastPrintedJobTime": 0,
    "queuedJobs": 0
  }
}

Back to top