-
Notifications
You must be signed in to change notification settings - Fork 46
/
config.js
39 lines (30 loc) · 1.4 KB
/
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
require('dotenv').config();
//.load({silent: true});
const path = require('path');
var config = {};
config.webPort = process.env.WEB_PORT || 8000;
config.IP = process.env.IP || '0.0.0.0';
config.serverVersion = '4.1.000';
config.apiVersion = '4.0.8';
config.verboseLevel = process.env.VERBOSE_LEVEL || 1;
config.logLevel = process.env.LOG_LEVEL || 0;
config.resetOnConnect = process.env.RESET_ON_CONNECT || 1;
config.mpgType = process.env.MPG_TYPE || 0;
config.socketMaxDataSize = process.env.SOCKET_MAX_DATA_SIZE || 100000000;
config.socketCorsOrigin = process.env.SOCKET_CORS_ORIGIN || '*';
config.socketPingTimeout = process.env.SOCKET_PING_TIMEOUT || 20000;
config.socketPingInterval = process.env.SOCKET_PING_INTERVAL || 25000;
config.posDecimals = process.env.DRO_DECIMALS || 2;
config.firmwareWaitTime = process.env.FIRMWARE_WAIT_TIME || 10;
config.grblWaitTime = process.env.GRBL_WAIT_TIME || 1;
config.smoothieWaitTime = process.env.SMOOTHIE_WAIT_TIME || 1;
config.tinygWaitTime = process.env.TINYG_WAIT_TIME || 1;
config.grblBufferSize = process.env.GRBL_BUFFER_SIZE || 128;
config.smoothieBufferSize = process.env.SMOOTHIE_BUFFER_SIZE || 64;
config.tinygBufferSize = process.env.TINYG_BUFFER_SIZE || 24;
config.reprapBufferSize = process.env.REPRAP_BUFFER_SIZE || 2;
config.jobOnStart = '';
config.jobOnFinish = '';
config.jobOnAbort = '';
config.uipath = path.join(__dirname, '/app')
module.exports = config;