-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.js
57 lines (49 loc) · 1.88 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* Copyright reelyActive 2018-2022
* We believe in an open Internet of Things
*/
const Raddec = require('raddec');
// Begin configurable parameters
// -----------------------------
const RADDEC_TARGETS = [
{ protocol: "udp", host: "192.168.1.255", port: "50001" }
];
const DIRACT_PROXIMITY_TARGETS = [
];
const DIRACT_DIGEST_TARGETS = [
];
const ES_NODE = null; // Example: 'http://192.168.1.10:9200'
const IS_UDP_BROADCAST = true;
const LISTEN_TO_REEL = true;
const LISTEN_TO_TCPDUMP = false;
const ENABLE_MIXING = true;
const MIXING_DELAY_MILLISECONDS = 1000;
const RADDEC_FILTER_PARAMETERS = {
acceptedReceiverIdTypes: [ Raddec.identifiers.TYPE_EUI64,
Raddec.identifiers.TYPE_EUI48 ],
minRSSI: -99
};
const INCLUDE_TIMESTAMP = false;
const INCLUDE_PACKETS = true;
const ENABLE_WATCHDOG = true;
const WATCHDOG_INTERVAL_MILLISECONDS = 5000;
const WATCHDOG_LENIENCE_MILLISECONDS = 1000;
const IS_DEBUG_MODE = false;
// ---------------------------
// End configurable parameters
module.exports.raddecTargets = RADDEC_TARGETS;
module.exports.diractProximityTargets = DIRACT_PROXIMITY_TARGETS;
module.exports.diractDigestTargets = DIRACT_DIGEST_TARGETS;
module.exports.esNode = ES_NODE;
module.exports.isUdpBroadcast = IS_UDP_BROADCAST;
module.exports.listenToReel = LISTEN_TO_REEL;
module.exports.listenToTcpdump = LISTEN_TO_TCPDUMP;
module.exports.enableMixing = ENABLE_MIXING;
module.exports.mixingDelayMilliseconds = MIXING_DELAY_MILLISECONDS;
module.exports.raddecFilterParameters = RADDEC_FILTER_PARAMETERS;
module.exports.includeTimestamp = INCLUDE_TIMESTAMP;
module.exports.includePackets = INCLUDE_PACKETS;
module.exports.enableWatchdog = ENABLE_WATCHDOG;
module.exports.watchdogIntervalMilliseconds = WATCHDOG_INTERVAL_MILLISECONDS;
module.exports.watchdogLenienceMilliseconds = WATCHDOG_LENIENCE_MILLISECONDS;
module.exports.isDebugMode = IS_DEBUG_MODE;