This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.js
78 lines (62 loc) · 1.9 KB
/
default.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
/**
* @fileoverview Production Cloud CNC Controller Config
* This config file uses sain defaults
*/
//Export
module.exports = {
//Settings for this controller
controller: {
//Controller ID (Generated by the GUI)
_id: '',
//Controller key directory (Generated by the GUI)
key: './config/key.txt',
//Logging settings
logger: {
//Logging directory (Only used when mode = file)
directory: './logs/',
//Logging mode (file = log to file, console = log to console, silent = don't log)
mode: 'file'
},
//Auto-reconnect settings
reconnect: {
//Serialport settings
serial: {
//Delay between detecting a disconnect and attempting to reconnect
delay: 3000,
//Maximum number of attempts to reconnect
maximumAttempts: 10,
//After reaching the maximum reconnect attempts, run the specified failsafe command for every machine
failSafe: true
},
//Socket settings (The link between the core and this controller)
socket: {
//Delay between detecting a disconnect and attempting to reconnect
delay: 3000,
//Maximum number of attempts to reconnect
maximumAttempts: 10
}
}
},
//Settings for connecting to the core
core: {
//TLS certificate (Used for trusting self signed certificates) (PEM encoded)
cert: '',
//Self signed (Trust self signed certificates installed on the core server)
selfSigned: false,
//Websocket URL of core server (With URI scheme)
url: ''
},
//List of machines this controller should control
machines: [
{
//The ID of the machine (Found on the website)
_id: '',
//The command to execute if this controller cannot contact the core
failsafe: 'M112\n',
//The serial path or os-specific ID
path: '',
//The serial connection baud rate
baudRate: 0
}
]
};