add cue list filter

This commit is contained in:
sparks-alec
2024-10-28 05:41:37 -04:00
parent 9b4a3bfaba
commit 5bf747d24a
2 changed files with 17 additions and 0 deletions
+15
View File
@@ -18,6 +18,19 @@ exports.config = {
return msg.toString().includes('/eos/out');
},
},
fields: [
{
key: 'cueListFilter',
label: 'Q List',
type: 'numberinput',
value: '',
action(_device) {
const device = _device;
device.data.cueListFilter = device.fields.cueListFilter;
device.draw();
},
},
],
};
exports.ready = function ready(_device) {
@@ -26,6 +39,8 @@ exports.ready = function ready(_device) {
device.templates = {
cue: _.template(fs.readFileSync(path.join(__dirname, `cue.ejs`))),
};
device.data.cueListFilter = device.fields.cueListFilter;
device.send('/eos/get/cuelist/count');
device.send('/eos/get/version');
device.send('/eos/subscribe', [{ type: 'i', value: 1 }]);