From 753ee4ebf0b838d45f31a40834918ef87ae81741 Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Sun, 27 Aug 2017 17:18:27 -0500 Subject: Add basic config --- config/config.js | 7 +++++++ config/example.env | 0 2 files changed, 7 insertions(+) create mode 100644 config/config.js create mode 100644 config/example.env (limited to 'config') 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 -- cgit