aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2017-08-27 17:18:27 -0500
committerBen Beltran <ben@nsovocal.com>2017-08-27 17:18:27 -0500
commit753ee4ebf0b838d45f31a40834918ef87ae81741 (patch)
tree3ed79350d4f742a59981274141744ddf998e3e21 /config
parenta6b9035958a0e125d291ef1696c94d6a53a3c918 (diff)
Add basic config
Diffstat (limited to 'config')
-rw-r--r--config/config.js7
-rw-r--r--config/example.env0
2 files changed, 7 insertions, 0 deletions
diff --git a/config/config.js b/config/config.js
new file mode 100644
index 0000000..6e56a6a
--- /dev/null
+++ b/config/config.js
@@ -0,0 +1,7 @@
+'use strict';
+
+const Getenv = require('getenv2');
+
+exports.deviceLocation = Getenv('SORTING_HAT_DEVICE_LOCATION', '/dev/tty.MindWaveMobile-SerialPo');
+exports.mappingStrategy = Getenv('SORTING_HAT_MAPPING_STRATEGY', 'tmnt');
+exports.port = Getenv('SORTING_HAT_PORT', 1987, 'int');
diff --git a/config/example.env b/config/example.env
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/config/example.env