-
Notifications
You must be signed in to change notification settings - Fork 1
/
printers-config.js
132 lines (127 loc) · 3.41 KB
/
printers-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
function printerData() {
this.deviceID = [1,3,6,1,2,1,25,3,2,1,3,1];
this.consumableTypes = {
base: [1,3,6,1,2,1,43,11,1,1],
name: 6,
full: 8,
current: 9,
};
this.usageTypes = {
base: [1,3,6,1,4,1,253,8,53,13,2,1],
name: 8,
counter: 6,
};
this.devices = {
'MC332': {
consumableTypes: this.consumableTypes,
consumables: {
'Black Toner Cartridge' : [1,1],
'Cyan Toner Cartridge' : [1,2],
'Magenta Toner Cartridge': [1,3],
'Yellow Toner Cartridge' : [1,4],
'Black Image Drum Unit' : [1,5],
'Cyan Image Drum Unit' : [1,6],
'Magenta Image Drum Unit': [1,7],
'Yellow Image Drum Unit' : [1,8],
'Belt Unit' : [1,9],
'Fuser Unit' : [1,10],
},
usageTypes: {
base: [1,3,6,1,2,1,43,10,2],
counter: 1,
},
counters: {
'Print count': [4,1,1],
// 'Counter211' : [2,1,1],
// 'Counter311' : [3,1,1],
'Print count since startup' : [5,1,1],
// 'Counter611' : [6,1,1],
// 'Counter711' : [7,1,1],
// 'Counter811' : [8,1,1],
},
},
'Officejet Pro 8100 N811a': {
consumableTypes: this.consumableTypes,
consumables: {
'INK Black' : [0,1],
'INK Yellow' : [0,2],
'INK Cyan' : [0,3],
'INK Magenta' : [0,4],
},
usageTypes: {
base: [1,3,6,1,2,1,43,10,2],
counter: 1,
},
counters: {
'MarkerLifeCount': [4,0,1],
'MarkerPowerOnCount': [5,0,1],
},
},
'Xerox WorkCentre 5655 v1 Multifunction System': {
consumableTypes: this.consumableTypes,
consumables: {
'Toner' : [1,1],
'XeroGfx' : [1,2],
'Fuser' : [1,3],
'Waste' : [1,4],
},
usageTypes: this.usageTypes,
counters: {
'Total Impressions': [1,20,1],
'Power On Impressions': [1,20,2],
'Black Printed Impressions': [1,20,7],
'Black Printed Sheets': [1,20,8],
'Black Printed 2 Sided Sheets': [1,20,9],
'Black Printed Large Sheets': [1,20,10],
'Black Large Impressions': [1,20,44],
'Color Stored Image Printed Impressions': [1,20,72],
'Black Stored Image Printed Impressions': [1,20,73],
'Stored Image Printed Impressions': [1,20,74],
'Server Fax Images Sent': [10,20,13],
'Server Fax Impressions': [10,20,14],
'Internet Fax Images Sent': [11,20,13],
'Internet Fax Impressions': [11,20,14],
'Embedded Fax Images Sent': [12,20,13],
'Embedded Fax Impressions': [12,20,14],
'Embedded Fax Sheets': [12,20,15],
'Embedded Fax 2 Sided Sheets': [12,20,16],
'Embedded Fax Large Sheets': [12,20,17],
'Network Scanning Images Sent': [13,20,11],
'E-mail Images Sent': [13,20,12],
'Black Copied Impressions': [14,20,3],
'Black Copied Sheets': [14,20,4],
'Black Copied 2 Sided Sheets': [14,20,5],
'Black Copied Large Sheets': [14,20,6],
}
},
'Samsung CLP-310 Series': {
consumableTypes: this.consumableTypes,
consumables: {
'TONER Cyan' : [1,1],
'TONER Magenta': [1,2],
'TONER Yellow' : [1,3],
'TONER Black' : [1,4],
'Fuser' : [1,5],
'Transfer' : [1,6],
'Pickup' : [1,7],
'Gfx' : [1,8],
'Belt' : [1,9],
},
usageTypes: {
base: [1,3,6,1,2,1,43,10,2],
counter: 1,
},
counters: {
'MarkerLifeCount': [4,1,1],
'MarkerPowerOnCount': [5,1,1],
},
},
};
}
printerData.prototype = {
select: function(device) {
this.device = device;
return this.devices[device];
},
};
module.exports = printerData;