From 142c990a0e6f16d08b041442f7b23f0819354276 Mon Sep 17 00:00:00 2001 From: mattmcw Date: Sat, 18 Mar 2023 16:59:26 -0400 Subject: [PATCH] Refactored GUI into TypeScript and class-based format --- app/lib/server/index.js | 19 ++- app/lib/server/index.js.map | 2 +- app/lib/ui/devices.js.map | 2 +- app/lib/ui/index.js.map | 1 + app/lib/ui/mscript.js.map | 2 +- app/lib/ui/seq.js.map | 2 +- app/main.js | 2 +- app/src/lib/ui/devices.ts | 1 - app/src/lib/ui/index.ts | 306 ++++++++++++++++++++++++++++++++++++ app/src/lib/ui/mscript.ts | 1 - app/src/lib/ui/seq.ts | 1 - package.json | 8 + src/server/index.ts | 25 ++- 13 files changed, 351 insertions(+), 21 deletions(-) create mode 100644 app/lib/ui/index.js.map create mode 100644 app/src/lib/ui/index.ts diff --git a/app/lib/server/index.js b/app/lib/server/index.js index dc7a9f0..422963f 100644 --- a/app/lib/server/index.js +++ b/app/lib/server/index.js @@ -1,4 +1,4 @@ -"use strict"; +'use strict'; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; @@ -10,7 +10,7 @@ const path_1 = require("path"); const uuid_1 = require("uuid"); const Log = require("log"); class Server { - constructor() { + constructor(uiInput) { this.id = 'server'; this.isActive = false; this.templates = [ @@ -29,6 +29,7 @@ class Server { this.queue = {}; this.intervalPeriod = 10000; //10 sec this.init(); + this.ui = uiInput; } async init() { this.log = await Log({ label: this.id }); @@ -59,8 +60,9 @@ class Server { this.log.error(err); return; } - this.wss.on('connection', async function (ws) { - ws.on("message", function (data) { + this.wss.on('connection', async function (ws, req) { + const address = req.socket.remoteAddress; + ws.on('message', function (data) { let obj = JSON.parse(data); //this.log.info(data) if (obj.id && this.queue[obj.id]) { @@ -73,9 +75,11 @@ class Server { }.bind(this)); ws.on('close', function () { this.log.info('Client disconnected'); + this.notify('Client disconnected', `No longer forwarding digital display to client ${address}`); }.bind(this)); await this.cmd(ws, 'mcopy'); this.log.info('Client connected'); + this.notify('Client connected', `Forwarding digital display to client: ${address}`); }.bind(this)); this.log.info(`Websocket server started!`); this.log.info(`WSS [ ws://localhost:${this.wsPort} ]`); @@ -190,8 +194,11 @@ class Server { //setTimeout() ? }.bind(this)); } + notify(title, message) { + this.ui.send('gui', { notify: { title, message } }); + } } -module.exports = function () { - return new Server(); +module.exports = function (ui) { + return new Server(ui); }; //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/app/lib/server/index.js.map b/app/lib/server/index.js.map index 38fd1bf..cebcfed 100644 --- a/app/lib/server/index.js.map +++ b/app/lib/server/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":";;;;;AAAA,2BAA+C;AAC/C,sDAA0E;AAC1E,0CAAsC;AACtC,+BAA+B;AAC/B,+BAAmC;AACnC,2BAA2B;AA2B3B,MAAM,MAAM;IAwBX;QAvBQ,OAAE,GAAY,QAAQ,CAAA;QACvB,aAAQ,GAAa,KAAK,CAAA;QAEzB,cAAS,GAAsB;YACtC;gBACC,IAAI,EAAE,OAAO;gBACb,IAAI,EAAG,aAAa;aACpB;YACD;gBACC,IAAI,EAAG,QAAQ;gBACf,IAAI,EAAG,qBAAqB;aAC5B;SACD,CAAA;QAIO,SAAI,GAAY,IAAI,CAAA;QACpB,WAAM,GAAY,IAAI,CAAA;QACtB,UAAK,GAAqB,EAAE,CAAA;QAC5B,UAAK,GAAiB,EAAE,CAAA;QAExB,mBAAc,GAAY,KAAK,CAAA,CAAC,QAAQ;QAG/C,IAAI,CAAC,IAAI,EAAE,CAAA;IACZ,CAAC;IAED,KAAK,CAAC,IAAI;QACT,IAAI,CAAC,GAAG,GAAG,MAAM,GAAG,CAAC,EAAE,KAAK,EAAG,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;QAC1C,MAAM,IAAI,CAAC,IAAI,EAAE,CAAA;QACjB,MAAM,IAAI,CAAC,KAAK,EAAE,CAAA;IACnB,CAAC;I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EAAc,EAAE,MAAe,EAAE,UAAgB,EAAE;QACpE,MAAM,EAAE,GAAY,SAAM,EAAE,CAAA;QAC5B,IAAI,GAAG,GAAG;YACT,EAAE,EAAE,MAAM;SACV,CAAA;QACD,IAAI,GAAY,CAAA;QAEhB,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;QACjC,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;QACzB,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QAEZ,OAAO,IAAI,OAAO,CAAC,UAAU,OAAkB,EAAE,MAAgB;YAChE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,UAAU,GAAS;gBACnC,OAAO,OAAO,CAAC,GAAG,CAAC,CAAA;YACpB,CAAC,CAAA;YACD,gBAAgB;QACjB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IACd,CAAC;CACD;AAED,MAAM,CAAC,OAAO,GAAG;IAChB,OAAO,IAAI,MAAM,EAAE,CAAA;AACpB,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;;;;;AAEZ,2BAA+C;AAC/C,sDAA0E;AAC1E,0CAAsC;AACtC,+BAA+B;AAC/B,+BAAmC;AACnC,2BAA2B;AA2B3B,MAAM,MAAM;IAyBX,YAAa,OAAa;QAxBlB,OAAE,GAAY,QAAQ,CAAA;QACvB,aAAQ,GAAa,KAAK,CAAA;QAEzB,cAAS,GAAsB;YACtC;gBACC,IAAI,EAAE,OAAO;gBACb,IAAI,EAAG,aAAa;aACpB;YACD;gBACC,IAAI,EAAG,QAAQ;gBACf,IAAI,EAAG,qBAAqB;aAC5B;SACD,CAAA;QAIO,SAAI,GAAY,IAAI,CAAA;QACpB,WAAM,GAAY,IAAI,CAAA;QACtB,UAAK,GAAqB,EAAE,CAAA;QAC5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E,KAAc,EAAE,OAAgB;QAC/C,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,MAAM,EAAG,EAAE,KAAK,EAAE,OAAO,EAAE,EAAC,CAAC,CAAC;IACrD,CAAC;CACD;AAED,MAAM,CAAC,OAAO,GAAG,UAAU,EAAQ;IAClC,OAAO,IAAI,MAAM,CAAC,EAAE,CAAC,CAAA;AACtB,CAAC,CAAA"} \ No newline at end of file diff --git a/app/lib/ui/devices.js.map b/app/lib/ui/devices.js.map index f7f75a5..7aefbc7 100644 --- a/app/lib/ui/devices.js.map +++ b/app/lib/ui/devices.js.map @@ -1 +1 @@ -{"version":3,"file":"devices.js","sourceRoot":"","sources":["../../src/lib/ui/devices.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;AAEb,qCAAqC;AAGrC,IAAI,OAAiB,CAAC;AAEtB,MAAM,OAAO;IAEZ;QADQ,OAAE,GAAY,SAAS,CAAC;IAGhC,CAAC;IACD,IAAI;QACH,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,IAAI,CAAC,QAAQ,EAAE,CAAC;QAChB,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAClB,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,mCAAmC,CAAC,CAAC;IACxD,CAAC;IACD,MAAM;QACL,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC/C,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QACnD,WAAW,CAAC,EAAE,CAAC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAC3D,WAAW,CAAC,EAAE,CAAC,aAAa,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAA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AC9B,IAAI,GAAG,GAAS;YACf,GAAG;SACH,CAAC;QAEF,IAAK,GAAG,KAAK,EAAE,IAAI,OAAO,GAAG,KAAK,WAAW,EAAE;YAC9C,OAAO,GAAG,OAAO,CAAC,oDAAoD,GAAG,GAAG,CAAC,CAAC;SAC9E;aAAM;YACN,KAAK,CAAC,8CAA8C,CAAC,CAAC;SACtD;QAED,IAAI,OAAO,EAAE;YACZ,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAClB,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,8BAA8B,GAAG,EAAE,CAAC,CAAC;YACvD,WAAW,CAAC,IAAI,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC;SACpC;aAAM;YACN,CAAC,CAAC,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;YACrD,CAAC,CAAC,aAAa,CAAC,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;SACvC;IACF,CAAC;IAED,YAAY;QACX,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACnB,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,CAAC;IAED,UAAU;QACT,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACnB,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACnB,GAAG,CAAC,MAAM,CAAC,SAAS,EAAE,yBAAyB,CAAC,CAAC;QACjD,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,4DAA4D,CAAC,CAAC;IACjF,CAAC;CACD;AAED,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAExB,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC"} \ No newline at end of file diff --git a/app/lib/ui/index.js.map b/app/lib/ui/index.js.map new file mode 100644 index 0000000..6924d52 --- /dev/null +++ b/app/lib/ui/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/lib/ui/index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AAG,MAAM,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;YAChD,OAAO,GAAG,CAAC,QAAQ,KAAK,CAAC,CAAC;QAC3B,CAAC;KAAA;IAEY,MAAM,CAAE,OAAgB,EAAE,OAAkB;;YACxD,MAAM,MAAM,GAAS;gBACpB,OAAO,EAAG,OAAO;gBACjB,SAAS,EAAG,CAAC;gBACb,OAAO;aACP,CAAA;YACD,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;YAChD,OAAO,GAAG,CAAC,QAAQ,CAAC;QACrB,CAAC;KAAA;IAEY,IAAI,CAAE,KAAc,EAAE,OAAgB;;YAClD,MAAM,MAAM,GAAS;gBACpB,IAAI,EAAG,SAAS;gBAChB,OAAO,EAAG,CAAC,IAAI,CAAC;gBAChB,KAAK;gBACL,OAAO;aACP,CAAC;YACF,OAAO,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QACtC,CAAC;KAAA;IAEO,OAAO;QACd,CAAC,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;IAEO,KAAK;IAEb,CAAC;CACD;AAGD,GAAG,GAAG,IAAI,GAAG,EAAE,CAAC;AAChB,MAAM,CAAC,OAAO,GAAG,GAAG,CAAC"} \ No newline at end of file diff --git a/app/lib/ui/mscript.js.map b/app/lib/ui/mscript.js.map index d9825c5..35724d6 100644 --- a/app/lib/ui/mscript.js.map +++ b/app/lib/ui/mscript.js.map @@ -1 +1 @@ -{"version":3,"file":"mscript.js","sourceRoot":"","sources":["../../src/lib/ui/mscript.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;AAEb,qCAAqC;AAErC,sDAA8B;AAa9B;;QAEQ;AAER,MAAM,UAAU;IAKf;QAJO,WAAM,GAAS,EAAE,CAAC;QAClB,SAAI,GAAS,EAAE,CAAC;QAChB,QAAG,GAAY,EAAE,CAAC;IAIzB,CAAC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EAAE,CAAC;QACf,IAAI,CAAC,QAAQ,EAAE,CAAC;QAChB,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACrB,CAAC;IAEM,MAAM;QACZ,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE,wBAAwB,CAAC,CAAC;QAC5C,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACrB,IAAI,CAAC,IAAI,EAAE,CAAC;IACb,CAAC;CACD;AAED,GAAG,GAAG,IAAI,QAAQ,EAAE,CAAC;AAErB,MAAM,CAAC,OAAO,GAAG,GAAG,CAAC"} \ No newline at end of file diff --git a/app/main.js b/app/main.js index 2c488b4..1ca5473 100644 --- a/app/main.js +++ b/app/main.js @@ -117,7 +117,7 @@ var init = async function () { log.error('Error enumerating connected devices', err) } - server = require('server')() + server = require('server')(mainWindow.webContents) light = require('light')(arduino, cfg, mainWindow.webContents) filmout = require('filmout')(display, server, ffmpeg, ffprobe, mainWindow.webContents, light) cam = require('cam')(arduino, cfg, mainWindow.webContents, filmout) diff --git a/app/src/lib/ui/devices.ts b/app/src/lib/ui/devices.ts index 5e14574..37e9e1f 100644 --- a/app/src/lib/ui/devices.ts +++ b/app/src/lib/ui/devices.ts @@ -2,7 +2,6 @@ /// - let devices : Devices; class Devices { diff --git a/app/src/lib/ui/index.ts b/app/src/lib/ui/index.ts new file mode 100644 index 0000000..de97301 --- /dev/null +++ b/app/src/lib/ui/index.ts @@ -0,0 +1,306 @@ +/* jslint esversion: 6*/ +'use strict'; + +/// + +declare var cam : any; +declare var proj : any; +declare var notifier : any; +declare var PACKAGE : any; +declare var Spinner : any; +declare var dialog : any; + +let gui : GUI; + +class GUI { + private id : string = 'gui'; + private notifierWorking : boolean = true; + private spinnerCfg : any= { + lines: 11, // The number of lines to draw + length: 15, // The length of each line + width: 7, // The line thickness + radius: 20, // The radius of the inner circle + corners: 1, // Corner roundness (0..1) + rotate: 0, // The rotation offset + direction: 1, // 1: clockwise, -1: counterclockwise + color: '#F2F2F1', // #rgb or #rrggbb or array of colors + speed: 1, // Rounds per second + trail: 60, // Afterglow percentage + shadow: true, // Whether to render a shadow + hwaccel: true, // Whether to use hardware acceleration + className: 'spinner', // The CSS class to assign to the spinner + zIndex: 2e9, // The z-index (defaults to 2000000000) + top: '50%', // Top position relative to parent + left: '50%' // Left position relative to parent + }; + + constructor () { + + } + + public init () { + this.version(); + this.listen(); + } + + private listen() { + ipcRenderer.on(this.id, this.listener.bind(this)); + } + + private listener (event : any, arg : any) { + if (arg.notify) { + this.notify(arg.notify.title, arg.notify.message); + } + } + + public fmtZero (val : any, len : number) : string { + const raw : number = val; + let str : string = val + ''; + let output : string = ''; + if (raw < 0) { + output = '-' + Array(len - (str.length - 1)).join('0') + str.replace('-', ''); + } else { + if (str.length < len) { + output = Array(len - str.length).join('0') + str; + } else if (str.length >= len) { + str = parseInt(str) + ''; + output = Array(len - str.length).join('0') + str; + } + } + return output; + } + + counterFormat (t : HTMLInputElement, normal : number = null) { + const raw : string = t.value; + t.value = gui.fmtZero(raw, 6); + if (typeof normal !== 'undefined' && parseInt(raw) !== normal) { + $(t).addClass('changed'); + } else { + $(t).removeClass('changed'); + } + } + + counterUpdate (which : string, raw : number) { + const formattedVal : string = this.fmtZero(raw, 6); + $(`.${which} .count`).val(formattedVal); + } + + public notify (title : string, message : string) : Promise { + const config : any = { + title, + message, + //icon: path.join(__dirname, 'coulson.jpg'), // Absolute path (doesn't work on balloons) + sound: true, // Only Notification Center or Windows Toasters + wait: true // Wait with callback, until user action is taken against notification + }; + if (!this.notifierWorking) { + return new Promise((resolve, reject) => { return resolve(true); }) + } + return new Promise((resolve, reject) => { + try { + notifier.notify(config, + function (err : Error, response : any) { + // Response is response from notification + if (err) { + this.notifierWorking = false; + log.error(`Error with notification`, err); + return reject(err); + } + return resolve(true); + }.bind(this)); + } catch (err) { + this.notifierWorking = false; + //notify-send is not found + //determine an alternate for raspian + //this feels like a hack + } + }); + } + + public async updateCam (t : HTMLInputElement) { + const val : string = t.value; + let change : boolean; + + if (parseInt(val) === cam.pos) { + return false; + } + + change = await this.confirm(`Are you sure you want to set camera counter to ${val}?`); + + if (change) { + cam.pos = parseInt(val); + this.updateState(); + } else { + t.value = cam.pos; + this.counterFormat(t); + } + } + + async updateCam2 (t : HTMLInputElement) { + const val : string = t.value; + let change : boolean; + + if (parseInt(val) === cam.pos) { + return false; + } + + change = await this.confirm(`Are you sure you want to set second camera counter to ${val}?`); + + if (change) { + cam.second.pos = parseInt(val); + this.updateState(); + } else { + t.value = cam.second.pos; + this.counterFormat(t); + } + } + + async updateProj (t : HTMLInputElement) { + const val : string = t.value; + let change : boolean; + if (parseInt(val) === proj.pos) { + return false; + } + change = await this.confirm(`Are you sure you want to set projector counter to ${val}?`); + if (change) { + proj.pos = parseInt(val); + this.updateState(); + } else { + t.value = proj.pos; + this.counterFormat(t); + } + proj.setValue(t.value); + } + + async updateProj2 (t : HTMLInputElement) { + const val : string = t.value; + let change : boolean; + + if (parseInt(val) === proj.second.pos) { + return false; + } + + change = await this.confirm(`Are you sure you want to set second projector counter to ${val}?`); + + if (change) { + proj.second.pos = parseInt(val); + this.updateState(); + } else { + t.value = proj.second.pos; + this.counterFormat(t); + } + proj.setValue(t.value); + } + + public updateState () { + const cpos : number = cam.pos; + const ppos : number = proj.pos; + + const p2pos : number = proj.second.pos; + const c2pos : number = cam.second.pos; + + $('#seq_cam_count').val(cpos).change(); + $('#seq_proj_count').val(ppos).change(); + + $('#seq_cam_count_2').val(cpos).change(); + $('#seq_proj_count_2').val(ppos).change(); + + $('#seq_cam_2_count').val(c2pos).change(); + $('#seq_proj_2_count').val(p2pos).change(); + + $('#seq_cam_2_count_2').val(c2pos).change(); + $('#seq_proj_2_count_2').val(p2pos).change(); + } + + public spinner (state : boolean, msg : string = null, progress : boolean = false, cancel : boolean = false) { + let target; + let spinner; + if (msg && msg !== '') { + this.spinnerMsg(msg); + } + if (state && !$('#spinner').hasClass('created')) { + target = document.getElementById('spinner'); + spinner = new Spinner(this.spinnerCfg).spin(target); + $('#spinnerProgress').hide(); + $('#spinner').addClass('created'); + } else if (state) { + $('#spinner').show(); + } else if (!state) { + $('#spinner').hide(); + this.spinnerMsg(''); + } + if (progress) { + $('#spinnerProgress').show(); + } else { + $('#spinnerProgress').hide(); + } + if (cancel) { + $('#spinnerCancel').show(); + } else { + $('#spinnerCancel').hide(); + } + } + + private spinnerMsg (msg : string) { + $('#spinnerMsg').text(msg); + } + + public overlay (state : boolean) { + if (state) { + $('#overlay').show(); + } else { + $('#overlay').hide(); + } + } + + public async info (title : string, message : string) { + const config : any = { + type : 'info', + buttons : ['Ok'], + title: title, + message : message + }; + return dialog.showMessageBox(config); + } + + async confirm (message : string, cancel : string = 'Cancel') { + const config : any = { + buttons : ['Yes', cancel], + message + } + const res = await dialog.showMessageBox(config); + return res.response === 0; + } + + public async choice (message : string, choices : string[]) { + const config : any = { + buttons : choices, + defaultId : 0, + message + } + const res = await dialog.showMessageBox(config); + return res.response; + } + + public async warn (title : string, message : string) { + const config : any = { + type : 'warning', + buttons : ['Ok'], + title, + message + }; + return dialog.showMessageBox(config); + } + + private version () { + $('#version').text(PACKAGE.version); + } + + private error () { + + } +} + + +gui = new GUI(); +module.exports = gui; \ No newline at end of file diff --git a/app/src/lib/ui/mscript.ts b/app/src/lib/ui/mscript.ts index 14d3a0b..970edcb 100644 --- a/app/src/lib/ui/mscript.ts +++ b/app/src/lib/ui/mscript.ts @@ -5,7 +5,6 @@ import Mscript from 'mscript'; declare var nav : any; -declare var gui : any; declare var CodeMirror : any; declare var mscript : any; declare var cmd : any; diff --git a/app/src/lib/ui/seq.ts b/app/src/lib/ui/seq.ts index b510900..97f31e0 100644 --- a/app/src/lib/ui/seq.ts +++ b/app/src/lib/ui/seq.ts @@ -2,7 +2,6 @@ /// -declare var gui : any; declare var cfg : any; declare var log : any; declare var w2popup : any; diff --git a/package.json b/package.json index 4e4f820..22d095c 100644 --- a/package.json +++ b/package.json @@ -38,20 +38,28 @@ "typescript": "^4.1.5" }, "dependencies": { + "alert": "file:app/lib/alert", "arduino": "file:app/lib/arduino", "cam": "file:app/lib/cam", + "capper" : "file:app/lib/capper", "cmd": "file:app/lib/cmd", "delay": "file:app/lib/delay", "devices": "file:app/lib/devices", "display": "file:app/lib/display", + "exec" : "file:app/lib/exec", + "exit" : "file:app/lib/exit", + "ffmpeg" : "file:app/lib/ffmpeg", + "ffprobe" : "file:app/lib/ffprobe", "filmout": "file:app/lib/filmout", "frame": "file:app/lib/frame", + "intval" : "file:app/lib/intval", "light": "file:app/lib/light", "log": "file:app/lib/log", "mscript": "file:app/lib/mscript", "processing": "file:app/lib/processing", "proj": "file:app/lib/proj", "sequencer": "file:app/lib/sequencer", + "server" : "file:app/lib/server", "settings": "file:app/lib/settings", "system": "file:app/lib/system" } diff --git a/src/server/index.ts b/src/server/index.ts index e4f379e..75f5ffc 100644 --- a/src/server/index.ts +++ b/src/server/index.ts @@ -1,3 +1,5 @@ +'use strict' + import WebSocket, { WebSocketServer } from 'ws' import express, { Express, Request, Response, Application } from 'express' import { readFile } from 'fs/promises' @@ -53,9 +55,11 @@ class Server { private queue : ServerQueue = {} private interval : ReturnType private intervalPeriod : number = 10000 //10 sec + private ui : any; - constructor () { + constructor (uiInput : any) { this.init() + this.ui = uiInput; } async init () { @@ -91,8 +95,9 @@ class Server { this.log.error(err) return } - this.wss.on('connection', async function (ws : WebSocket) { - ws.on("message", function (data : string ) { + this.wss.on('connection', async function (ws : WebSocket, req: any) { + const address : string = req.socket.remoteAddress; + ws.on('message', function (data : string ) { let obj : any = JSON.parse(data) //this.log.info(data) if (obj.id && this.queue[obj.id]) { @@ -106,10 +111,12 @@ class Server { ws.on('close', function () { this.log.info('Client disconnected') + this.notify('Client disconnected', `No longer forwarding digital display to client ${address}`) }.bind(this)) await this.cmd(ws, 'mcopy') this.log.info('Client connected') + this.notify('Client connected', `Forwarding digital display to client: ${address}`) }.bind(this)) this.log.info(`Websocket server started!`) @@ -200,8 +207,8 @@ class Server { return false } - public async displayImage (src : string) { - let key + public async displayImage (src : string) : Promise { + let key : string if (this.useServer()) { key = basename(src) this.addProxy(key, src) @@ -237,8 +244,12 @@ class Server { //setTimeout() ? }.bind(this)) } + + private notify (title : string, message : string) { + this.ui.send('gui', { notify : { title, message }}); + } } -module.exports = function () { - return new Server() +module.exports = function (ui : any) { + return new Server(ui) } \ No newline at end of file