From ee0ab663d719fa71b8160b41903252c49eaf9250 Mon Sep 17 00:00:00 2001 From: mattmcw Date: Wed, 3 Aug 2022 09:02:47 -0400 Subject: [PATCH] Complete the alert feature. Have not created pause, but this could be done using the same alert object to prevent code duplication. --- app/js/app.js | 2 + app/lib/alert/index.js | 58 +++++++++++++++++++++++++++++ app/lib/alert/index.js.map | 1 + app/lib/cmd/index.js | 64 ++++++++++++++++++++++---------- app/lib/cmd/index.js.map | 2 +- app/lib/mscript/index.js | 40 +++++++++++++++++--- app/lib/mscript/index.js.map | 2 +- app/lib/sequencer/index.js | 3 +- app/lib/sequencer/index.js.map | 2 +- app/lib/ui/alert.js | 27 ++++++++++++++ app/lib/ui/alert.js.map | 1 + app/main.js | 5 ++- app/package-lock.json | 9 +++++ app/package.json | 1 + app/src/index.js | 2 + app/src/lib/ui/alert.ts | 40 ++++++++++++++++++++ src/alert/index.ts | 68 ++++++++++++++++++++++++++++++++++ src/cmd/index.ts | 67 +++++++++++++++++++++++---------- src/mscript/index.ts | 52 +++++++++++++++++++++++--- src/sequencer/index.ts | 3 +- 20 files changed, 390 insertions(+), 59 deletions(-) create mode 100644 app/lib/alert/index.js create mode 100644 app/lib/alert/index.js.map create mode 100644 app/lib/ui/alert.js create mode 100644 app/lib/ui/alert.js.map create mode 100644 app/src/lib/ui/alert.ts create mode 100644 src/alert/index.ts diff --git a/app/js/app.js b/app/js/app.js index 983c5cd..c014b66 100644 --- a/app/js/app.js +++ b/app/js/app.js @@ -2499,6 +2499,7 @@ const mse = require('./lib/ui/mscript.js'); const capper = require('./lib/ui/capper.js'); const Mscript = require('./lib/mscript'); const { delay } = require('./lib/delay'); +const alertObj = require('./lib/ui/alert.js'); let log; @@ -2527,4 +2528,5 @@ async function init () { cam.init(); seq.init(); capper.init(); + alertObj.init(); }; \ No newline at end of file diff --git a/app/lib/alert/index.js b/app/lib/alert/index.js new file mode 100644 index 0000000..ba185a3 --- /dev/null +++ b/app/lib/alert/index.js @@ -0,0 +1,58 @@ +'use strict'; +Object.defineProperty(exports, "__esModule", { value: true }); +/* class representing alert functionality */ +class Alert { + constructor(ui) { + this.id = 'alert'; + this.cb = null; + this.ui = ui; + this.init(); + } + /** + * + **/ + async init() { + const Log = require('log'); + this.log = await Log({ label: this.id }); + this.ipc = require('electron').ipcMain; + this.listen(); + } + /** + * + **/ + listen() { + this.ipc.on(this.id, this.listener.bind(this)); + } + /** + * + **/ + async listener(event, arg) { + if (this.cb !== null) { + try { + await this.cb(arg.state, arg.id); + } + catch (err) { + this.log.error(err); + } + } + event.returnValue = true; + } + /** + * + **/ + async start(cmd) { + const start = +new Date(); + const msg = (cmd + '').replace('ALERT', '').replace('Alert', '').replace('alert', '').trim(); + this.ui.send(this.id, { msg }); + return new Promise(function (resolve, reject) { + this.cb = function () { + const ms = (+new Date()) - start; + return resolve(ms); + }; + }.bind(this)); + } +} +module.exports = function (ui) { + return new Alert(ui); +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/app/lib/alert/index.js.map b/app/lib/alert/index.js.map new file mode 100644 index 0000000..be739ef --- /dev/null +++ b/app/lib/alert/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/alert/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAIb,4CAA4C;AAE5C,MAAM,KAAK;IAOV,YAAc,EAAQ;QAJd,OAAE,GAAY,OAAO,CAAA;QACrB,OAAE,GAAc,IAAI,CAAA;QAI3B,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;QACZ,IAAI,CAAC,IAAI,EAAE,CAAA;IACZ,CAAC;IAED;;QAEI;IACI,KAAK,CAAC,IAAI;QACjB,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,CAAA;QAC1B,IAAI,CAAC,GAAG,GAAG,MAAM,GAAG,CAAC,EAAE,KAAK,EAAG,IAAI,CAAC,EAAE,EAAE,CAAC,CAAA;QACzC,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,UAAU,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ACF,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACf,CAAC;CACD;AAED,MAAM,CAAC,OAAO,GAAG,UAAU,EAAQ;IAClC,OAAO,IAAI,KAAK,CAAC,EAAE,CAAC,CAAC;AACtB,CAAC,CAAA"} \ No newline at end of file diff --git a/app/lib/cmd/index.js b/app/lib/cmd/index.js index 951e444..db6fa3a 100644 --- a/app/lib/cmd/index.js +++ b/app/lib/cmd/index.js @@ -12,13 +12,14 @@ class Commands { * @param {object} cam Camera 1 * @param {object} light Light source * @param {object} cam2 (optional) Camera 2 - * @param {object} proj2 {optional} Projector 2 + * @param {object} proj2 (optional) Projector 2 **/ - constructor(cfg, proj, cam, light, cam2 = null, proj2 = null, capper = null) { + constructor(cfg, proj, cam, light, alert, cam2 = null, proj2 = null, capper = null) { this.cfg = cfg; this.proj = proj; this.cam = cam; this.light = light; + this.alertObj = alert; if (cam2 !== null) this.cam2 = cam2; if (proj2 !== null) @@ -70,13 +71,14 @@ class Commands { /** * Move the camera one frame forward * - * @param {array} rgb Color to set light for frame + * @param {object} cmd Full cmd object * * @returns {integer} Length of action in ms **/ - async camera_forward(rgb = [255, 255, 255]) { + async camera_forward() { const id = uuid_1.v4(); const off = [0, 0, 0]; + let rgb = [255, 255, 255]; let ms; try { if (!this.cam.state.dir) { @@ -131,13 +133,14 @@ class Commands { /** * Move the camera one frame backward * - * @param {array} rgb Color to set light for frame + * @param {object} cmd Full cmd object * * @returns {integer} Length of action in ms **/ - async camera_backward(rgb = [255, 255, 255]) { + async camera_backward() { const id = uuid_1.v4(); const off = [0, 0, 0]; + let rgb = [255, 255, 255]; let ms; try { if (this.cam.state.dir) { @@ -191,13 +194,14 @@ class Commands { /** * Move the second camera one frame forward * - * @param {array} rgb Color to set light for frame + * @param {object} cmd Full cmd object * * @returns {integer} Length of action in ms **/ - async camera_second_forward(rgb = [255, 255, 255]) { + async camera_second_forward() { const id = uuid_1.v4(); const off = [0, 0, 0]; + let rgb = [255, 255, 255]; let ms; try { if (!this.cam2.state.dir) { @@ -219,13 +223,14 @@ class Commands { /** * Move the second camera one frame backward * - * @param {array} rgb Color to set light for frame + * @param {object} cmd Full cmd object * * @returns {integer} Length of action in ms **/ - async camera_second_backward(rgb = [255, 255, 255]) { + async camera_second_backward() { const id = uuid_1.v4(); const off = [0, 0, 0]; + let rgb = [255, 255, 255]; let ms; try { if (this.cam2.state.dir) { @@ -247,13 +252,14 @@ class Commands { /** * Move the both cameras one frame forward * - * @param {array} rgb Color to set light for frame + * @param {object} cmd Full cmd object * * @returns {integer} Length of action in ms **/ - async cameras_forward(rgb = [255, 255, 255]) { + async cameras_forward() { const id = uuid_1.v4(); const off = [0, 0, 0]; + let rgb = [255, 255, 255]; let both; let ms; try { @@ -288,13 +294,14 @@ class Commands { /** * Move the both cameras one frame backward * - * @param {array} rgb Color to set light for frame + * @param {object} cmd Full cmd object * * @returns {integer} Length of action in ms **/ - async cameras_backward(rgb = [255, 255, 255]) { + async cameras_backward() { const id = uuid_1.v4(); const off = [0, 0, 0]; + let rgb = [255, 255, 255]; let both; let ms; try { @@ -329,13 +336,14 @@ class Commands { /** * Move first camera one frame forward and rewind secondary camera one frame backward * - * @param {array} rgb Color to set light for frames + * @param {object} cmd Full cmd object * * @returns {integer} Length of action in ms **/ - async camera_forward_camera_second_backward(rgb = [255, 255, 255]) { + async camera_forward_camera_second_backward() { const id = uuid_1.v4(); const off = [0, 0, 0]; + let rgb = [255, 255, 255]; let both; let ms; try { @@ -370,13 +378,14 @@ class Commands { /** * Rewind first camera one frame backward and move secondary camera one frame forward * - * @param {array} rgb Color to set light for frame + * @param {object} cmd Full cmd object * * @returns {integer} Length of action in ms **/ - async camera_backward_camera_second_forward(rgb = [255, 255, 255]) { + async camera_backward_camera_second_forward() { const id = uuid_1.v4(); const off = [0, 0, 0]; + let rgb = [255, 255, 255]; let both; let ms; try { @@ -585,8 +594,23 @@ class Commands { } return ms; } + /** + * Throws an alert to pause a sequence + * + * @returns {integer} Length of action in ms + **/ + async alert(cmd) { + let ms; + try { + ms = await this.alertObj.start(cmd.light); //change this meta + } + catch (err) { + throw err; + } + return ms; + } } -module.exports = function (cfg, proj, cam, light, cam2, proj2, capper) { - return new Commands(cfg, proj, cam, light, cam2, proj2, capper); +module.exports = function (cfg, proj, cam, light, alert, cam2, proj2, capper) { + return new Commands(cfg, proj, cam, light, alert, cam2, proj2, capper); }; //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/app/lib/cmd/index.js.map b/app/lib/cmd/index.js.map index 7205729..b8797fd 100644 --- a/app/lib/cmd/index.js.map +++ b/app/lib/cmd/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cmd/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,+BAAkC;AAClC,iCAA8B;AAE9B,MAAM,QAAQ;IAab;;;;;;;;;;QAUI;IAEJ,YAAa,GAAS,EAAE,IAAU,EAAE,GAAS,EAAE,KAAW,EAAE,OAAa,IAAI,EAAE,QAAc,IAAI,EAAE,SAAe,IAAI;QACrH,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,IAAI,IAAI,KAAK,IAAI;YAAE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACpC,IAAI,KAAK,KAAK,IAAI;YAAE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACvC,IAAI,MAAM,KAAK,IAAI;YAAE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAE1C,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC;IACxC,CAAC;IAED;;;;QAII;IACG,KAAK,CAAC,iBAAiB;QAC7B,IAAI,EAAW,CAAC;QAChB,IAAI;YACH,IAAI,CAAC,IAAI,CA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AW,EAAE,MAAY;IAC3H,OAAO,IAAI,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AACxE,CAAC,CAAA"} \ No newline at end of file diff --git a/app/lib/mscript/index.js b/app/lib/mscript/index.js index daf4dbd..eebb801 100644 --- a/app/lib/mscript/index.js +++ b/app/lib/mscript/index.js @@ -7,8 +7,22 @@ const CMD = [ 'BF', 'CB', 'PB', - 'BB' + 'BB', + 'C2F', + 'C2B', + 'CCF', + 'CCB', + 'P2F', + 'P2B', + 'PPF', + 'PPB' ]; +/* + 'CFCB', + 'CBCF', + 'PFPB', + 'PBPF' +*/ const ALTS = { 'CF': ['CAMERA FORWARD', 'CAM FORWARD'], 'PF': ['PROJECTOR FORWARD', 'PROJ FORWARD'], @@ -17,8 +31,22 @@ const ALTS = { 'PB': ['PROJECTOR FORWARD', 'PROJ FORWARD', 'PROJECTOR BACK', 'PROJ BACK'], 'BB': ['BLACK BACKWARD', 'BLACK BACK', 'BLANK BACK'], 'L ': ['LIGHT', 'COLOR', 'LAMP'], - 'F ': ['FADE'] + 'F ': ['FADE'], + 'C2F': ['CAMERA2 FORWARD', 'CAM2 FORWARD'], + 'C2B': ['CAMERA2 BACKWARD', 'CAM2 BACKWARD', 'CAMERA2 BACK', 'CAM2 BACK'], + 'CCF': ['CAMERAS FORWARD', 'CAMS FORWARD'], + 'CCB': ['CAMERAS BACKWARD', 'CAMS BACKWARD', 'CAMERAS BACK', 'CAMS BACK'], + 'P2F': ['PROJECTOR2 FORWARD', 'PROJ2 FORWARD'], + 'P2B': ['PROJECTOR2 BACKWARD', 'PROJ2 BACKWARD', 'PROJECTOR2 BACK', 'PROJ2 BACK'], + 'PPF': ['PROJECTORS FORWARD', 'PROJS FORWARD'], + 'PPB': ['PROJECTORS BACKWARD', 'PROJS BACKWARD', 'PROJECTORS BACK', 'PROJS BACK'], }; +/* + 'CFCB' : [ ], + 'CBCF' : [ ], + 'PFPB' : [ ], + 'PBPF' : [ ] +*/ const PAUSE = 'PAUSE'; const ALERT = 'ALERT'; /** helper functions */ @@ -56,7 +84,9 @@ class Mscript { clear() { this.lines = []; this.cam = 0; + this.cam2 = 0; this.proj = 0; + this.proj2 = 0; this.color = ''; this.loops = []; this.rec = -1; @@ -654,7 +684,7 @@ class Mscript { .push(lenStr); } else { - this.arr.push('AL'); + this.arr.push('PA'); this.meta.push(lenStr); } } @@ -671,11 +701,11 @@ class Mscript { this.loops[this.rec].arr .push('AL'); this.loops[this.rec].meta - .push(msg); + .push(line); } else { this.arr.push('AL'); - this.meta.push(msg); + this.meta.push(line); } } /** diff --git a/app/lib/mscript/index.js.map b/app/lib/mscript/index.js.map index ea5ec61..2d3d46a 100644 --- a/app/lib/mscript/index.js.map +++ b/app/lib/mscript/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mscript/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AASb,MAAM,KAAK,GAAG,OAAO,CAAC;AACtB,MAAM,KAAK,GAAG,aAAa,CAAC;AAC5B,MAAM,GAAG,GAAG;IACX,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;CACJ,CAAC;AACF,MAAM,IAAI,GAAG;IACZ,IAAI,EAAG,CAAC,gBAAgB,EAAE,aAAa,CAAC;IACxC,IAAI,EAAG,CAAC,mBAAmB,EAAE,cAAc,CAAC;IAC5C,IAAI,EAAG,CAAC,eAAe,EAAE,OAAO,EAAE,eAAe,EAAE,OAAO,CAAC;IAC3D,IAAI,EAAG,CAAC,iBAAiB,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU,CAAC;IACrE,IAAI,EAAG,CAAC,mBAAmB,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,CAAC;IAC3E,IAAI,EAAG,CAAC,gBAAgB,EAAE,YAAY,EAAE,YAAY,CAAC;IACr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CAAC,CAAC;SACf;aAAM;YACN,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACpB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACvB;IACD,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAE,IAAa;QACnB,IAAI,GAAG,GAAY,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;QAC3C,GAAG,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;QACjB,IAAI,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE;YACrB,wCAAwC;YACxC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG;iBACtB,IAAI,CAAC,IAAI,CAAC,CAAC;YACb,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI;iBACvB,IAAI,CAAC,GAAG,CAAC,CAAC;SACZ;aAAM;YACN,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACpB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACpB;IACD,CAAC;IAEF;;;;OAIG;IACH,IAAI,CAAE,GAAY;QACjB,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;IACtB,CAAC;CACD;AAED,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mscript/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AASb,MAAM,KAAK,GAAG,OAAO,CAAC;AACtB,MAAM,KAAK,GAAG,aAAa,CAAC;AAC5B,MAAM,GAAG,GAAG;IACX,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KA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IACD,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAE,IAAa;QACnB,IAAI,GAAG,GAAY,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;QAC3C,GAAG,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;QACjB,IAAI,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE;YACrB,wCAAwC;YACxC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG;iBACtB,IAAI,CAAC,IAAI,CAAC,CAAC;YACb,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI;iBACvB,IAAI,CAAC,IAAI,CAAC,CAAC;SACb;aAAM;YACN,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACpB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACrB;IACD,CAAC;IAEF;;;;OAIG;IACH,IAAI,CAAE,GAAY;QACjB,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;IACtB,CAAC;CACD;AAED,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC"} \ No newline at end of file diff --git a/app/lib/sequencer/index.js b/app/lib/sequencer/index.js index a742f34..443f866 100644 --- a/app/lib/sequencer/index.js +++ b/app/lib/sequencer/index.js @@ -230,8 +230,7 @@ class Sequencer { const cmdOriginal = this.arr[x].cmd; const cmd = this.CMDS[cmdOriginal]; this.log.info(`CMD: '${cmdOriginal}' -> ${cmd}`); - //I wrote this when I was very tired and delirious - return await this.cmd[cmd](); + return await this.cmd[cmd](this.arr[x]); } } module.exports = function (cfg, cmd, ui) { diff --git a/app/lib/sequencer/index.js.map b/app/lib/sequencer/index.js.map index 08bcbc7..d6935bb 100644 --- a/app/lib/sequencer/index.js.map +++ b/app/lib/sequencer/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","s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QAAC,OAAO,GAAG,EAAE;YACb,MAAM,GAAG,CAAC;SACV;IACF,CAAC;IAED;;;;QAII;IACI,KAAK,CAAC,OAAO,CAAE,CAAU;QAChC,MAAM,WAAW,GAAY,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;QAC7C,MAAM,GAAG,GAAY,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC5C,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,WAAW,QAAQ,GAAG,EAAE,CAAC,CAAC;QACjD,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACzC,CAAC;CACD;AAED,MAAM,CAAC,OAAO,GAAG,UAAU,GAAS,EAAE,GAAS,EAAE,EAAQ;IACxD,OAAO,IAAI,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;AACpC,CAAC,CAAA"} \ No newline at end of file diff --git a/app/lib/ui/alert.js b/app/lib/ui/alert.js new file mode 100644 index 0000000..35ce560 --- /dev/null +++ b/app/lib/ui/alert.js @@ -0,0 +1,27 @@ +'use strict'; +let alertObj; +class Alert { + constructor() { + this.id = 'alert'; + } + init() { + this.listen(); + } + start(msg) { + alert(msg); + this.end(); + } + end() { + const obj = {}; + ipcRenderer.sendSync(this.id, obj); + } + listen() { + ipcRenderer.on(this.id, (function (event, arg) { + this.start(arg.msg); + }).bind(this)); + } + ; +} +alertObj = new Alert(); +module.exports = alertObj; +//# sourceMappingURL=alert.js.map \ No newline at end of file diff --git a/app/lib/ui/alert.js.map b/app/lib/ui/alert.js.map new file mode 100644 index 0000000..91eb38c --- /dev/null +++ b/app/lib/ui/alert.js.map @@ -0,0 +1 @@ +{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../src/lib/ui/alert.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAOb,IAAI,QAAgB,CAAC;AAErB,MAAM,KAAK;IAGV;QAFA,OAAE,GAAY,OAAO,CAAC;IAGtB,CAAC;IAEM,IAAI;QACV,IAAI,CAAC,MAAM,EAAE,CAAC;IACf,CAAC;IAEM,KAAK,CAAE,GAAY;QACzB,KAAK,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,GAAG,EAAE,CAAC;IACZ,CAAC;IAEO,GAAG;QACV,MAAM,GAAG,GAAS,EAAE,CAAC;QAErB,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;IACpC,CAAC;IAEO,MAAM;QACb,WAAW,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,UAAU,KAAa,EAAE,GAAS;YAC1D,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACrB,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IAChB,CAAC;IAAA,CAAC;CAEF;AAED,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;AACvB,MAAM,CAAC,OAAO,GAAG,QAAQ,CAAC"} \ No newline at end of file diff --git a/app/main.js b/app/main.js index 52909cf..e08be3c 100644 --- a/app/main.js +++ b/app/main.js @@ -38,6 +38,7 @@ let dev; let cmd; let seq; let capper; +let alert; const cfg = require('./data/cfg.json') @@ -119,6 +120,7 @@ var init = async function () { filmout = require('filmout')(display, ffmpeg, ffprobe, mainWindow.webContents, light) cam = require('cam')(arduino, cfg, mainWindow.webContents, filmout) proj = require('proj')(arduino, cfg, mainWindow.webContents, filmout) + alert = require('alert')(mainWindow.webContents) if (dev && dev.connected && dev.connected.camera_second) { cam2 = require('cam')(arduino, cfg, mainWindow.webContents, filmout, true) @@ -131,8 +133,9 @@ var init = async function () { capper = require('capper')(arduino, cfg, mainWindow.webContents, filmout, true) } - cmd = require('cmd')(cfg, proj, cam, light, cam2, proj2, capper) + cmd = require('cmd')(cfg, proj, cam, light, alert, cam2, proj2, capper) seq = require('sequencer')(cfg, cmd, mainWindow.webContents) + } app.on('ready', init) diff --git a/app/package-lock.json b/app/package-lock.json index 2fff654..9b54d92 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -11,6 +11,7 @@ "license": "MIT", "dependencies": { "@electron/remote": "^2.0.8", + "alert": "file:lib/alert", "animated-gif-detector": "^1.2.0", "arduino": "file:lib/arduino", "cam": "file:lib/cam", @@ -68,6 +69,7 @@ "electron-installer-debian": "^3.1.0" } }, + "lib/alert": {}, "lib/arduino": { "version": "1.0.0", "license": "ISC" @@ -1189,6 +1191,10 @@ "uri-js": "^4.2.2" } }, + "node_modules/alert": { + "resolved": "lib/alert", + "link": true + }, "node_modules/animated-gif-detector": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/animated-gif-detector/-/animated-gif-detector-1.2.0.tgz", @@ -12256,6 +12262,9 @@ "uri-js": "^4.2.2" } }, + "alert": { + "version": "file:lib/alert" + }, "animated-gif-detector": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/animated-gif-detector/-/animated-gif-detector-1.2.0.tgz", diff --git a/app/package.json b/app/package.json index fe3a5f3..e1da19f 100644 --- a/app/package.json +++ b/app/package.json @@ -51,6 +51,7 @@ }, "dependencies": { "@electron/remote": "^2.0.8", + "alert" : "file:lib/alert", "animated-gif-detector": "^1.2.0", "arduino": "file:lib/arduino", "cam": "file:lib/cam", diff --git a/app/src/index.js b/app/src/index.js index a3e96ec..d4e58af 100644 --- a/app/src/index.js +++ b/app/src/index.js @@ -25,6 +25,7 @@ const mse = require('./lib/ui/mscript.js'); const capper = require('./lib/ui/capper.js'); const Mscript = require('./lib/mscript'); const { delay } = require('./lib/delay'); +const alertObj = require('./lib/ui/alert.js'); let log; @@ -53,4 +54,5 @@ async function init () { cam.init(); seq.init(); capper.init(); + alertObj.init(); }; \ No newline at end of file diff --git a/app/src/lib/ui/alert.ts b/app/src/lib/ui/alert.ts new file mode 100644 index 0000000..1d559cd --- /dev/null +++ b/app/src/lib/ui/alert.ts @@ -0,0 +1,40 @@ +'use strict'; + +/// + +declare var uuid : any; +declare var ipcRenderer : any; + +let alertObj : Alert; + +class Alert { + id : string = 'alert'; + + constructor () { + } + + public init () { + this.listen(); + } + + public start (msg : string) { + alert(msg); + this.end(); + } + + private end () { + const obj : any = {}; + + ipcRenderer.sendSync(this.id, obj); + } + + private listen () { + ipcRenderer.on(this.id, (function (event : Event, arg : any) { + this.start(arg.msg); + }).bind(this)); + }; + +} + +alertObj = new Alert(); +module.exports = alertObj; \ No newline at end of file diff --git a/src/alert/index.ts b/src/alert/index.ts new file mode 100644 index 0000000..082ceef --- /dev/null +++ b/src/alert/index.ts @@ -0,0 +1,68 @@ +'use strict'; + +import { delay } from 'delay' + +/* class representing alert functionality */ + +class Alert { + private ipc : any + private log : any + private id : string = 'alert' + private cb : Function = null + private ui : any + + constructor ( ui : any) { + this.ui = ui + this.init() + } + + /** + * + **/ + private async init () { + const Log = require('log') + this.log = await Log({ label : this.id }) + this.ipc = require('electron').ipcMain + this.listen() + } + + /** + * + **/ + private listen () { + this.ipc.on(this.id, this.listener.bind(this)) + } + + /** + * + **/ + private async listener (event : any, arg : any) { + if (this.cb !== null) { + try { + await this.cb(arg.state, arg.id) + } catch (err) { + this.log.error(err) + } + } + event.returnValue = true + } + + /** + * + **/ + public async start (cmd : string) { + const start = +new Date(); + const msg : string = (cmd + '').replace('ALERT', '').replace('Alert', '').replace('alert', '').trim() + this.ui.send(this.id, { msg }) + return new Promise(function (resolve : Function, reject : Function) { + this.cb = function () { + const ms = (+new Date()) - start; + return resolve(ms); + } + }.bind(this)); + } +} + +module.exports = function (ui : any) { + return new Alert(ui); +} \ No newline at end of file diff --git a/src/cmd/index.ts b/src/cmd/index.ts index ce6c30e..5fd5962 100644 --- a/src/cmd/index.ts +++ b/src/cmd/index.ts @@ -13,6 +13,8 @@ class Commands { private capper : any; + private alertObj : any; + private cfg : any; private ipc : any; @@ -25,14 +27,15 @@ class Commands { * @param {object} cam Camera 1 * @param {object} light Light source * @param {object} cam2 (optional) Camera 2 - * @param {object} proj2 {optional} Projector 2 + * @param {object} proj2 (optional) Projector 2 **/ - constructor (cfg : any, proj : any, cam : any, light : any, cam2 : any = null, proj2 : any = null, capper : any = null) { + constructor (cfg : any, proj : any, cam : any, light : any, alert : any, cam2 : any = null, proj2 : any = null, capper : any = null) { this.cfg = cfg; this.proj = proj; this.cam = cam; this.light = light; + this.alertObj = alert; if (cam2 !== null) this.cam2 = cam2; if (proj2 !== null) this.proj2 = proj2; @@ -82,13 +85,14 @@ class Commands { /** * Move the camera one frame forward * - * @param {array} rgb Color to set light for frame + * @param {object} cmd Full cmd object * * @returns {integer} Length of action in ms **/ - public async camera_forward (rgb : number[] = [255, 255, 255]) { + public async camera_forward () { const id : string = uuid(); const off : number[] = [0, 0, 0]; + let rgb : number[] = [255, 255, 255]; let ms : number; try { if (!this.cam.state.dir) { @@ -141,13 +145,14 @@ class Commands { /** * Move the camera one frame backward * - * @param {array} rgb Color to set light for frame + * @param {object} cmd Full cmd object * * @returns {integer} Length of action in ms **/ - public async camera_backward (rgb : number[] = [255, 255, 255]) { + public async camera_backward () { const id : string = uuid(); const off : number[] = [0, 0, 0]; + let rgb : number[] = [255, 255, 255]; let ms : number; try { if (this.cam.state.dir) { @@ -200,13 +205,14 @@ class Commands { /** * Move the second camera one frame forward * - * @param {array} rgb Color to set light for frame + * @param {object} cmd Full cmd object * * @returns {integer} Length of action in ms **/ - public async camera_second_forward (rgb : number[] = [255, 255, 255]) { + public async camera_second_forward () { const id : string = uuid(); const off : number[] = [0, 0, 0]; + let rgb : number[] = [255, 255, 255]; let ms : number; try { if (!this.cam2.state.dir) { @@ -228,13 +234,14 @@ class Commands { /** * Move the second camera one frame backward * - * @param {array} rgb Color to set light for frame + * @param {object} cmd Full cmd object * * @returns {integer} Length of action in ms **/ - public async camera_second_backward (rgb : number[] = [255, 255, 255]) { + public async camera_second_backward () { const id : string = uuid(); const off : number[] = [0, 0, 0]; + let rgb : number[] = [255, 255, 255]; let ms : number; try { if (this.cam2.state.dir) { @@ -257,13 +264,14 @@ class Commands { /** * Move the both cameras one frame forward * - * @param {array} rgb Color to set light for frame + * @param {object} cmd Full cmd object * * @returns {integer} Length of action in ms **/ - public async cameras_forward (rgb : number[] = [255, 255, 255]) { + public async cameras_forward () { const id : string = uuid(); const off : number[] = [0, 0, 0]; + let rgb : number[] = [255, 255, 255]; let both : number[]; let ms : number; try { @@ -298,13 +306,14 @@ class Commands { /** * Move the both cameras one frame backward * - * @param {array} rgb Color to set light for frame + * @param {object} cmd Full cmd object * * @returns {integer} Length of action in ms **/ - public async cameras_backward (rgb : number[] = [255, 255, 255]) { + public async cameras_backward () { const id : string = uuid(); const off : number[] = [0, 0, 0]; + let rgb : number[] = [255, 255, 255]; let both : number[]; let ms : number; try { @@ -340,13 +349,14 @@ class Commands { /** * Move first camera one frame forward and rewind secondary camera one frame backward * - * @param {array} rgb Color to set light for frames + * @param {object} cmd Full cmd object * * @returns {integer} Length of action in ms **/ - public async camera_forward_camera_second_backward (rgb : number[] = [255, 255, 255]) { + public async camera_forward_camera_second_backward () { const id : string = uuid(); const off : number[] = [0, 0, 0]; + let rgb : number[] = [255, 255, 255]; let both : number[]; let ms : number; try { @@ -381,13 +391,14 @@ class Commands { /** * Rewind first camera one frame backward and move secondary camera one frame forward * - * @param {array} rgb Color to set light for frame + * @param {object} cmd Full cmd object * * @returns {integer} Length of action in ms **/ - public async camera_backward_camera_second_forward (rgb : number[] = [255, 255, 255]) { + public async camera_backward_camera_second_forward () { const id : string = uuid(); const off : number[] = [0, 0, 0]; + let rgb : number[] = [255, 255, 255]; let both : number[]; let ms : number; try { @@ -589,8 +600,24 @@ class Commands { } return ms; } + + /** + * Throws an alert to pause a sequence + * + * @returns {integer} Length of action in ms + **/ + + public async alert (cmd : any) { + let ms : number; + try { + ms = await this.alertObj.start(cmd.light); //change this meta + } catch (err) { + throw err; + } + return ms; + } } -module.exports = function (cfg : any, proj : any, cam : any, light : any, cam2 : any, proj2 : any, capper : any) { - return new Commands(cfg, proj, cam, light, cam2, proj2, capper); +module.exports = function (cfg : any, proj : any, cam : any, light : any, alert : any, cam2 : any, proj2 : any, capper : any) { + return new Commands(cfg, proj, cam, light, alert, cam2, proj2, capper); } \ No newline at end of file diff --git a/src/mscript/index.ts b/src/mscript/index.ts index 618208f..8f99f75 100644 --- a/src/mscript/index.ts +++ b/src/mscript/index.ts @@ -15,8 +15,23 @@ const CMD = [ 'BF', 'CB', 'PB', - 'BB' + 'BB', + 'C2F', + 'C2B', + 'CCF', + 'CCB', + 'P2F', + 'P2B', + 'PPF', + 'PPB' ]; +/* + 'CFCB', + 'CBCF', + 'PFPB', + 'PBPF' +*/ + const ALTS = { 'CF' : ['CAMERA FORWARD', 'CAM FORWARD'], 'PF' : ['PROJECTOR FORWARD', 'PROJ FORWARD'], @@ -25,9 +40,22 @@ const ALTS = { 'PB' : ['PROJECTOR FORWARD', 'PROJ FORWARD', 'PROJECTOR BACK', 'PROJ BACK'], 'BB' : ['BLACK BACKWARD', 'BLACK BACK', 'BLANK BACK'], 'L ' : ['LIGHT', 'COLOR', 'LAMP'], - 'F ' : ['FADE'] + 'F ' : ['FADE'], + 'C2F' : ['CAMERA2 FORWARD', 'CAM2 FORWARD'], + 'C2B' : ['CAMERA2 BACKWARD', 'CAM2 BACKWARD', 'CAMERA2 BACK', 'CAM2 BACK'], + 'CCF' : ['CAMERAS FORWARD', 'CAMS FORWARD'], + 'CCB' : ['CAMERAS BACKWARD', 'CAMS BACKWARD', 'CAMERAS BACK', 'CAMS BACK'], + 'P2F' : ['PROJECTOR2 FORWARD', 'PROJ2 FORWARD'], + 'P2B' : ['PROJECTOR2 BACKWARD', 'PROJ2 BACKWARD', 'PROJECTOR2 BACK', 'PROJ2 BACK'], + 'PPF' : ['PROJECTORS FORWARD', 'PROJS FORWARD'], + 'PPB' : ['PROJECTORS BACKWARD', 'PROJS BACKWARD', 'PROJECTORS BACK', 'PROJS BACK'], }; - +/* + 'CFCB' : [ ], + 'CBCF' : [ ], + 'PFPB' : [ ], + 'PBPF' : [ ] +*/ const PAUSE = 'PAUSE'; const ALERT = 'ALERT'; @@ -57,7 +85,9 @@ class Mscript { output : any; lines : any[]; cam : number; + cam2 : number; proj : number; + proj2 : number; color : string; loops : any[]; rec : number; @@ -83,7 +113,9 @@ class Mscript { this.lines = []; this.cam = 0; + this.cam2 = 0; this.proj = 0; + this.proj2 = 0; this.color = ''; this.loops = []; this.rec = -1; @@ -667,7 +699,7 @@ class Mscript { this.loops[this.rec].meta .push(lenStr); } else { - this.arr.push('AL'); + this.arr.push('PA'); this.meta.push(lenStr); } } @@ -685,10 +717,10 @@ class Mscript { this.loops[this.rec].arr .push('AL'); this.loops[this.rec].meta - .push(msg); + .push(line); } else { this.arr.push('AL'); - this.meta.push(msg); + this.meta.push(line); } } @@ -727,6 +759,14 @@ BF - Black forwards CB - Camera backwards PB - Projector backwards BB - Black backwards +C2F - Camera 2 forwards +C2B - Camera 2 backwards +CCF - Both cameras forwards +CCB - Both cameras backwards +P2F - Projector 2 forwards +P2B - Projector 2 backwards +PPF - Both projectors forwards +PPB - Both projectors backwards ALERT {MESSAGE} - Stop the sequence and requiure user interaction to complete PAUSE # - Pause the sequence for a # of seconds diff --git a/src/sequencer/index.ts b/src/sequencer/index.ts index 868824c..c5fcf05 100644 --- a/src/sequencer/index.ts +++ b/src/sequencer/index.ts @@ -266,8 +266,7 @@ class Sequencer { const cmdOriginal : string = this.arr[x].cmd; const cmd : string = this.CMDS[cmdOriginal]; this.log.info(`CMD: '${cmdOriginal}' -> ${cmd}`); - //I wrote this when I was very tired and delirious - return await this.cmd[cmd](); + return await this.cmd[cmd](this.arr[x]); } }