-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsettings.js.example
65 lines (50 loc) · 1.82 KB
/
settings.js.example
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
var path = require('path');
module.exports = {
// name of this labdevice server
name: "EndyLab Lab-device Server 1",
devices: [{
// The device (scanner or printer) name
// Used to identify this device on servers with multiple devices
// It is a good idea to include the physical location in this name
// MUST NOT CONTAIN SINGLE QUOTES (')
name: "Dymo LabelWriter 4XL - NW Corner",
// The device identifier
// qlPrinter is likely: /dev/usb/lp0
// dymoPrinter is the printer name as given by `lpstat -p`
// e.g. "DYMO-LabelWriter-4XL-17032419591234"
// webcamScanner is likely: /dev/video0
// keyboardScanner is "vendor_id:product_id" as reported by lsusb
// e.g: "060e:16c1"
device: '/dev/usb/lp0',
// type can be one of:
// 'qlPrinter'
// 'dymoPrinter'
// 'webcamScanner'
// 'keyboardScanner'
type: 'dymoPrinter',
// The print command. Only relevant for printers.
// For the 'qlPrinter' type this should be the path ql570 command,
// or just 'ql570' if the command is in your PATH
// For the 'dymoPrinter' type it is probably safe to leave it at 'lpr'
// Default for qlPrinter: 'ql570'
// Default for dymoPrinter: 'lpr'
cmd: "ql570",
// Only relevant for type: 'qlPrinter'
// The paper type. 'n' for narrow paper or 'w' for wide paper
// Default: 'n'
paperType: 'n'
}],
// The bionet node's host name to which you wish to connect
hostname: "localhost",
port: 4200,
// Enable debug output
debug: false,
// SHA1 hash of hosts public key
hosthash: "sha1-of-hosts-pubkey",
// ssh username
username: "myprinter",
// Path to ssh private key to use for authentication
privkey: path.join(__dirname, 'mykey'),
// How often to check if the server is still there
heartbeatRate: 3000 // in ms
};