Move stop and pause ids into config

This commit is contained in:
Annika Backstrom 2017-04-08 12:46:31 -04:00
parent 4a224de673
commit 41a25e2afc
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,8 @@
{
"port": "80",
"tag_reader": ["./lib/bin/python", "./bin/tag-reader"],
"mpg321": ["/usr/bin/mpg321", "-R", "-"]
"mpg321": ["/usr/bin/mpg321", "-R", "-"],
"stop_id": "abcdef1234",
"pause_id": "567890abcd"
}

View File

@ -57,10 +57,10 @@ var last_tag = null;
var debounce_until = 0;
function lookup(tag, cb) {
if (tag === 'b9506555d9') {
if (tag === config.stop_id) {
return cb('STOP');
}
if (tag === 'aa89665510') {
if (tag === config.pause_id) {
return cb('PAUSE', 2);
}