Move stop and pause ids into config
This commit is contained in:
parent
4a224de673
commit
41a25e2afc
@ -1,5 +1,8 @@
|
|||||||
{
|
{
|
||||||
"port": "80",
|
"port": "80",
|
||||||
"tag_reader": ["./lib/bin/python", "./bin/tag-reader"],
|
"tag_reader": ["./lib/bin/python", "./bin/tag-reader"],
|
||||||
"mpg321": ["/usr/bin/mpg321", "-R", "-"]
|
"mpg321": ["/usr/bin/mpg321", "-R", "-"],
|
||||||
|
|
||||||
|
"stop_id": "abcdef1234",
|
||||||
|
"pause_id": "567890abcd"
|
||||||
}
|
}
|
||||||
|
@ -57,10 +57,10 @@ var last_tag = null;
|
|||||||
var debounce_until = 0;
|
var debounce_until = 0;
|
||||||
|
|
||||||
function lookup(tag, cb) {
|
function lookup(tag, cb) {
|
||||||
if (tag === 'b9506555d9') {
|
if (tag === config.stop_id) {
|
||||||
return cb('STOP');
|
return cb('STOP');
|
||||||
}
|
}
|
||||||
if (tag === 'aa89665510') {
|
if (tag === config.pause_id) {
|
||||||
return cb('PAUSE', 2);
|
return cb('PAUSE', 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user