diff options
| author | Ben Beltran <ben@nsovocal.com> | 2017-08-28 21:39:47 -0500 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2017-08-28 21:39:47 -0500 |
| commit | a528f2722d6da159bf8b377c10f7a76ba12e6c42 (patch) | |
| tree | 373f1e50d6234883c55a5a4da67e4c7bd3e661ce /config | |
| parent | a6b9035958a0e125d291ef1696c94d6a53a3c918 (diff) | |
| parent | 908fa0790aa15c58e95dbfa4e3fefc25d32d321e (diff) | |
Merge branch 'release/1.0.0'
Diffstat (limited to 'config')
| -rw-r--r-- | config/config.js | 7 | ||||
| -rw-r--r-- | config/example.env | 3 |
2 files changed, 10 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..c71263a --- /dev/null +++ b/config/example.env @@ -0,0 +1,3 @@ +SORTING_HAT_DEVICE_LOCATION=/dev/tty.MindWaveMobile-SerialPo +SORTING_HAT_MAPPING_STRATEGY=tmnt +SORTING_HAT_PORT=1987 |