diff --git a/.gitignore b/.gitignore index 9f18bdf..322e5b9 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,6 @@ dist *debug_custom.json *debug.cfg -notes/mphd \ No newline at end of file +notes/mphd + +./lib \ No newline at end of file diff --git a/app/data/cfg.json b/app/data/cfg.json index af4ba93..8d45dee 100644 --- a/app/data/cfg.json +++ b/app/data/cfg.json @@ -1,5 +1,5 @@ { - "version": "1.8.112", + "version": "1.8.113", "ext_port": 1111, "profiles": { "mcopy": { diff --git a/app/lib/alert/Readme.md b/app/lib/alert/Readme.md new file mode 100644 index 0000000..e69de29 diff --git a/app/lib/alert/index.js.map b/app/lib/alert/index.js.map index 95853b7..5f1726d 100644 --- a/app/lib/alert/index.js.map +++ b/app/lib/alert/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/alert/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAEb,uCAAmC;AAEnC,6BAA0B;AAI1B,4CAA4C;AAE5C,MAAa,KAAK;IAOjB,YAAc,EAAgB;QANtB,QAAG,GAAoB,kBAAO,CAAA;QAE9B,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,IAAI,CAAC,GAAG,GAAG,MAAM,IAAA,SAAG,EAAC,EAAE,KAAK,EAAG,IAAI,CAAC,EAAE,EAAE,CAAC,CAAA;QACzC,IAAI,CAAC,MAAM,EAAE,CAAA;IACd,CAAC;IAED;;QAEI;IACI,MAAM;QACb,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IAC/C,CAAC;IAED;;QAEI;IACI,KAAK,CAAC,QAAQ,C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CAAC,IAAI,EAAE,CAAA;QACrG,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;QAC9B,OAAO,IAAI,OAAO,CAAC,UAAU,OAAkB,EAAE,MAAiB;YACjE,IAAI,CAAC,EAAE,GAAG;gBACT,MAAM,EAAE,GAAY,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,GAAG,KAAK,CAAC;gBAC1C,OAAO,OAAO,CAAC,EAAE,CAAC,CAAC;YACpB,CAAC,CAAA;QACF,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACf,CAAC;CACD;AAvDD,sBAuDC;AAED,MAAM,CAAC,OAAO,GAAG,EAAE,KAAK,EAAE,CAAA"} \ No newline at end of file diff --git a/app/lib/arduino/Readme.md b/app/lib/arduino/Readme.md index 2e22601..9a55104 100644 --- a/app/lib/arduino/Readme.md +++ b/app/lib/arduino/Readme.md @@ -1,3 +1,25 @@ +## Classes + +
+
Arduino
+

Class representing the arduino communication features

+
+
+ +## Constants + +
+
delay_1
+

2023-07-16 Clarification

+

Previous versions of this script intermingled and even +swapped the usage of the terms 'serial' and 'device'. +From here on out, the terms will be used as such:

+

serial - a hardware address of a serial port +device - common name of a type of mcopy device (eg. camera, +projector, light) that is aliased to a serial port

+
+
+ ## Arduino @@ -8,7 +30,19 @@ Class representing the arduino communication features * [Arduino](#Arduino) * [.enumerate()](#Arduino+enumerate) ⇒ Promise * [.sendAsync(device, cmd)](#Arduino+sendAsync) ⇒ Promise + * [.send(device, cmd)](#Arduino+send) ⇒ Promise.<(boolean\|string)> + * [.sendString(device, str)](#Arduino+sendString) ⇒ Promise.<(boolean\|string)> + * [.stateAsync()](#Arduino+stateAsync) + * [.state()](#Arduino+state) * [.writeAsync(device, str)](#Arduino+writeAsync) ⇒ Promise + * [.end(serial, data)](#Arduino+end) ⇒ any + * [.aliasSerial(device, serial)](#Arduino+aliasSerial) + * [.connect(device, serial, confirm)](#Arduino+connect) ⇒ Promise.<string> + * [.confirmEnd(data)](#Arduino+confirmEnd) + * [.verify()](#Arduino+verify) ⇒ Promise.<boolean> + * [.distinguish()](#Arduino+distinguish) ⇒ Promise.<string> + * [.close()](#Arduino+close) ⇒ Promise.<boolean> + * [.fakeConnect(serial)](#Arduino+fakeConnect) ⇒ Promise.<boolean> * [.openArduino(device)](#Arduino+openArduino) ⇒ Promise * [.closeArduino(device)](#Arduino+closeArduino) ⇒ Promise @@ -29,9 +63,55 @@ Send a command to an Arduino using async/await | Param | Type | Description | | --- | --- | --- | -| device | string | Arduino identifier | +| device | string | The Arduino device identifier | | cmd | string | Single character command to send | + + +### arduino.send(device, cmd) ⇒ Promise.<(boolean\|string)> +Sends a command to the specified Arduino and waits for a response. +Handles the communication lock to prevent sending multiple commands simultaneously. +Emits an 'arduino_send' event after successfully sending the command. + +**Kind**: instance method of [Arduino](#Arduino) +**Returns**: Promise.<(boolean\|string)> - Returns 'false' if the communication is locked, otherwise returns the response from the device. +**Throws**: + +- Error Throws an error if the sendAsync method encounters an error. + + +| Param | Type | Description | +| --- | --- | --- | +| device | string | The Arduino device identifier. | +| cmd | string | The command to be sent to the Arduino. | + + + +### arduino.sendString(device, str) ⇒ Promise.<(boolean\|string)> +Sends a string to the specified Arduino. +Handles different types of devices, including fake devices for testing purposes. +Waits for a specified delay before sending the string. + +**Kind**: instance method of [Arduino](#Arduino) +**Returns**: Promise.<(boolean\|string)> - Returns 'true' if the string is sent successfully, otherwise returns an error message. +**Throws**: + +- Error Throws an error if the writeAsync method encounters an error. + + +| Param | Type | Description | +| --- | --- | --- | +| device | string | The Arduino device identifier. | +| str | string | The string to be sent to the Arduino. | + + + +### arduino.stateAsync() +**Kind**: instance method of [Arduino](#Arduino) + + +### arduino.state() +**Kind**: instance method of [Arduino](#Arduino) ### arduino.writeAsync(device, str) ⇒ Promise @@ -45,6 +125,114 @@ Send a string to an Arduino using async/await | device | string | Arduino identifier | | str | string | String to send | + + +### arduino.end(serial, data) ⇒ any +Handles the end of communication with the Arduino. +Calculates the time taken for the communication, executes the callback, +and emits an 'arduino_end' event. Handles errors and stray data received. + +**Kind**: instance method of [Arduino](#Arduino) +**Returns**: any - The time taken for the communication in milliseconds. + +| Param | Type | Description | +| --- | --- | --- | +| serial | string | The serial address of the Arduino device. | +| data | string | The data received from the Arduino. | + + + +### arduino.aliasSerial(device, serial) +Associates an alias with an Arduinos serial address. +Used to map multi-purpose devices onto the same serial connection. + +**Kind**: instance method of [Arduino](#Arduino) + +| Param | Type | Description | +| --- | --- | --- | +| device | string | The serial number of the target Arduino. | +| serial | string | The alias to be associated with the target device. | + + + +### arduino.connect(device, serial, confirm) ⇒ Promise.<string> +Connects to an Arduino using its serial number. +Sets up the SerialPort instance and path for the device, and handles data communication. +Handles opening the connection and emitting 'arduino_end' or 'confirmEnd' events upon receiving data. + +**Kind**: instance method of [Arduino](#Arduino) +**Returns**: Promise.<string> - Resolves with the device path if the connection is successful. +**Throws**: + +- Error Rejects with an error message if the connection fails. + + +| Param | Type | Description | +| --- | --- | --- | +| device | string | The device identifier (common name). | +| serial | string | The serial address of the target Arduino (e.g., COM port on Windows). | +| confirm | function | A callback function to be executed upon receiving confirmation data. | + + + +### arduino.confirmEnd(data) +Handles the confirmation data received from an Arduino. +Executes the confirmation callback function if the received data is present in the list of expected values. + +**Kind**: instance method of [Arduino](#Arduino) + +| Param | Type | Description | +| --- | --- | --- | +| data | string | The data received from the Arduino. | + + + +### arduino.verify() ⇒ Promise.<boolean> +Verifies the connection to an Arduino by sending a connect command. +The confirmation callback checks if the received data matches the expected connect command. + +**Kind**: instance method of [Arduino](#Arduino) +**Returns**: Promise.<boolean> - Resolves with 'true' if the connection is verified successfully. +**Throws**: + +- Error Rejects with an error message if the connection verification fails. + + + +### arduino.distinguish() ⇒ Promise.<string> +Distinguishes the type of Arduino connected. +Sends a command to the device to identify its type and resolves the promise with the received type. + +**Kind**: instance method of [Arduino](#Arduino) +**Returns**: Promise.<string> - Resolves with the type of the connected Arduino-based device. +**Throws**: + +- Error Rejects with an error message if the distinguish operation fails. + + + +### arduino.close() ⇒ Promise.<boolean> +Closes the connection to an Arduino. + +**Kind**: instance method of [Arduino](#Arduino) +**Returns**: Promise.<boolean> - Resolves with 'true' if the connection is closed successfully. +**Throws**: + +- Error Throws an error if the closeArduino method encounters an error. + + + +### arduino.fakeConnect(serial) ⇒ Promise.<boolean> +Establishes a fake connection to an Arduino for testing purposes. +Creates a fake SerialPort instance with custom write and string methods. + +**Kind**: instance method of [Arduino](#Arduino) +**Returns**: Promise.<boolean> - Resolves with 'true' if the fake connection is established successfully. + +| Param | Type | Description | +| --- | --- | --- | +| serial | string | The device identifier of the fake Arduino. | + ### arduino.openArduino(device) ⇒ Promise @@ -69,3 +257,17 @@ Close a connection to an Arduino using async/await | --- | --- | --- | | device | string | Arduino identifier | + + +## delay\_1 +2023-07-16 Clarification + +Previous versions of this script intermingled and even +swapped the usage of the terms 'serial' and 'device'. +From here on out, the terms will be used as such: + +serial - a hardware address of a serial port +device - common name of a type of mcopy device (eg. camera, +projector, light) that is aliased to a serial port + +**Kind**: global constant diff --git a/app/lib/arduino/index.d.ts b/app/lib/arduino/index.d.ts index a6b2f24..aaf2fba 100644 --- a/app/lib/arduino/index.d.ts +++ b/app/lib/arduino/index.d.ts @@ -1,5 +1,6 @@ /// import type { EventEmitter } from 'events'; +import type { Config } from 'cfg'; /** * Class representing the arduino communication features **/ @@ -21,7 +22,7 @@ export declare class Arduino { alias: any; stateStr: any; hasState: any; - constructor(cfg: any, ee: EventEmitter, errorState: Function); + constructor(cfg: Config, ee: EventEmitter, errorState: Function); init(): Promise; /** * Enumerate all connected devices that might be Arduinos @@ -51,7 +52,7 @@ export declare class Arduino { * @returns {Promise} Returns 'false' if the communication is locked, otherwise returns the response from the device. * @throws {Error} Throws an error if the sendAsync method encounters an error. **/ - send(device: string, cmd: string): Promise; + send(device: string, cmd: string): Promise; /** * Sends a string to the specified Arduino. * Handles different types of devices, including fake devices for testing purposes. @@ -63,7 +64,7 @@ export declare class Arduino { * @returns {Promise} Returns 'true' if the string is sent successfully, otherwise returns an error message. * @throws {Error} Throws an error if the writeAsync method encounters an error. **/ - sendString(device: string, str: string): Promise; + sendString(device: string, str: string): Promise; /** * **/ diff --git a/app/lib/arduino/index.js b/app/lib/arduino/index.js index 97d4405..29470cd 100644 --- a/app/lib/arduino/index.js +++ b/app/lib/arduino/index.js @@ -13,12 +13,10 @@ exports.Arduino = void 0; * projector, light) that is aliased to a serial port * **/ -//import Log = require('log'); const delay_1 = require("delay"); const log_1 = require("log"); const { SerialPort } = require('serialport'); const { ReadlineParser } = require('@serialport/parser-readline'); -const exec = require('child_process').exec; const parser = new ReadlineParser({ delimiter: '\r\n' }); const newlineRe = new RegExp('\n', 'g'); const returnRe = new RegExp('\r', 'g'); @@ -37,7 +35,6 @@ const KNOWN = [ **/ class Arduino { constructor(cfg, ee, errorState) { - this.cfg = {}; this.path = {}; this.known = KNOWN; this.serial = {}; @@ -139,8 +136,8 @@ class Arduino { let ms; this.log.info(`send ${cmd} -> ${device}`); if (this.isLocked(serial)) { - this.log.warn(`send Serial ${serial} is locked`); - return null; + this.log.error(`send Serial ${serial} is locked`); + return 0; } this.timer = new Date().getTime(); this.lock(serial); @@ -150,7 +147,7 @@ class Arduino { } catch (e) { this.log.error(`Failed to send to ${device} @ ${serial}`, e); - return null; + return 0; } this.unlock(serial); await this.eventEmitter.emit('arduino_send', cmd); @@ -168,7 +165,7 @@ class Arduino { * @throws {Error} Throws an error if the writeAsync method encounters an error. **/ async sendString(device, str) { - let writeSuccess; + let ms; await (0, delay_1.delay)(this.cfg.arduino.serialDelay); if (typeof this.serial[this.alias[device]].fake !== 'undefined' && this.serial[this.alias[device]].fake) { @@ -177,14 +174,14 @@ class Arduino { else { this.log.info(`sendString ${str} -> ${device}`); try { - writeSuccess = await this.writeAsync(device, str); + ms = await this.writeAsync(device, str); } catch (e) { this.log.error(`Error sending string to ${device}`, e); - return null; + return 0; } this.unlock(this.alias[device]); - return writeSuccess; + return ms; } } /** diff --git a/app/lib/arduino/index.js.map b/app/lib/arduino/index.js.map index 0ed62bf..3715c49 100644 --- a/app/lib/arduino/index.js.map +++ b/app/lib/arduino/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/arduino/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;;;AAEZ;;;;;;;;;;;IAWI;AAEJ,8BAA8B;AAC9B,iCAA8B;AAC9B,6BAA0B;AAK1B,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAC7C,MAAM,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;AAClE,MAAM,IAAI,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC;AAE3C,MAAM,MAAM,GAAS,IAAI,cAAc,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;AAC/D,MAAM,SAAS,GAAY,IAAI,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AACjD,MAAM,QAAQ,GAAY,IAAI,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AAEhD,MAAM,KAAK,GAAc;IACxB,wBAAwB;IACxB,6BAA6B;IAC7B,6BAA6B;IAC7B,wBAAwB;IACxB,6BAA6B;IAC7B,wBAAwB;IACxB,cAAc;IACd,MAAM;CACN,CAAA;AAED;;IAEI;AAEJ,MAAa,OAAO;IAqBnB,YAAc,GAAS,EAAE,EAAiB,EAAE,UAAqB;QAjBzD,QAAG,GAAS,EAAE,CAAC;QACf,SAAI,GAAS,EAAE,CAAC;QAChB,UAAK,GAAc,KAAK,CAAC;QACzB,WAAM,GAAS,EAAE,CAAC;QAClB,SAAI,GAAY,KAAK,CAAC;QACtB,UAAK,GAAS,EAAE,CAAC;QACjB,UAAK,GAAY,CAAC,CAAC;QACnB,UAAK,GAAS,EAAE,CAAC;QAMlB,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AI,CAAE,MAAe;QAC5B,0CAA0C;QAC1C,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAA;IAC1B,CAAC;IAEO,MAAM,CAAE,MAAe;QAC9B,4CAA4C;QAC5C,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAA;IAC3B,CAAC;IAEO,QAAQ,CAAE,MAAe;QAChC,OAAO,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,WAAW,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,CAAA;IAChF,CAAC;CACD;AA9iBD,0BA8iBC;AAED,MAAM,CAAC,OAAO,GAAG,EAAE,OAAO,EAAE,CAAA"} \ No newline at end of file diff --git a/app/lib/cam/Readme.md b/app/lib/cam/Readme.md index 3825697..260f799 100644 --- a/app/lib/cam/Readme.md +++ b/app/lib/cam/Readme.md @@ -9,9 +9,11 @@ class representing camera functions * [.init()](#Camera+init) * [.listen()](#Camera+listen) * [.set()](#Camera+set) + * [.cap()](#Camera+cap) * [.move()](#Camera+move) * [.exposure()](#Camera+exposure) * [.connectIntval()](#Camera+connectIntval) + * [.connectProcessing()](#Camera+connectProcessing) * [.listener()](#Camera+listener) * [.end()](#Camera+end) @@ -27,6 +29,10 @@ class representing camera functions ### camera.set() **Kind**: instance method of [Camera](#Camera) + + +### camera.cap() +**Kind**: instance method of [Camera](#Camera) ### camera.move() @@ -39,6 +45,10 @@ class representing camera functions ### camera.connectIntval() **Kind**: instance method of [Camera](#Camera) + + +### camera.connectProcessing() +**Kind**: instance method of [Camera](#Camera) ### camera.listener() diff --git a/app/lib/cam/index.d.ts b/app/lib/cam/index.d.ts index 9e520bf..a041146 100644 --- a/app/lib/cam/index.d.ts +++ b/app/lib/cam/index.d.ts @@ -1,5 +1,6 @@ import type { Arduino } from 'arduino'; import type { FilmOut } from 'filmout'; +import type { Config } from 'cfg'; import type { WebContents } from 'electron'; interface CameraState { pos: number; @@ -21,7 +22,7 @@ export declare class Camera { /** * **/ - constructor(arduino: Arduino, cfg: any, ui: WebContents, filmout: FilmOut, second?: boolean); + constructor(arduino: Arduino, cfg: Config, ui: WebContents, filmout: FilmOut, second?: boolean); /** * **/ diff --git a/app/lib/cam/index.js.map b/app/lib/cam/index.js.map index 55ee2bc..7769e32 100644 --- a/app/lib/cam/index.js.map +++ b/app/lib/cam/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cam/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAEb,uCAAmC;AACnC,mCAAgC;AAChC,2CAAwC;AACxC,iCAA8B;AAC9B,6BAA0B;AAY1B,2CAA2C;AAC3C,MAAa,MAAM;IAelB;;QAEI;IACJ,YAAa,OAAiB,EAAE,GAAS,EAAE,EAAgB,EAAE,OAAiB,EAAE,SAAmB,KAAK;QAjBjG,UAAK,GAAiB;YAC5B,GAAG,EAAG,CAAC;YACP,GAAG,EAAG,IAAI;YACV,MAAM,EAAE,KAAK;SACb,CAAC;QACK,YAAO,GAAa,IAAI,CAAC;QACxB,WAAM,GAAY,IAAI,CAAC;QACvB,eAAU,GAAgB,IAAI,CAAC;QAK/B,QAAG,GAAoB,kBAAO,CAAC;QAC/B,OAAE,GAAY,QAAQ,CAAC;QAK9B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,MAAM;YAAE,IAAI,CAAC,EAAE,IAAI,SAAS,CAAC;QACjC,IAAI,CAAC,IAAI,EAAE,CAAC;IACb,CAAC;IAED;;QAEI;IACI,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,GAAG,GAAG,MAAM,IAAA,SAAG,EAAC,EAAE,KAAK,EAAG,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;QAC1C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pB,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE;gBACnB,OAAO,IAAI,UAAU,CAAC;aACtB;iBAAM;gBACN,OAAO,IAAI,SAAS,CAAC;aACrB;YACD,OAAO,IAAI,UAAU,CAAC;SACtB;aAAM,IAAI,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE;YACtD,OAAO,GAAG,gBAAgB,CAAC;YAC3B,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE;gBACnB,OAAO,IAAI,UAAU,CAAC;aACtB;iBAAM;gBACN,OAAO,IAAI,SAAS,CAAC;aACrB;YACD,OAAO,IAAI,UAAU,CAAC;SACtB;aAAM,IAAI,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE;YACjD,OAAO,IAAI,iCAAiC,CAAC;SAC7C;aAAM,IAAI,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,eAAe,EAAE;YACpD,OAAO,IAAI,qBAAqB,CAAC;SACjC;QACD,OAAO,IAAI,IAAI,EAAE,IAAI,CAAA;QACrB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvB,MAAM,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAC,CAAC,CAAC;QACzD,OAAO,EAAE,CAAC;IACX,CAAC;CACD;AA7TD,wBA6TC;AAED,MAAM,CAAC,OAAO,GAAG,EAAE,MAAM,EAAE,CAAC"} \ No newline at end of file diff --git a/app/lib/capper/Readme.md b/app/lib/capper/Readme.md new file mode 100644 index 0000000..408680e --- /dev/null +++ b/app/lib/capper/Readme.md @@ -0,0 +1,34 @@ + + +## Capper +class representing capper functions + +**Kind**: global class + +* [Capper](#Capper) + * [.init()](#Capper+init) + * [.listen()](#Capper+listen) + * [.capper()](#Capper+capper) + * [.listener()](#Capper+listener) + * [.end()](#Capper+end) + + + +### capper.init() +**Kind**: instance method of [Capper](#Capper) + + +### capper.listen() +**Kind**: instance method of [Capper](#Capper) + + +### capper.capper() +**Kind**: instance method of [Capper](#Capper) + + +### capper.listener() +**Kind**: instance method of [Capper](#Capper) + + +### capper.end() +**Kind**: instance method of [Capper](#Capper) diff --git a/app/lib/capper/index.d.ts b/app/lib/capper/index.d.ts index c9ea038..f495acf 100644 --- a/app/lib/capper/index.d.ts +++ b/app/lib/capper/index.d.ts @@ -1,6 +1,9 @@ import type { FilmOut } from 'filmout'; import type { Arduino } from 'arduino'; import type { WebContents } from 'electron'; +interface CapperState { + capper: boolean; +} /** class representing capper functions **/ export declare class Capper { private state; @@ -36,3 +39,4 @@ export declare class Capper { **/ private end; } +export type { CapperState }; diff --git a/app/lib/capper/index.js b/app/lib/capper/index.js index 69d2c84..a29e7bb 100644 --- a/app/lib/capper/index.js +++ b/app/lib/capper/index.js @@ -82,7 +82,7 @@ class Capper { } message += ` ${ms}ms`; this.log.info(message); - this.ui.send(this.id, { cmd: cmd, id: id, ms: ms }); + await this.ui.send(this.id, { cmd: cmd, id: id, ms: ms }); return ms; } } diff --git a/app/lib/capper/index.js.map b/app/lib/capper/index.js.map index 3a4c9b5..1a83e8c 100644 --- a/app/lib/capper/index.js.map +++ b/app/lib/capper/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/capper/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAEb,uCAAmC;AAInC,6BAA0B;AAM1B,2CAA2C;AAE3C,MAAa,MAAM;IAWlB;;QAEI;IACJ,YAAa,OAAiB,EAAE,GAAS,EAAE,EAAgB,EAAE,OAAiB;QAbtE,UAAK,GAAS;YACrB,MAAM,EAAG,KAAK;SACd,CAAC;QACM,YAAO,GAAa,IAAI,CAAC;QAKzB,QAAG,GAAoB,kBAAO,CAA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;QACvB,MAAM,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAC,CAAC,CAAC;QACzD,OAAO,EAAE,CAAC;IACX,CAAC;CACD;AA7FD,wBA6FC;AAED,MAAM,CAAC,OAAO,GAAG,EAAE,MAAM,EAAE,CAAA"} \ No newline at end of file diff --git a/app/lib/cfg/Readme.md b/app/lib/cfg/Readme.md new file mode 100644 index 0000000..e69de29 diff --git a/app/lib/cfg/index.d.ts b/app/lib/cfg/index.d.ts new file mode 100644 index 0000000..548098e --- /dev/null +++ b/app/lib/cfg/index.d.ts @@ -0,0 +1,30 @@ +interface ConfigCommands { + [key: string]: string; +} +interface ConfigDeviceProfile { + time: number; + delay: number; + momentary: number; +} +interface ConfigBlackProfile { + before: number; + after: number; +} +interface ConfigProfile { + label: string; + cam: ConfigDeviceProfile; + proj?: ConfigDeviceProfile; + black?: ConfigBlackProfile; + light: boolean; +} +interface ConfigProfiles { + [key: string]: ConfigProfile; +} +interface Config { + version: string; + ext_port: number; + profiles: ConfigProfiles; + cmd: ConfigCommands; + arduino: any; +} +export type { Config }; diff --git a/app/lib/cfg/index.js b/app/lib/cfg/index.js new file mode 100644 index 0000000..aa219d8 --- /dev/null +++ b/app/lib/cfg/index.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/app/lib/cfg/index.js.map b/app/lib/cfg/index.js.map new file mode 100644 index 0000000..9f43f4c --- /dev/null +++ b/app/lib/cfg/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cfg/index.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/app/lib/cmd/Readme.md b/app/lib/cmd/Readme.md index e69de29..f862329 100644 --- a/app/lib/cmd/Readme.md +++ b/app/lib/cmd/Readme.md @@ -0,0 +1,19 @@ + + +## Assign all connected devices and mock devices as private classes. +**Kind**: global class + + +### new Assign all connected devices and mock devices as private classes.(cfg, proj, cam, light, alert, cam2, proj2, capper) + +| Param | Type | Description | +| --- | --- | --- | +| cfg | object | Configuration object | +| proj | object | Projector 1 | +| cam | object | Camera 1 | +| light | object | Light source | +| alert | object | Alert object | +| cam2 | object | (optional) Camera 2 | +| proj2 | object | (optional) Projector 2 | +| capper | object | Capper object | + diff --git a/app/lib/cmd/index.d.ts b/app/lib/cmd/index.d.ts index a819f40..a1cea15 100644 --- a/app/lib/cmd/index.d.ts +++ b/app/lib/cmd/index.d.ts @@ -3,6 +3,7 @@ import type { Camera } from 'cam'; import type { Light } from 'light'; import type { Capper } from 'capper'; import type { Alert } from 'alert'; +import type { Config } from 'cfg'; export declare class Commands { proj: Projector; cam: Camera; @@ -27,7 +28,7 @@ export declare class Commands { * @param {object} capper Capper object * **/ - constructor(cfg: any, proj: Projector, cam: any, light: Light, alert: Alert, cam2?: any, proj2?: Projector, capper?: any); + constructor(cfg: Config, proj: Projector, cam: Camera, light: Light, alert: Alert, cam2?: Camera, proj2?: Projector, capper?: Capper); /** * Move the projector one frame forward * diff --git a/app/lib/cmd/index.js.map b/app/lib/cmd/index.js.map index ee7c01a..ba37795 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,uCAAmC;AACnC,+BAAkC;AAClC,iCAA8B;AAO9B,MAAa,QAAQ;IAepB;;;;;;;;;;;;;QAaI;IAEJ,YAAa,GAAS,EAAE,IAAgB,EAAE,GAAS,EAAE,KAAa,EAAE,KAAa,EAAE,OAAa,IAAI,EAAE,QAAoB,IAAI,EAAE,SAAe,IAAI;QAjB3I,QAAG,GAAoB,kBAAO,CAAC;QAkBtC,IAAI,CAAC,GAAG,GAAG,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b,MAAM,GAAG,CAAC;SACV;QACD,OAAO,EAAE,CAAC;IACX,CAAC;IAED;;;QAGI;IACG,KAAK,CAAC,eAAe,CAAE,GAAS;QACtC,MAAM,EAAE,GAAY,IAAA,SAAI,GAAE,CAAC;QAC3B,IAAI,EAAW,CAAC;QAChB,IAAI;YACH,EAAE,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;SAC5C;QAAC,OAAO,GAAG,EAAE;YACb,MAAM,GAAG,CAAC;SACV;QACD,OAAO,EAAE,CAAC;IACX,CAAC;CACD;AA9nBD,4BA8nBC;AAED,MAAM,CAAC,OAAO,GAAG,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/app/lib/devices/Readme.md b/app/lib/devices/Readme.md index e48bcbe..18e4f45 100644 --- a/app/lib/devices/Readme.md +++ b/app/lib/devices/Readme.md @@ -6,6 +6,7 @@ class representing the device discovery features **Kind**: global class * [Devices](#Devices) + * [new Devices()](#new_Devices_new) * [.init()](#Devices+init) * [.listen()](#Devices+listen) * [.listener()](#Devices+listener) @@ -15,22 +16,37 @@ class representing the device discovery features * [.fakeProjector()](#Devices+fakeProjector) * [.fakeCamera()](#Devices+fakeCamera) * [.fakeLight()](#Devices+fakeLight) + * [.fakeCapper()](#Devices+fakeCapper) * [.connectDevice()](#Devices+connectDevice) * [.all()](#Devices+all) * [.remember()](#Devices+remember) * [.ready()](#Devices+ready) + + +### new Devices() +Constructor assigns arduino, settings, UI browser window and cam objects +locally to this class for reference. + ### devices.init() +Initialize the log for "devices". Establish an ipc connection to the UI. +Start listening on that ipc connection. + **Kind**: instance method of [Devices](#Devices) ### devices.listen() +Listen to the "profile" channel for messages from the UI. + **Kind**: instance method of [Devices](#Devices) ### devices.listener() +The "profile" channel callback. If a profile is changed, set it in the +local settings object. + **Kind**: instance method of [Devices](#Devices) @@ -56,6 +72,10 @@ class representing the device discovery features ### devices.fakeLight() **Kind**: instance method of [Devices](#Devices) + + +### devices.fakeCapper() +**Kind**: instance method of [Devices](#Devices) ### devices.connectDevice() diff --git a/app/lib/devices/index.js.map b/app/lib/devices/index.js.map index 76d71c4..ed73afb 100644 --- a/app/lib/devices/index.js.map +++ b/app/lib/devices/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/devices/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAEb,uCAAmC;AACnC,iCAA8B;AAC9B,6BAA0B;AAW1B;;;;IAII;AAEJ,MAAa,OAAO;IAUnB;;;QAGI;IACJ,YAAa,OAAiB,EAAE,QAAmB,EAAE,UAA0B;QAXxE,cAAS,GAAS,EAAE,CAAA;QAKnB,QAAG,GAAoB,kBAAO,CAAC;QAOtC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,CAAA;QACrC,IAAI,CAAC,IAAI,EAAE,CAAC;IACb,CAAC;IACD;;;QAGI;IACI,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,GAAG,GAAG,MAAM,IAAA,SAAG,EAAC,EAAE,KAAK,EAAG,SAAS,EAAE,CAAC,CAAA;QAC3C,IAAI,CAAC,MAAM,EAAE,CAAC;IACf,CAAC;IACD;;QAEI;IACI,MAAM;QACb,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACtD,CAAC;IACD;;;QAGI;IACI,KAAK,CAAC,QAAQ,CAAE,KAAW,EAAE,GAAS;QAC7C,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,WAAW,EAAE;YACvC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,kBAAkB,GAAG,C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CAAC,QAAQ,CAAC,MAAM,CAAC,eAAe,EAAE,aAAa,CAAC,CAAA;YACpD,IAAI,gBAAgB,IAAI,gBAAgB,CAAC,OAAO,EAAE;gBACjD,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;aACjC;iBAAM;gBACN,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;aACjC;SACD;QAED,IAAI,MAAM,IAAI,MAAM,CAAC,OAAO,EAAE;YAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;YACpB,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;YACjC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;SACtC;QAED,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;QACtC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,CAAA;QAC5C,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;QAGpC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAA;QAEpB,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;QAE3B,OAAO,IAAI,CAAA;IACZ,CAAC;CAMD;AA1jBD,0BA0jBC;AAED,MAAM,CAAC,OAAO,GAAG,EAAE,OAAO,EAAE,CAAA"} \ No newline at end of file diff --git a/app/lib/display/Readme.md b/app/lib/display/Readme.md index e69de29..b4f456a 100644 --- a/app/lib/display/Readme.md +++ b/app/lib/display/Readme.md @@ -0,0 +1,5 @@ + + +## display +Provides features for displaying a full screen display of images for the digital module. diff --git a/app/lib/display/index.js.map b/app/lib/display/index.js.map index e8b4e1c..fd9ef90 100644 --- a/app/lib/display/index.js.map +++ b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KAAK,CAAC,KAAK;QACjB,OAAO,MAAM,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;IACM,KAAK,CAAC,KAAK,CAAG,KAAc;QAClC,OAAO,MAAM,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC;IACM,KAAK,CAAC,KAAK;QACjB,OAAO,MAAM,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC;IAC9B,CAAC;IACM,MAAM,CAAE,EAAW;QACzB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAa,EAAE,EAAE;YACnD,IAAI,OAAO,CAAC,EAAE,IAAI,EAAE;gBAAE,OAAO,IAAI,CAAC;QACnC,CAAC,CAAC,CAAC;IACJ,CAAC;CACD;AAlDD,0BAkDC;AAED,MAAM,CAAC,OAAO,GAAG,EAAE,OAAO,EAAE,CAAA"} \ No newline at end of file diff --git a/app/lib/ffmpeg/Readme.md b/app/lib/ffmpeg/Readme.md index e69de29..a597032 100644 --- a/app/lib/ffmpeg/Readme.md +++ b/app/lib/ffmpeg/Readme.md @@ -0,0 +1,124 @@ + + +## ffmpeg + +* [ffmpeg](#module_ffmpeg) + * [~FFMPEG](#module_ffmpeg..FFMPEG) + * [.init()](#module_ffmpeg..FFMPEG+init) + * [.padded_frame(i)](#module_ffmpeg..FFMPEG+padded_frame) ⇒ string + * [.parseStderr(line)](#module_ffmpeg..FFMPEG+parseStderr) + * [.frame(state, light)](#module_ffmpeg..FFMPEG+frame) ⇒ string + * [.frames(video, obj)](#module_ffmpeg..FFMPEG+frames) ⇒ ? + * [.clear(frame)](#module_ffmpeg..FFMPEG+clear) ⇒ boolean + * [.clearAll()](#module_ffmpeg..FFMPEG+clearAll) + * [.checkDir()](#module_ffmpeg..FFMPEG+checkDir) + * [~Creates an ffmpeg class](#module_ffmpeg..Creates an ffmpeg class) + * [new Creates an ffmpeg class(sys)](#new_module_ffmpeg..Creates an ffmpeg class_new) + + + +### ffmpeg~FFMPEG +**Kind**: inner class of [ffmpeg](#module_ffmpeg) + +* [~FFMPEG](#module_ffmpeg..FFMPEG) + * [.init()](#module_ffmpeg..FFMPEG+init) + * [.padded_frame(i)](#module_ffmpeg..FFMPEG+padded_frame) ⇒ string + * [.parseStderr(line)](#module_ffmpeg..FFMPEG+parseStderr) + * [.frame(state, light)](#module_ffmpeg..FFMPEG+frame) ⇒ string + * [.frames(video, obj)](#module_ffmpeg..FFMPEG+frames) ⇒ ? + * [.clear(frame)](#module_ffmpeg..FFMPEG+clear) ⇒ boolean + * [.clearAll()](#module_ffmpeg..FFMPEG+clearAll) + * [.checkDir()](#module_ffmpeg..FFMPEG+checkDir) + + + +#### ffmpeG.init() +Async method to call async functions from constructor + +**Kind**: instance method of [FFMPEG](#module_ffmpeg..FFMPEG) + + +#### ffmpeG.padded\_frame(i) ⇒ string +Add padding to a number to 5 places. Return a string. + +**Kind**: instance method of [FFMPEG](#module_ffmpeg..FFMPEG) +**Returns**: string - Padded string + +| Param | Type | Description | +| --- | --- | --- | +| i | integer | Integer to pad | + + + +#### ffmpeG.parseStderr(line) +Parse the stderr output of ffmpeg + +**Kind**: instance method of [FFMPEG](#module_ffmpeg..FFMPEG) + +| Param | Type | Description | +| --- | --- | --- | +| line | string | Stderr line | + + + +#### ffmpeG.frame(state, light) ⇒ string +Render a single frame from a video or image to a png. + +**Kind**: instance method of [FFMPEG](#module_ffmpeg..FFMPEG) +**Returns**: string - Path of frame + +| Param | Type | Description | +| --- | --- | --- | +| state | object | State object containing file data | +| light | object | Object containing color information for frame | + + + +#### ffmpeG.frames(video, obj) ⇒ ? +Render all frames in a video to the temp directory. +Not in use. + +**Kind**: instance method of [FFMPEG](#module_ffmpeg..FFMPEG) + +| Param | Type | Description | +| --- | --- | --- | +| video | string | Path to video | +| obj | object | Not sure | + + + +#### ffmpeG.clear(frame) ⇒ boolean +Clears a specific frame from the tmp directory + +**Kind**: instance method of [FFMPEG](#module_ffmpeg..FFMPEG) +**Returns**: boolean - True if successful, false if not + +| Param | Type | Description | +| --- | --- | --- | +| frame | integer | Integer of frame to clear | + + + +#### ffmpeG.clearAll() +Deletes all frames in temp directory. + +**Kind**: instance method of [FFMPEG](#module_ffmpeg..FFMPEG) + + +#### ffmpeG.checkDir() +Checks if mcopy temp directory exists. If it doesn't, +creates it. + +**Kind**: instance method of [FFMPEG](#module_ffmpeg..FFMPEG) + + +### ffmpeg~Creates an ffmpeg class +**Kind**: inner class of [ffmpeg](#module_ffmpeg) + + +#### new Creates an ffmpeg class(sys) + +| Param | Type | Description | +| --- | --- | --- | +| sys | object | System object to be used to get temp directory | + diff --git a/app/lib/ffmpeg/index.d.ts b/app/lib/ffmpeg/index.d.ts index a724ed0..f3de697 100644 --- a/app/lib/ffmpeg/index.d.ts +++ b/app/lib/ffmpeg/index.d.ts @@ -1,5 +1,6 @@ import type { FilmOutState } from 'filmout'; import type { System } from 'system'; +import type { LightState } from 'light'; interface StdErr { frame: number; fps: number; @@ -51,7 +52,7 @@ export declare class FFMPEG { * * @returns {string} Path of frame **/ - frame(state: FilmOutState, light: any): Promise; + frame(state: FilmOutState, light: LightState): Promise; /** * Render all frames in a video to the temp directory. * Not in use. diff --git a/app/lib/ffmpeg/index.js b/app/lib/ffmpeg/index.js index 0393d58..7067d11 100644 --- a/app/lib/ffmpeg/index.js +++ b/app/lib/ffmpeg/index.js @@ -7,30 +7,6 @@ const fs_extra_1 = require("fs-extra"); const exec_1 = require("exec"); const child_process_1 = require("child_process"); const log_1 = require("log"); -async function spawnAsync(bin, args) { - return new Promise((resolve, reject) => { - const child = (0, child_process_1.spawn)(bin, args); - let stdout = ''; - let stderr = ''; - child.on('exit', (code) => { - if (code === 0) { - return resolve({ stdout, stderr }); - } - else { - console.error(`Process exited with code: ${code}`); - console.error(stderr); - return reject(stderr); - } - }); - child.stdout.on('data', (data) => { - stdout += data; - }); - child.stderr.on('data', (data) => { - stderr += data; - }); - return child; - }); -} /** @class FFMPEG **/ class FFMPEG { /** @@ -75,21 +51,30 @@ class FFMPEG { **/ parseStderr(line) { //frame= 6416 fps= 30 q=31.0 size= 10251kB time=00:03:34.32 bitrate= 391.8kbits/s speed= 1x - let obj = {}; + const obj = { + frame: 0, + fps: 0, + time: '', + speed: 0, + size: '' + }; + let frameStr; + let fpsStr; + let speedStr; if (line.substring(0, 'frame='.length) === 'frame=') { try { - obj.frame = line.split('frame=')[1].split('fps=')[0]; - obj.frame = parseInt(obj.frame); - obj.fps = line.split('fps=')[1].split('q=')[0]; - obj.fps = parseFloat(obj.fps); + frameStr = line.split('frame=')[1].split('fps=')[0]; + obj.frame = parseInt(frameStr); + fpsStr = line.split('fps=')[1].split('q=')[0]; + obj.fps = parseFloat(fpsStr); obj.time = line.split('time=')[1].split('bitrate=')[0]; - obj.speed = line.split('speed=')[1].trim().replace('x', ''); - obj.speed = parseFloat(obj.speed); + speedStr = line.split('speed=')[1].trim().replace('x', ''); + obj.speed = parseFloat(speedStr); obj.size = line.split('size=')[1].split('time=')[0].trim(); } catch (err) { - console.error(err); - console.log(line); + this.log.error('Error parsing stderr line', err); + this.log.info(line); process.exit(); } } @@ -113,7 +98,7 @@ class FFMPEG { const padded = this.padded_frame(frameNum); let ext = 'png'; let rgb = light.color; - let rgba = {}; + let rgba; let tmpoutput; let cmd; let output; @@ -153,7 +138,7 @@ class FFMPEG { this.log.info(`"${output.stdout.trim()}"`); if (rgb[0] !== 255 || rgb[1] !== 255 || rgb[2] !== 255) { rgb = rgb.map((e) => { - return parseInt(e); + return typeof e === 'string' ? parseInt(e) : e; }); rgba = { r: rgb[0], g: rgb[1], b: rgb[2], a: 255 }; try { @@ -218,19 +203,19 @@ class FFMPEG { let stderr = ''; this.log.info(`${this.bin} ${args.join(' ')}`); this.child = (0, child_process_1.spawn)(this.bin, args); - this.child.on('exit', (code) => { + this.child.on('exit', function (code) { //console.log('GOT TO EXIT'); if (code === 0) { - console.log(stderr); - console.log(stdout); + this.log.info(stderr); + this.log.info(stdout); return resolve(true); } else { - console.error(`Process exited with code: ${code}`); - console.error(stderr); + this.log.error(`Process exited with code: ${code}`); + this.log.error(stderr); return reject(stderr + stdout); } - }); + }.bind(this)); this.child.stdout.on('data', (data) => { const line = data.toString(); stdout += line; diff --git a/app/lib/ffmpeg/index.js.map b/app/lib/ffmpeg/index.js.map index 7cfaa5e..3c90bd3 100644 --- a/app/lib/ffmpeg/index.js.map +++ b/app/lib/ffmpeg/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ffmpeg/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAEb,sBAAsB;AAEtB,+BAA4B;AAC5B,uCAA0D;AAC1D,+BAA4B;AAC5B,iDAAsC;AACtC,6BAA0B;AAmB1B,KAAK,UAAU,UAAU,CAAE,GAAY,EAAE,IAAe;IACvD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAkB,EAAE,MAAiB,EAAE,EAAE;QACtD,MAAM,KAAK,GAAG,IAAA,qBAAK,EAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAC/B,IAAI,MAAM,GAAG,EAAE,CAAC;QAChB,IAAI,MAAM,GAAG,EAAE,CAAC;QAChB,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAa,EAAE,EAAE;YAC/B,IAAI,IAAI,KAAK,CAAC,EAAE;gBACZ,OAAO,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;aACtC;iBAAM;gBACH,OAAO,CAAC,KAAK,CAAC,6BAA6B,IAAI,EAAE,CAAC,CAAC;gBACnD,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;gBACtB,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;aACzB;QACL,CAAC,CAAC,CAAC;QACH,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAa,EAAE,EAAE;YACtC,MAAM,IAAI,IAAI,CAA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CAAC,CAAC,CAAC;iBAClC;gBAAC,OAAO,GAAG,EAAE;oBACb,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACpB;YACF,CAAC,CAAC,CAAC;SACH;IACF,CAAC;IAED;;;QAGI;IACI,KAAK,CAAC,QAAQ;QACrB,IAAI,UAAoB,CAAC;QACzB,IAAI;YACH,UAAU,GAAG,MAAM,IAAA,iBAAM,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACvC;QAAC,OAAO,GAAG,EAAE;YACb,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,4BAA4B,EAAE,GAAG,CAAC,CAAC;SAClD;QAED,IAAI,CAAC,UAAU,EAAE;YAChB,IAAI;gBACH,MAAM,IAAA,gBAAK,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;gBACzB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,kBAAkB,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;aAC/C;YAAC,OAAO,GAAG,EAAE;gBACb,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,wBAAwB,EAAE,GAAG,CAAC,CAAC;aAC9C;SACD;QACD,IAAI;YACH,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC;SACtB;QAAC,OAAO,GAAG,EAAE;YACb,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;SACpB;IACF,CAAC;CACD;AAzWD,wBAyWC;AAGD,MAAM,CAAC,OAAO,GAAG,EAAE,MAAM,EAAE,CAAC"} \ No newline at end of file diff --git a/app/lib/ffprobe/Readme.md b/app/lib/ffprobe/Readme.md index e69de29..c70b484 100644 --- a/app/lib/ffprobe/Readme.md +++ b/app/lib/ffprobe/Readme.md @@ -0,0 +1,3 @@ + + +## FFPROBE diff --git a/app/lib/filmout/Readme.md b/app/lib/filmout/Readme.md index 967474c..798e174 100644 --- a/app/lib/filmout/Readme.md +++ b/app/lib/filmout/Readme.md @@ -1,44 +1,3 @@ - + -## Digital -**Kind**: global class - -* [Digital](#Digital) - * [.init()](#Digital+init) - * [.listen()](#Digital+listen) - * [.set()](#Digital+set) - * [.move()](#Digital+move) - * [.start()](#Digital+start) - * [.end()](#Digital+end) - * [.connectDigital()](#Digital+connectDigital) - - - -### digital.init() -**Kind**: instance method of [Digital](#Digital) - - -### digital.listen() -**Kind**: instance method of [Digital](#Digital) - - -### digital.set() -**Kind**: instance method of [Digital](#Digital) - - -### digital.move() -**Kind**: instance method of [Digital](#Digital) - - -### digital.start() -**Kind**: instance method of [Digital](#Digital) - - -### digital.end() -**Kind**: instance method of [Digital](#Digital) - - -### digital.connectDigital() -Use a file as the "digital" source on "projector" - -**Kind**: instance method of [Digital](#Digital) +## FilmOut diff --git a/app/lib/filmout/index.d.ts b/app/lib/filmout/index.d.ts index 0ff72aa..188c2a7 100644 --- a/app/lib/filmout/index.d.ts +++ b/app/lib/filmout/index.d.ts @@ -3,7 +3,7 @@ import type { Display } from 'display'; import type { Light } from 'light'; import type { FFMPEG } from 'ffmpeg'; import type { FFPROBE } from 'ffprobe'; -import type { WebContents } from 'electron'; +import type { WebContents, IpcMainEvent } from 'electron'; interface FilmOutState { hash: string; frame: number; @@ -90,7 +90,7 @@ export declare class FilmOut { * * @returns {boolean} Success state **/ - onConnect(evt: any, arg: any): Promise; + onConnect(evt: IpcMainEvent, arg: any): Promise; /** * Pre-export all frames from video for display. * @@ -99,7 +99,7 @@ export declare class FilmOut { * * @returns {any} UI send call */ - onPreExport(evt: Event, arg: any): Promise; + onPreExport(evt: IpcMainEvent, arg: any): Promise; /** * Return true if gif is animated, false if it is a still * @@ -140,33 +140,33 @@ export declare class FilmOut { * @param {object} evt Original event * @param {object} arg Arguments from message **/ - previewFrame(evt: any, arg: any): Promise; + previewFrame(evt: IpcMainEvent, arg: any): Promise; /** * Open a single frame in a display window to preview filmout. * * @param {object} evt Original event * @param {object} arg Arguments from message **/ - preview(evt: any, arg: any): Promise; + preview(evt: IpcMainEvent, arg: any): Promise; /** * **/ - focus(evt: any, arg: any): Promise; + focus(evt: IpcMainEvent, arg: any): Promise; /** * **/ - field(evt: any, arg: any): Promise; + field(evt: IpcMainEvent, arg: any): Promise; /** * **/ - meter(evt: any, arg: any): Promise; + meter(evt: IpcMainEvent, arg: any): Promise; /** * **/ - close(evt: any, arg: any): Promise; + close(evt: IpcMainEvent, arg: any): Promise; /** * **/ - onDisplay(evt: any, arg: any): void; + onDisplay(evt: IpcMainEvent, arg: any): void; } export type { FilmOutState }; diff --git a/app/lib/filmout/index.js b/app/lib/filmout/index.js index df2b673..96f90ba 100644 --- a/app/lib/filmout/index.js +++ b/app/lib/filmout/index.js @@ -10,7 +10,7 @@ const path_1 = require("path"); const fs_extra_1 = require("fs-extra"); const delay_1 = require("delay"); const crypto_1 = require("crypto"); -const frame_1 = __importDefault(require("frame")); +const frame_1 = require("frame"); const log_1 = require("log"); /** * @module FilmOut @@ -329,7 +329,7 @@ class FilmOut { async stillInfo(pathStr) { let info; try { - info = await frame_1.default.info(pathStr); + info = await frame_1.Frame.info(pathStr); } catch (err) { this.log.error(err, 'FILMOUT', true, true); diff --git a/app/lib/filmout/index.js.map b/app/lib/filmout/index.js.map index 74a1bb4..22805f3 100644 --- a/app/lib/filmout/index.js.map +++ b/app/lib/filmout/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/filmout/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;AAEb,uCAAmC;AACnC,kFAA6D;AAC7D,+BAAqC;AACrC,uCAAoD;AACpD,iCAA8B;AAC9B,mCAAoC;AAEpC,kDAA0B;AAC1B,6BAA0B;AAyB1B;;IAEI;AACJ,MAAa,OAAO;IA8BnB;;;;;;;;;QASI;IACJ,YAAa,OAAiB,EAAE,MAAe,EAAE,MAAe,EAAE,OAAiB,EAAE,EAAgB,EAAE,KAAa;QAvC5G,OAAE,GAAY,SAAS,CAAC;QACxB,oBAAe,GAAe,CAAC,MAAM,EAAE,OA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AEI;IACJ,KAAK,CAAC,KAAK,CAAE,GAAkB,EAAE,GAAS;QACzC,IAAI;YACH,IAAI,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;gBACtC,OAAM;aACN;YACD,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YAC1B,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;SAE3B;QAAC,OAAO,GAAG,EAAE;YACb,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;SAC3C;IACF,CAAC;IACD;;QAEI;IACJ,SAAS,CAAE,GAAkB,EAAE,GAAS;QACvC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACjC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,2BAA2B,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;IACzD,CAAC;CACD;AAzfD,0BAyfC;AAED,MAAM,CAAC,OAAO,GAAG,EAAE,OAAO,EAAE,CAAC"} \ No newline at end of file diff --git a/app/lib/frame/Readme.md b/app/lib/frame/Readme.md new file mode 100644 index 0000000..e69de29 diff --git a/app/lib/frame/index.d.ts b/app/lib/frame/index.d.ts index 2b01486..06f50ee 100644 --- a/app/lib/frame/index.d.ts +++ b/app/lib/frame/index.d.ts @@ -4,7 +4,7 @@ interface RGBA { b: number; a: number; } -export default class Frame { +export declare class Frame { static info(imagePath: string): Promise<{ width: any; height: any; diff --git a/app/lib/frame/index.js b/app/lib/frame/index.js index d740511..6001990 100644 --- a/app/lib/frame/index.js +++ b/app/lib/frame/index.js @@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +exports.Frame = void 0; const jimp_1 = __importDefault(require("jimp")); class Frame { static async info(imagePath) { @@ -65,6 +66,6 @@ class Frame { return imagePath; } } -exports.default = Frame; -module.exports = Frame; +exports.Frame = Frame; +module.exports = { Frame }; //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/app/lib/frame/index.js.map b/app/lib/frame/index.js.map index 5221429..a5b7035 100644 --- a/app/lib/frame/index.js.map +++ b/app/lib/frame/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/frame/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;AAEb,gDAAwB;AASxB,MAAqB,KAAK;IACzB,MAAM,CAAC,KAAK,CAAC,IAAI,CAAE,SAAkB;QACpC,IAAI,KAAW,CAAC;QAChB,IAAI;YACH,KAAK,GAAG,MAAM,cAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SACnC;QAAC,OAAO,GAAG,EAAE;YACb,MAAM,GAAG,CAAC;SACV;QACD,OAAO;YACN,KAAK,EAAG,KAAK,CAAC,MAAM,CAAC,KAAK;YAC1B,MAAM,EAAG,KAAK,CAAC,MAAM,CAAC,MAAM;SAC5B,CAAC;IACH,CAAC;IACD,MAAM,CAAC,KAAK,CAAC,UAAU,CAAE,KAAc,EAAE,MAAe,EAAE,KAAY;QACrE,YAAY;QACZ,MAAM,QAAQ,GAAY,cAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;QAC7E,OAAO,IAAI,OAAO,CAAC,CAAC,OAAkB,EAAE,MAAiB,EAAE,EAAE;YAC5D,OAAO,IAAI,cAAI,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;gBACrD,IAAI,GAAG,EAAE;oBACR,OAAO,MAAM,CAAC,GAAG,CAAC,CAAA;iBAClB;gBACD,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC;YACzB,CAAC,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,KAAK,CAAE,MAAY,EAAE,KAAY,EAAE,SAAkB;QACjE,oKAAoK;QACpK,MAAM,OAAO,GAAS;YACrB,IAAI,EAAE,cAAI,CAAC,YAAY;YACvB,aAAa,EAAE,GAAG;YAClB,WAAW,EAAE,GAAG;SAChB,CAAC;QACF,IAAI,KAAc,CAAC;QACnB,IAAI,MAAe,CAAC;QACpB,IAAI,MAAY,CAAC;QACjB,IAAI,GAAS,CAAC;QAEd,IAAI;YACH,GAAG,GAAG,MAAM,cAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SAC9B;QAAC,OAAO,GAAG,EAAE;YACb,MAAM,GAAG,CAAC;SACV;QAED,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC;QACzB,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC;QAE3B,IAAI;YACH,MAAM,GAAG,MAAM,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;SACtD;QAAC,OAAO,GAAG,EAAE;YACb,MAAM,GAAG,CAAC;SACV;QAED,MAAM,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC;QAErC,IAAI;YACH,MAAM,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;SACnC;QAAC,OAAO,GAAG,EAAE;YACb,MAAM,GAAG,CAAC;SACV;QAED,OAAO,SAAS,CAAC;IAClB,CAAC;CACD;AA/DD,wBA+DC;AAED,MAAM,CAAC,OAAO,GAAG,KAAK,CAAA"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/frame/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;AAEb,gDAAwB;AASxB,MAAa,KAAK;IACjB,MAAM,CAAC,KAAK,CAAC,IAAI,CAAE,SAAkB;Q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AC,MAAM,CAAC,CAAC;SAC9B;QAAC,OAAO,GAAG,EAAE;YACb,MAAM,GAAG,CAAC;SACV;QAED,KAAK,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC;QACzB,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC;QAE3B,IAAI;YACH,MAAM,GAAG,MAAM,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;SACtD;QAAC,OAAO,GAAG,EAAE;YACb,MAAM,GAAG,CAAC;SACV;QAED,MAAM,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC;QAErC,IAAI;YACH,MAAM,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;SACnC;QAAC,OAAO,GAAG,EAAE;YACb,MAAM,GAAG,CAAC;SACV;QAED,OAAO,SAAS,CAAC;IAClB,CAAC;CACD;AA/DD,sBA+DC;AAED,MAAM,CAAC,OAAO,GAAG,EAAE,KAAK,EAAE,CAAA"} \ No newline at end of file diff --git a/app/lib/light/index.d.ts b/app/lib/light/index.d.ts index c95a484..0aab0c7 100644 --- a/app/lib/light/index.d.ts +++ b/app/lib/light/index.d.ts @@ -1,7 +1,11 @@ import type { Arduino } from 'arduino'; +import type { Config } from 'cfg'; import type { WebContents } from 'electron'; +interface LightState { + color: number[]; +} export declare class Light { - state: any; + state: LightState; private arduino; private cfg; private ui; @@ -12,7 +16,7 @@ export declare class Light { /** * **/ - constructor(arduino: Arduino, cfg: any, ui: WebContents); + constructor(arduino: Arduino, cfg: Config, ui: WebContents); /** * **/ @@ -28,9 +32,10 @@ export declare class Light { /** * **/ - set(rgb: number[], id: string, on?: boolean): Promise; + set(rgb: number[], id: string, on?: boolean): Promise; /** * **/ private end; } +export type { LightState }; diff --git a/app/lib/light/index.js b/app/lib/light/index.js index 0814bae..1e5d2ab 100644 --- a/app/lib/light/index.js +++ b/app/lib/light/index.js @@ -49,7 +49,6 @@ class Light { else if (typeof arg.disable !== 'undefined') { this.enabled = false; } - return true; } /** * @@ -66,28 +65,27 @@ class Light { } await (0, delay_1.delay)(1); try { - this.arduino.sendString(this.id, str); + ms += await this.arduino.sendString(this.id, str); } catch (err) { this.log.error('Error sending light string', err); } await (0, delay_1.delay)(1); - await ms; - return await this.end(rgb, id, ms); + ms += 2; + await this.end(rgb, id, ms); + return ms; } /** * **/ async end(rgb, id, ms) { let res; - //console.trace() this.log.info(`Light set to ${rgb.join(',')}`, 'LIGHT', true, true); try { - //console.dir({ rgb, id, ms }) res = await this.ui.send(this.id, { rgb, id, ms }); } catch (err) { - console.error(err); + this.log.error(`Error ending light`, err); throw err; } return res; diff --git a/app/lib/light/index.js.map b/app/lib/light/index.js.map index 7e092f4..6af79ae 100644 --- a/app/lib/light/index.js.map +++ b/app/lib/light/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/light/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAEb,uCAAmC;AACnC,iCAA8B;AAC9B,6BAA0B;AAK1B,MAAa,KAAK;IAYjB;;QAEI;IACJ,YAAa,OAAiB,EAAE,GAAS,EAAE,EAAgB;QAdpD,UAAK,GAAS,EAAE,KAAK,EAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAA;QAMlC,QAAG,GAAoB,kBAAO,CAAC;QAC/B,YAAO,GAAa,IAAI,CAAC;QAEzB,OAAE,GAAY,OAAO,CAAC;QAM7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,IAAI,EAAE,CAAC;IACb,CAAC;IAED;;QAEI;IACI,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,GAAG,GAAG,MAAM,IAAA,SAAG,EAAC,EAAE,KAAK,EAAG,IAAI,C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,EAAE;YACb,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,6BAA6B,EAAE,GAAG,CAAC,CAAC;SACnD;QACD,MAAM,IAAA,aAAK,EAAC,CAAC,CAAC,CAAC;QACf,IAAI;YACH,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;SACtC;QAAC,OAAO,GAAG,EAAE;YACb,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,4BAA4B,EAAE,GAAG,CAAC,CAAC;SAClD;QACD,MAAM,IAAA,aAAK,EAAC,CAAC,CAAC,CAAC;QACf,MAAM,EAAE,CAAC;QACT,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpC,CAAC;IAED;;QAEI;IACI,KAAK,CAAC,GAAG,CAAE,GAAc,EAAE,EAAW,EAAE,EAAW;QAC1D,IAAI,GAAG,CAAC;QACR,iBAAiB;QACjB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,gBAAgB,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QACpE,IAAI;YACH,8BAA8B;YAC9B,GAAG,GAAG,MAAM,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;SACnD;QAAC,OAAO,GAAG,EAAE;YACb,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACnB,MAAM,GAAG,CAAA;SACT;QACD,OAAO,GAAG,CAAC;IACZ,CAAC;CACD;AAhGD,sBAgGC;AAED,MAAM,CAAC,OAAO,GAAG,EAAE,KAAK,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/light/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAEb,u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AAC,IAAI,CAAC,gBAAgB,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QACpE,IAAI;YACH,GAAG,GAAG,MAAM,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;SACnD;QAAC,OAAO,GAAG,EAAE;YACb,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,oBAAoB,EAAE,GAAG,CAAC,CAAC;YAC1C,MAAM,GAAG,CAAA;SACT;QACD,OAAO,GAAG,CAAC;IACZ,CAAC;CACD;AA9FD,sBA8FC;AAED,MAAM,CAAC,OAAO,GAAG,EAAE,KAAK,EAAE,CAAC"} \ No newline at end of file diff --git a/app/lib/log/Readme.md b/app/lib/log/Readme.md index 4c3bea3..5cda640 100644 --- a/app/lib/log/Readme.md +++ b/app/lib/log/Readme.md @@ -1,3 +1,16 @@ +## Functions + +
+
logFile()string
+

Determine the location of the log file based on the operating system +and return as an absolute string from os.homedir()

+
+
Log(arg)object
+

Create and return the logger transport based on settings determined in +arguments object

+
+
+ ## logFile() ⇒ string @@ -6,3 +19,16 @@ and return as an absolute string from os.homedir() **Kind**: global function **Returns**: string - Path to log file + + +## Log(arg) ⇒ object +Create and return the logger transport based on settings determined in +arguments object + +**Kind**: global function +**Returns**: object - Logger transport + +| Param | Type | Description | +| --- | --- | --- | +| arg | object | Arguments from process | + diff --git a/app/lib/mscript/Readme.md b/app/lib/mscript/Readme.md index 3112f09..d50c8d1 100644 --- a/app/lib/mscript/Readme.md +++ b/app/lib/mscript/Readme.md @@ -1,186 +1,424 @@ - +## Classes -## lib/mscript +
+
Create new Mscript interpreter
+
+
Mscript
+

class Mscript

+
+
-* [lib/mscript](#module_lib/mscript) - * [~Mscript](#module_lib/mscript..Mscript) - * [.clear()](#module_lib/mscript..Mscript+clear) - * [.interpret()](#module_lib/mscript..Mscript+interpret) - * [.basic_cmd()](#module_lib/mscript..Mscript+basic_cmd) - * [.new_loop()](#module_lib/mscript..Mscript+new_loop) - * [.end_loop()](#module_lib/mscript..Mscript+end_loop) - * [.move_cam()](#module_lib/mscript..Mscript+move_cam) - * [.move_proj()](#module_lib/mscript..Mscript+move_proj) - * [.set_state()](#module_lib/mscript..Mscript+set_state) - * [.last_loop()](#module_lib/mscript..Mscript+last_loop) - * [.parent_loop()](#module_lib/mscript..Mscript+parent_loop) - * [.loop_count()](#module_lib/mscript..Mscript+loop_count) - * [.fade()](#module_lib/mscript..Mscript+fade) - * [.fade_count()](#module_lib/mscript..Mscript+fade_count) - * [.fade_start()](#module_lib/mscript..Mscript+fade_start) - * [.fade_end()](#module_lib/mscript..Mscript+fade_end) - * [.update()](#module_lib/mscript..Mscript+update) - * [.str_to_arr()](#module_lib/mscript..Mscript+str_to_arr) - * [.light_to_arr()](#module_lib/mscript..Mscript+light_to_arr) - * [.light_state()](#module_lib/mscript..Mscript+light_state) - * [.fail()](#module_lib/mscript..Mscript+fail) - * [~startsWith()](#module_lib/mscript..startsWith) +## Functions - +
+
startsWith(str, target, position)boolean
+

startswith function from lodash, do not want the entire lib for this

+
+
-### lib/mscript~Mscript + + +## Create new Mscript interpreter +**Kind**: global class + + +## Mscript class Mscript -**Kind**: inner class of [lib/mscript](#module_lib/mscript) +**Kind**: global class -* [~Mscript](#module_lib/mscript..Mscript) - * [.clear()](#module_lib/mscript..Mscript+clear) - * [.interpret()](#module_lib/mscript..Mscript+interpret) - * [.basic_cmd()](#module_lib/mscript..Mscript+basic_cmd) - * [.new_loop()](#module_lib/mscript..Mscript+new_loop) - * [.end_loop()](#module_lib/mscript..Mscript+end_loop) - * [.move_cam()](#module_lib/mscript..Mscript+move_cam) - * [.move_proj()](#module_lib/mscript..Mscript+move_proj) - * [.set_state()](#module_lib/mscript..Mscript+set_state) - * [.last_loop()](#module_lib/mscript..Mscript+last_loop) - * [.parent_loop()](#module_lib/mscript..Mscript+parent_loop) - * [.loop_count()](#module_lib/mscript..Mscript+loop_count) - * [.fade()](#module_lib/mscript..Mscript+fade) - * [.fade_count()](#module_lib/mscript..Mscript+fade_count) - * [.fade_start()](#module_lib/mscript..Mscript+fade_start) - * [.fade_end()](#module_lib/mscript..Mscript+fade_end) - * [.update()](#module_lib/mscript..Mscript+update) - * [.str_to_arr()](#module_lib/mscript..Mscript+str_to_arr) - * [.light_to_arr()](#module_lib/mscript..Mscript+light_to_arr) - * [.light_state()](#module_lib/mscript..Mscript+light_state) - * [.fail()](#module_lib/mscript..Mscript+fail) +* [Mscript](#Mscript) + * [.clear()](#Mscript+clear) + * [.interpret(text, callback)](#Mscript+interpret) ⇒ object + * [.variable(line)](#Mscript+variable) + * [.variable_replace(line)](#Mscript+variable_replace) ⇒ string + * [.basic_cmd(line, short)](#Mscript+basic_cmd) + * [.new_loop(line, fade)](#Mscript+new_loop) + * [.end_loop(line)](#Mscript+end_loop) + * [.move_cam(line)](#Mscript+move_cam) + * [.move_cam2(line)](#Mscript+move_cam2) + * [.move_proj(line)](#Mscript+move_proj) + * [.move_proj2(line)](#Mscript+move_proj2) + * [.set_state(line)](#Mscript+set_state) + * [.last_loop()](#Mscript+last_loop) ⇒ object + * [.parent_loop()](#Mscript+parent_loop) ⇒ object + * [.loop_count()](#Mscript+loop_count) ⇒ integer + * [.fade(line)](#Mscript+fade) + * [.fade_count(str)](#Mscript+fade_count) + * [.fade_start(str)](#Mscript+fade_start) ⇒ array + * [.fade_end(str)](#Mscript+fade_end) ⇒ array + * [.fade_rgb(start, end, len, x)](#Mscript+fade_rgb) ⇒ array + * [.rgb(str)](#Mscript+rgb) + * [.rgb_str(arr)](#Mscript+rgb_str) ⇒ string + * [.update(cmd)](#Mscript+update) + * [.str_to_arr(str, cmd)](#Mscript+str_to_arr) ⇒ array + * [.light_to_arr(str, cmd)](#Mscript+light_to_arr) ⇒ array + * [.light_state(Color)](#Mscript+light_state) + * [.delay(line)](#Mscript+delay) + * [.alert(line)](#Mscript+alert) + * [.pause(line)](#Mscript+pause) + * [.fail(msg)](#Mscript+fail) + * [.contains(arr, arr2)](#Mscript+contains) ⇒ boolean - + -#### mscript.clear() +### mscript.clear() Clear the state of the script -**Kind**: instance method of [Mscript](#module_lib/mscript..Mscript) - +**Kind**: instance method of [Mscript](#Mscript) + -#### mscript.interpret() +### mscript.interpret(text, callback) ⇒ object Main function, accepts multi-line string, parses into lines and interprets the instructions from the text. Returns an array -of steps to be fed into the mcopy. +of steps to be fed into the mcopy sequence. -**Kind**: instance method of [Mscript](#module_lib/mscript..Mscript) - +**Kind**: instance method of [Mscript](#Mscript) +**Returns**: object - if callback is not provided -#### mscript.basic\_cmd() -Apply a basic two character command +| Param | Type | Default | Description | +| --- | --- | --- | --- | +| text | string | | Mscript text to interpret | +| callback | function | | Function to call when string is interpreted | -**Kind**: instance method of [Mscript](#module_lib/mscript..Mscript) - + -#### mscript.new\_loop() +### mscript.variable(line) +Interprets variables for complex sequence behavior. +TODO: Fully implement, add test coverage + +**Kind**: instance method of [Mscript](#Mscript) + +| Param | Type | Description | +| --- | --- | --- | +| line | string | Line containing a variable assignment | + + + +### mscript.variable\_replace(line) ⇒ string +Replace variable with value at time of interpretation +TODO: Implement this please + +**Kind**: instance method of [Mscript](#Mscript) +**Returns**: string - New string to be interpreted + +| Param | Type | Description | +| --- | --- | --- | +| line | string | Line containing variable to be replaced with value | + + + +### mscript.basic\_cmd(line, short) +Interpret a basic two character command + +**Kind**: instance method of [Mscript](#Mscript) + +| Param | Type | Description | +| --- | --- | --- | +| line | string | Line of script to interpret | +| short | string | The short command to use | + + + +### mscript.new\_loop(line, fade) Start a new loop -**Kind**: instance method of [Mscript](#module_lib/mscript..Mscript) - +**Kind**: instance method of [Mscript](#Mscript) -#### mscript.end\_loop() +| Param | Type | Description | +| --- | --- | --- | +| line | string | Line to evaluate as either loop or fade | +| fade | boolean | Flag as true if fade | + + + +### mscript.end\_loop(line) Close the most recent loop -**Kind**: instance method of [Mscript](#module_lib/mscript..Mscript) - +**Kind**: instance method of [Mscript](#Mscript) -#### mscript.move\_cam() +| Param | Type | Description | +| --- | --- | --- | +| line | string | Line to interpret | + + + +### mscript.move\_cam(line) Move camera to explicitly-defined frame -**Kind**: instance method of [Mscript](#module_lib/mscript..Mscript) - +**Kind**: instance method of [Mscript](#Mscript) -#### mscript.move\_proj() +| Param | Type | Description | +| --- | --- | --- | +| line | string | Line to interpret with camera move statement | + + + +### mscript.move\_cam2(line) +Move secondary camera to explicitly-defined frame + +**Kind**: instance method of [Mscript](#Mscript) + +| Param | Type | Description | +| --- | --- | --- | +| line | string | Line to interpret with camera move statement | + + + +### mscript.move\_proj(line) Move projector to explicitly-defined frame -**Kind**: instance method of [Mscript](#module_lib/mscript..Mscript) - +**Kind**: instance method of [Mscript](#Mscript) -#### mscript.set\_state() +| Param | Type | Description | +| --- | --- | --- | +| line | string | Line containing `move` statement to interpret | + + + +### mscript.move\_proj2(line) +Move projector to explicitly-defined frame + +**Kind**: instance method of [Mscript](#Mscript) + +| Param | Type | Description | +| --- | --- | --- | +| line | string | Line containing `move` statement to interpret | + + + +### mscript.set\_state(line) Set the state of either the cam or projector -**Kind**: instance method of [Mscript](#module_lib/mscript..Mscript) - +**Kind**: instance method of [Mscript](#Mscript) -#### mscript.last\_loop() +| Param | Type | Description | +| --- | --- | --- | +| line | string | String containing set statement | + + + +### mscript.last\_loop() ⇒ object Return the last loop -**Kind**: instance method of [Mscript](#module_lib/mscript..Mscript) - +**Kind**: instance method of [Mscript](#Mscript) + -#### mscript.parent\_loop() +### mscript.parent\_loop() ⇒ object Return the second-last loop -**Kind**: instance method of [Mscript](#module_lib/mscript..Mscript) - +**Kind**: instance method of [Mscript](#Mscript) +**Returns**: object - Loop array + -#### mscript.loop\_count() +### mscript.loop\_count() ⇒ integer Extract the loop count integer from a LOOP cmd -**Kind**: instance method of [Mscript](#module_lib/mscript..Mscript) - +**Kind**: instance method of [Mscript](#Mscript) +**Returns**: integer - Loop count in string parsed into integer + -#### mscript.fade() +### mscript.fade(line) Execute a fade of frame length, from color to another color -**Kind**: instance method of [Mscript](#module_lib/mscript..Mscript) - +**Kind**: instance method of [Mscript](#Mscript) -#### mscript.fade\_count() +| Param | Type | Description | +| --- | --- | --- | +| line | string | Line containing a fade initiator | + + + +### mscript.fade\_count(str) Extract the fade length integer from a FADE cmd -**Kind**: instance method of [Mscript](#module_lib/mscript..Mscript) - +**Kind**: instance method of [Mscript](#Mscript) -#### mscript.fade\_start() +| Param | Type | Description | +| --- | --- | --- | +| str | string | Line containing the length of fade in frames | + + + +### mscript.fade\_start(str) ⇒ array Extract the start color from a string -**Kind**: instance method of [Mscript](#module_lib/mscript..Mscript) - +**Kind**: instance method of [Mscript](#Mscript) +**Returns**: array - Array containing RGB color values -#### mscript.fade\_end() +| Param | Type | Description | +| --- | --- | --- | +| str | string | Line containing the start color value in a fade initiator | + + + +### mscript.fade\_end(str) ⇒ array Extract the end color from a string -**Kind**: instance method of [Mscript](#module_lib/mscript..Mscript) - +**Kind**: instance method of [Mscript](#Mscript) +**Returns**: array - Array containing RGB color values -#### mscript.update() +| Param | Type | Description | +| --- | --- | --- | +| str | string | Line containing the end color value in a fade initiator | + + + +### mscript.fade\_rgb(start, end, len, x) ⇒ array +Determine the state of a fade at a particular frame in the sequence, x + +**Kind**: instance method of [Mscript](#Mscript) +**Returns**: array - Array containing RGB color values + +| Param | Type | Description | +| --- | --- | --- | +| start | array | Color the fade starts at | +| end | array | Color the fade finishes at | +| len | integer | Total length of the fade in frames | +| x | integer | Position of the fade to get color value of | + + + +### mscript.rgb(str) +Parse string into array of RGB color values. 0-255 octet. + +**Kind**: instance method of [Mscript](#Mscript) + +| Param | Type | Description | +| --- | --- | --- | +| str | string | String containing only color values as `#,#,#` | + + + +### mscript.rgb\_str(arr) ⇒ string +Cast RGB color values as string + +**Kind**: instance method of [Mscript](#Mscript) +**Returns**: string - String of RGB values + +| Param | Type | Description | +| --- | --- | --- | +| arr | array | Array to join into string | + + + +### mscript.update(cmd) Increase the state of a specific object, such as the camera/projector, -by the value defined in val +by the value defined in val. -**Kind**: instance method of [Mscript](#module_lib/mscript..Mscript) - +**Kind**: instance method of [Mscript](#Mscript) -#### mscript.str\_to\_arr() -Split string on command, extract any integers from string +| Param | Type | Description | +| --- | --- | --- | +| cmd | string | String representing command to interpret and update state | -**Kind**: instance method of [Mscript](#module_lib/mscript..Mscript) - + -#### mscript.light\_to\_arr() +### mscript.str\_to\_arr(str, cmd) ⇒ array +Split string on command, turn into array of commands +as long as count variable. Default 1. + +**Kind**: instance method of [Mscript](#Mscript) +**Returns**: array - Array containing commands + +| Param | Type | Description | +| --- | --- | --- | +| str | string | String to split | +| cmd | string | String representing command to split at | + + + +### mscript.light\_to\_arr(str, cmd) ⇒ array Split a string on a command to extract data for light array -**Kind**: instance method of [Mscript](#module_lib/mscript..Mscript) - +**Kind**: instance method of [Mscript](#Mscript) +**Returns**: array - An RGB array containing the color values -#### mscript.light\_state() +| Param | Type | Description | +| --- | --- | --- | +| str | string | String containing light command | +| cmd | string | String representing command | + + + +### mscript.light\_state(Color) Split a string to extract an rgb color value -**Kind**: instance method of [Mscript](#module_lib/mscript..Mscript) - +**Kind**: instance method of [Mscript](#Mscript) -#### mscript.fail() +| Param | Type | Description | +| --- | --- | --- | +| Color | string | string assign to color property | + + + +### mscript.delay(line) +Interpret a delay command + +**Kind**: instance method of [Mscript](#Mscript) + +| Param | Type | Description | +| --- | --- | --- | +| line | string | String containing delay command | + + + +### mscript.alert(line) +Interpret an alert command + +**Kind**: instance method of [Mscript](#Mscript) + +| Param | Type | Description | +| --- | --- | --- | +| line | string | String containing alert message | + + + +### mscript.pause(line) +Interpret an pause command + +**Kind**: instance method of [Mscript](#Mscript) + +| Param | Type | Description | +| --- | --- | --- | +| line | string | String containing alert message | + + + +### mscript.fail(msg) Throw an error with specific message -**Kind**: instance method of [Mscript](#module_lib/mscript..Mscript) - +**Kind**: instance method of [Mscript](#Mscript) -### lib/mscript~startsWith() +| Param | Type | Description | +| --- | --- | --- | +| msg | string | Error message to print | + + + +### mscript.contains(arr, arr2) ⇒ boolean +Determine if array contains matching elements of +another array + +**Kind**: instance method of [Mscript](#Mscript) +**Returns**: boolean - Whether arr contains elements in arr2 + +| Param | Type | Description | +| --- | --- | --- | +| arr | Array | Original array to compare | +| arr2 | Array | Array to compare elements from | + + + +## startsWith(str, target, position) ⇒ boolean startswith function from lodash, do not want the entire lib for this -**Kind**: inner method of [lib/mscript](#module_lib/mscript) +**Kind**: global function +**Returns**: boolean - True for match, false for no match + +| Param | Type | Description | +| --- | --- | --- | +| str | string | Text to evaluate | +| target | string | Text to compare string against | +| position | integer | Position in the string to make comparison at | + diff --git a/app/lib/processing/Readme.md b/app/lib/processing/Readme.md new file mode 100644 index 0000000..e69de29 diff --git a/app/lib/proj/index.d.ts b/app/lib/proj/index.d.ts index 04bea2e..4dd30a4 100644 --- a/app/lib/proj/index.d.ts +++ b/app/lib/proj/index.d.ts @@ -1,6 +1,7 @@ /** class representing the Projector features **/ import type { Arduino } from 'arduino'; import type { FilmOut } from 'filmout'; +import type { Config } from 'cfg'; import type { WebContents } from 'electron'; interface ProjectorState { pos: number; @@ -18,7 +19,7 @@ export declare class Projector { /** * **/ - constructor(arduino: Arduino, cfg: any, ui: WebContents, filmout: any, second?: boolean); + constructor(arduino: Arduino, cfg: Config, ui: WebContents, filmout: FilmOut, second?: boolean); /** * **/ diff --git a/app/lib/proj/index.js.map b/app/lib/proj/index.js.map index 07abe18..1f8d351 100644 --- a/app/lib/proj/index.js.map +++ b/app/lib/proj/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/proj/index.ts"],"names":[],"mappings":";AAAA,iDAAiD;;;AAEjD,uCAAmC;AACnC,6BAA0B;AAW1B,MAAa,SAAS;IAarB;;QAEI;IACJ,YAAa,OAAiB,EAAE,GAAS,EAAE,EAAgB,EAAE,OAAa,EAAE,SAAmB,KAAK;QAf7F,UAAK,GAAoB;YA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AI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAA;QACnC,MAAM,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAA;QAC5C,OAAO,EAAE,CAAA;IACV,CAAC;CACD;AA/JD,8BA+JC;AAED,MAAM,CAAC,OAAO,GAAG,EAAE,SAAS,EAAE,CAAA"} \ No newline at end of file diff --git a/app/lib/sequencer/Readme.md b/app/lib/sequencer/Readme.md index e69de29..615412c 100644 --- a/app/lib/sequencer/Readme.md +++ b/app/lib/sequencer/Readme.md @@ -0,0 +1,22 @@ + + +## lib/sequencer + +* [lib/sequencer](#module_lib/sequencer) + * [~Create a new sequencer and assign command and UI as private sub-classes](#module_lib/sequencer..Create a new sequencer and assign command and UI as private sub-classes) + * [new Create a new sequencer and assign command and UI as private sub-classes(cfg, cmd, ui)](#new_module_lib/sequencer..Create a new sequencer and assign command and UI as private sub-classes_new) + + + +### lib/sequencer~Create a new sequencer and assign command and UI as private sub-classes +**Kind**: inner class of [lib/sequencer](#module_lib/sequencer) + + +#### new Create a new sequencer and assign command and UI as private sub-classes(cfg, cmd, ui) + +| Param | Type | Description | +| --- | --- | --- | +| cfg | object | Configuration object | +| cmd | object | Shared command class | +| ui | object | Electron UI, browser window | + diff --git a/app/lib/sequencer/index.d.ts b/app/lib/sequencer/index.d.ts index 417bd7e..7f7ed43 100644 --- a/app/lib/sequencer/index.d.ts +++ b/app/lib/sequencer/index.d.ts @@ -1,4 +1,5 @@ import { Commands } from 'cmd'; +import type { Config } from 'cfg'; import type { WebContents } from 'electron'; export declare class Sequencer { private running; @@ -24,7 +25,7 @@ export declare class Sequencer { * @param {object} cmd Shared command class * @param {object} ui Electron UI, browser window **/ - constructor(cfg: any, cmd: Commands, ui: WebContents); + constructor(cfg: Config, cmd: Commands, ui: WebContents); /** * Take configuration object and assign all commands as keys * in the internal CMDS object. diff --git a/app/lib/sequencer/index.js.map b/app/lib/sequencer/index.js.map index d0d0515..cde8029 100644 --- a/app/lib/sequencer/index.js.map +++ b/app/lib/sequencer/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sequencer/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAEb,uCAAqD;AAErD,6BAA0B;AAE1B,iCAA8B;AAI9B,6BAA6B;AAE7B,IAAI,GAAe,CAAC;AAEpB,MAAa,SAAS;IAoBrB;;;;;;;QAOI;IAEJ,YAAa,GAAS,EAAE,GAAc,EAAE,EAAgB;QA5BhD,YAAO,GAAa,KAAK,CAAC;QAC1B,WAAM,GAAa,KAAK,CAAC;QAEzB,SAAI,GAAW,EAAE,CAAC;QAClB,cAAS,GAAY,CAAC,CAAC;QAEvB,QAAG,GAAW,EAAE,CAAC,CAAC,yBAAyB;QAC3C,UAAK,GAAY,CAAC,CAAC;QAInB,SAAI,GAAS,EAAE,CAAC;QAChB,QAAG,GAAoB,kBAAO,CAAC;QAG/B,OAAE,GAAY,UAAU,CAAC;QACzB,YAAO,GAAa,KAAK,CAAC;QAajC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACnB,IAAI,CAAC,IAAI,EAAE,CAAC;IACb,CAAC;IAED;;;;;QAKI;IACI,IAAI,CAAE,GAAS;QACtB,IAAI,IAAI,GAAc,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACvC,KAAK,IAAI,GAAG,IAAI,IAAI,EAAE;YACrB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;SAC1B;IACF,CAAC;IAED;;;;QAII;IACI,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,GAAG,GAAG,MAAM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,CAAC,KAAK,CAAC,OAAO,KAAK,IAAI,EAAE;YACjD,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;SACtC;QACD,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACrB,IAAI,IAAI,CAAC,KAAK,EAAE;YACf,2BAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAClC;QACD,QAAQ;IAET,CAAC;IAED;;;;QAII;IACI,KAAK,CAAC,IAAI,CAAE,CAAS;QAC5B,IAAI;YACH,MAAM,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;SACrB;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,YAAY;QACZ,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACzC,CAAC;IAEM,SAAS;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;IACrB,CAAC;CACD;AArQD,8BAqQC;AAED,MAAM,CAAC,OAAO,GAAG,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/app/lib/system/Readme.md b/app/lib/system/Readme.md index 9a1dbf0..0d1cc28 100644 --- a/app/lib/system/Readme.md +++ b/app/lib/system/Readme.md @@ -1,10 +1,10 @@ ## Functions
-
dependencies(platform)
+
dependencies(platform)object

Evaluates system dependencies for digital -projector features by executing processes with ---help flag. If they do not exist, log to console

+projector features by executing which on binary. +If they do not exist, log to console

system()object

Profile the current system and return an object with @@ -15,12 +15,13 @@ projector feature.

-## dependencies(platform) +## dependencies(platform) ⇒ object Evaluates system dependencies for digital -projector features by executing processes with ---help flag. If they do not exist, log to console +projector features by executing `which` on binary. +If they do not exist, log to console **Kind**: global function +**Returns**: object - Object containing path to dependency from `which`, if they exist | Param | Type | Description | | --- | --- | --- | diff --git a/app/main.js b/app/main.js index 2b4969e..2f2c50f 100644 --- a/app/main.js +++ b/app/main.js @@ -46,12 +46,12 @@ let capper; let alert; let server; const cfg = require('./data/cfg.json'); -var createMenu = function () { +function createMenu() { const template = require('./data/menu.json'); menu = electron_1.Menu.buildFromTemplate(template); electron_1.Menu.setApplicationMenu(menu); -}; -var createWindow = function () { +} +function createWindow() { const windowOptions = { width: 800, height: 600, @@ -79,7 +79,7 @@ var createWindow = function () { mainWindow = null; }); require('@electron/remote/main').enable(mainWindow.webContents); -}; +} var errorState = function () { if (seq && seq.isRunning()) { //pause sequence if running diff --git a/app/main.js.map b/app/main.js.map index bcbf95b..e8351f2 100644 --- a/app/main.js.map +++ b/app/main.js.map @@ -1 +1 @@ -{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;AAAA,uCAAoF;AACpF,mCAAqC;AACrC,+BAA2B;AAC3B,uCAAmC;AACnC,mCAA+B;AAG/B,6BAAyB;AAEzB,qCAAiC;AACjC,6BAA4B;AAC5B,+BAAgC;AAChC,iCAA6B;AAC7B,mCAA+B;AAC/B,iCAA6B;AAC7B,qCAAiC;AACjC,qCAAiC;AACjC,mCAA+B;AAC/B,qCAAiC;AACjC,qCAAiC;AACjC,6BAA8B;AAC9B,yCAAqC;AACrC,mCAA+B;AAE/B,OAAO,CAAC,uBAAuB,CAAC,CAAC,UAAU,EAAE,CAAA;AAE7C,MAAM,EAAE,GAAkB,IAAI,qBAAY,EAAE,CAAA;AAE5C,SAAS;AACT,MAAM,KAAK,GAAS,EAAE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EAAE,CAAC,mBAAmB,EAAE,GAAG,EAAE;IAChC,cAAG,CAAC,IAAI,EAAE,CAAA;AACX,CAAC,CAAC,CAAC;AAEH,cAAG,CAAC,EAAE,CAAC,UAAU,EAAE,GAAG,EAAE;IACvB,IAAI,UAAU,KAAK,IAAI,EAAE;QACxB,YAAY,EAAE,CAAA;KACd;AACF,CAAC,CAAC,CAAC;AAEH,KAAK,CAAC,QAAQ,GAAG;IAChB,cAAG,CAAC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,CAAC,EAAC,CAAC,CAAA;IAClE,cAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACZ,CAAC,CAAA"} \ No newline at end of file diff --git a/app/package-lock.json b/app/package-lock.json index ab4f1b9..bfc2395 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -1,6 +1,6 @@ { "name": "mcopy-app", - "version": "1.8.112", + "version": "1.8.113", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/app/package.json b/app/package.json index c07f8ac..704febe 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { "name": "mcopy-app", - "version": "1.8.112", + "version": "1.8.113", "description": "GUI for the mcopy small gauge film optical printer platform", "main": "main.js", "scripts": { diff --git a/app/scripts/dev.sh b/app/scripts/dev.sh index f536e6e..b5e2798 100644 --- a/app/scripts/dev.sh +++ b/app/scripts/dev.sh @@ -14,5 +14,7 @@ npm run compile # compile LESS and pack javascript npm run gulp +npm run test + # start app with dev flag ./node_modules/.bin/electron main.js -d \ No newline at end of file diff --git a/app/test/settings.test.js b/app/test/settings.test.js index 4fcb616..1afd94f 100644 --- a/app/test/settings.test.js +++ b/app/test/settings.test.js @@ -1,7 +1,8 @@ const assert = require('assert') -const settings = require('settings') +const { Settings } = require('settings') +const settings = new Settings() describe('settings module', async () => { it('should be an object', () =>{ assert.equal(typeof settings, 'object') diff --git a/data/cfg.json b/data/cfg.json index af4ba93..8d45dee 100644 --- a/data/cfg.json +++ b/data/cfg.json @@ -1,5 +1,5 @@ { - "version": "1.8.112", + "version": "1.8.113", "ext_port": 1111, "profiles": { "mcopy": { diff --git a/package-lock.json b/package-lock.json index 3e55d0e..2f1810a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,18 +1,19 @@ { "name": "mcopy", - "version": "1.8.112", + "version": "1.8.113", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "mcopy", - "version": "1.8.112", + "version": "1.8.113", "license": "MIT", "dependencies": { "alert": "file:app/lib/alert", "arduino": "file:app/lib/arduino", "cam": "file:app/lib/cam", "capper": "file:app/lib/capper", + "cfg": "file:app/lib/cfg", "cmd": "file:app/lib/cmd", "delay": "file:app/lib/delay", "devices": "file:app/lib/devices", @@ -58,6 +59,7 @@ "license": "ISC" }, "app/lib/capper": {}, + "app/lib/cfg": {}, "app/lib/cmd": { "version": "1.0.0", "license": "ISC" @@ -969,6 +971,10 @@ "node": ">= 10" } }, + "node_modules/cfg": { + "resolved": "app/lib/cfg", + "link": true + }, "node_modules/cmd": { "resolved": "app/lib/cmd", "link": true @@ -3388,6 +3394,9 @@ "lodash": "^4.17.15" } }, + "cfg": { + "version": "file:app/lib/cfg" + }, "cmd": { "version": "file:app/lib/cmd" }, diff --git a/package.json b/package.json index bfa83f0..9b48268 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mcopy", - "version": "1.8.112", + "version": "1.8.113", "description": "Small gauge film optical printer platform", "main": "build.js", "directories": { @@ -42,6 +42,7 @@ "arduino": "file:app/lib/arduino", "cam": "file:app/lib/cam", "capper": "file:app/lib/capper", + "cfg": "file:app/lib/cfg", "cmd": "file:app/lib/cmd", "delay": "file:app/lib/delay", "devices": "file:app/lib/devices", diff --git a/processing/mcopy/cfg.json b/processing/mcopy/cfg.json index af4ba93..8d45dee 100644 --- a/processing/mcopy/cfg.json +++ b/processing/mcopy/cfg.json @@ -1,5 +1,5 @@ { - "version": "1.8.112", + "version": "1.8.113", "ext_port": 1111, "profiles": { "mcopy": { diff --git a/scripts/compile.sh b/scripts/compile.sh index 265778e..70f8087 100644 --- a/scripts/compile.sh +++ b/scripts/compile.sh @@ -4,6 +4,8 @@ mkdir -p lib ./node_modules/.bin/tsc -p tsconfig.json --extendedDiagnostics +npm run docs + #electron-build fails when local modules are in parent directory #copy them into lib directory cp -r ./lib/* ./app/lib/ diff --git a/scripts/docs.sh b/scripts/docs.sh index aec64f2..e06f2f8 100644 --- a/scripts/docs.sh +++ b/scripts/docs.sh @@ -3,6 +3,9 @@ libs="./lib/*" for l in $libs do + if [ -f "${l}" ]; then + continue + fi echo "Generating documentation for $l" ./node_modules/.bin/jsdoc2md $l/index.js > $l/Readme.md done \ No newline at end of file diff --git a/src/alert/index.ts b/src/alert/index.ts index 9e31d90..95e4870 100644 --- a/src/alert/index.ts +++ b/src/alert/index.ts @@ -4,7 +4,7 @@ import { ipcMain } from 'electron'; import { delay } from 'delay'; import { Log } from 'log'; import type { Logger } from 'winston'; -import type { WebContents } from 'electron'; +import type { WebContents, IpcMainEvent } from 'electron'; /* class representing alert functionality */ @@ -38,7 +38,7 @@ export class Alert { /** * **/ - private async listener (event : any, arg : any) { + private async listener (event : IpcMainEvent, arg : any) { if (this.cb !== null) { try { await this.cb(arg.state, arg.id) @@ -53,12 +53,12 @@ export class Alert { * **/ public async start (cmd : string) : Promise { - const start = +new Date(); + const start : number = +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; + const ms : number = (+new Date()) - start; return resolve(ms); } }.bind(this)); diff --git a/src/arduino/index.ts b/src/arduino/index.ts index c72a219..bca8eec 100644 --- a/src/arduino/index.ts +++ b/src/arduino/index.ts @@ -13,16 +13,15 @@ * **/ -//import Log = require('log'); import { delay } from 'delay'; import { Log } from 'log'; import type { Logger } from 'winston'; import type { Device } from 'devices'; import type { EventEmitter } from 'events' +import type { Config } from 'cfg'; const { SerialPort } = require('serialport'); const { ReadlineParser } = require('@serialport/parser-readline'); -const exec = require('child_process').exec; const parser : any = new ReadlineParser({ delimiter: '\r\n' }); const newlineRe : RegExp = new RegExp('\n', 'g'); @@ -47,7 +46,7 @@ export class Arduino { private log : Logger; private eventEmitter : EventEmitter; - private cfg : any = {}; + private cfg : Config; private path : any = {}; private known : string[] = KNOWN; private serial : any = {}; @@ -64,7 +63,7 @@ export class Arduino { public stateStr : any = {}; public hasState : any = {}; - constructor ( cfg : any, ee : EventEmitter, errorState : Function) { + constructor ( cfg : Config, ee : EventEmitter, errorState : Function) { this.cfg = cfg; this.eventEmitter = ee; this.errorState = errorState; @@ -149,13 +148,13 @@ export class Arduino { * @returns {Promise} Returns 'false' if the communication is locked, otherwise returns the response from the device. * @throws {Error} Throws an error if the sendAsync method encounters an error. **/ - public async send (device : string, cmd : string) : Promise { + public async send (device : string, cmd : string) : Promise { const serial : any = this.alias[device] let ms : number this.log.info(`send ${cmd} -> ${device}`) if (this.isLocked(serial)) { - this.log.warn(`send Serial ${serial} is locked`) - return null + this.log.error(`send Serial ${serial} is locked`) + return 0 } this.timer = new Date().getTime() this.lock(serial) @@ -164,7 +163,7 @@ export class Arduino { ms = await this.sendAsync(device, cmd) } catch (e) { this.log.error(`Failed to send to ${device} @ ${serial}`, e) - return null + return 0 } this.unlock(serial) @@ -183,8 +182,8 @@ export class Arduino { * @returns {Promise} Returns 'true' if the string is sent successfully, otherwise returns an error message. * @throws {Error} Throws an error if the writeAsync method encounters an error. **/ - public async sendString (device : string, str : string) : Promise { - let writeSuccess : any + public async sendString (device : string, str : string) : Promise { + let ms : number await delay(this.cfg.arduino.serialDelay) if (typeof this.serial[this.alias[device]].fake !== 'undefined' && this.serial[this.alias[device]].fake) { @@ -192,13 +191,13 @@ export class Arduino { } else { this.log.info(`sendString ${str} -> ${device}`) try { - writeSuccess = await this.writeAsync(device, str) + ms = await this.writeAsync(device, str) } catch (e) { this.log.error(`Error sending string to ${device}`, e) - return null + return 0 } this.unlock(this.alias[device]) - return writeSuccess + return ms } } diff --git a/src/cam/index.ts b/src/cam/index.ts index f852c2c..10bd4f8 100644 --- a/src/cam/index.ts +++ b/src/cam/index.ts @@ -8,7 +8,8 @@ import { Log } from 'log'; import type { Logger } from 'winston'; import type { Arduino } from 'arduino'; import type { FilmOut } from 'filmout'; -import type { WebContents } from 'electron'; +import type { Config } from 'cfg'; +import type { WebContents, IpcMainEvent } from 'electron'; interface CameraState{ pos : number, @@ -27,7 +28,7 @@ export class Camera { private intval : Intval = null; private processing : Processing = null; private log : Logger; - private cfg : any; + private cfg : Config; private filmout : FilmOut; private ui : WebContents; private ipc : typeof ipcMain = ipcMain; @@ -35,7 +36,7 @@ export class Camera { /** * **/ - constructor (arduino : Arduino, cfg : any, ui : WebContents, filmout : FilmOut, second : boolean = false) { + constructor (arduino : Arduino, cfg : Config, ui : WebContents, filmout : FilmOut, second : boolean = false) { this.arduino = arduino; this.cfg = cfg; this.ui = ui; @@ -226,12 +227,12 @@ export class Camera { /** * **/ - private async connectIntval (event : any, arg : any) { - return new Promise((resolve, reject) => { + private async connectIntval (event : IpcMainEvent, arg : any) { + return new Promise((resolve : Function, reject : Function) => { if (arg.connect) { this.intval = new Intval(arg.url) this.processing = null - this.intval.connect((err : any, ms : number, state : boolean) => { + this.intval.connect((err : Error, ms : number, state : boolean) => { if (err) { this.ui.send('intval', { connected : false }) this.log.info(`Cannot connect to ${arg.url}`, 'INTVAL') @@ -252,7 +253,7 @@ export class Camera { /** * **/ - private async connectProcessing (event : any, arg : any) { + private async connectProcessing (event : IpcMainEvent, arg : any) { return new Promise((resolve, reject) => { this.processing = new Processing(arg.url) this.intval = null @@ -264,7 +265,7 @@ export class Camera { /** * **/ - private async listener (event : any, arg : any) { + private async listener (event : IpcMainEvent, arg : any) { if (typeof arg.dir !== 'undefined') { try { await this.set(arg.dir, arg.id) @@ -299,7 +300,7 @@ export class Camera { * **/ private async end (cmd : string, id : string, ms : number) { - let message = ''; + let message : string = ''; if (cmd === this.cfg.arduino.cmd.camera_forward) { message = 'Camera set to FORWARD'; } else if (cmd === this.cfg.arduino.cmd.camera_backward) { diff --git a/src/capper/index.ts b/src/capper/index.ts index 8050ec1..611e27f 100644 --- a/src/capper/index.ts +++ b/src/capper/index.ts @@ -8,17 +8,21 @@ import { Log } from 'log'; import type { Logger } from 'winston'; import type { FilmOut } from 'filmout'; import type { Arduino } from 'arduino'; -import type { WebContents } from 'electron'; +import type { Config } from 'cfg'; +import type { WebContents, IpcMainEvent } from 'electron'; + +interface CapperState { + capper : boolean +} /** class representing capper functions **/ - export class Capper { - private state : any = { + private state : CapperState = { capper : false }; private arduino : Arduino = null; private log : Logger; - private cfg : any; + private cfg : Config; private filmout : FilmOut; private ui : WebContents; private ipc : typeof ipcMain = ipcMain; @@ -76,7 +80,7 @@ export class Capper { /** * **/ - private async listener (event : any, arg : any) { + private async listener (event : IpcMainEvent, arg : any) { if (typeof arg.state !== 'undefined') { try { await this.capper(arg.state, arg.id); @@ -102,9 +106,10 @@ export class Capper { message += ` ${ms}ms`; this.log.info(message); - this.ui.send(this.id, {cmd: cmd, id : id, ms: ms}); + await this.ui.send(this.id, {cmd: cmd, id : id, ms: ms}); return ms; } } -module.exports = { Capper } \ No newline at end of file +module.exports = { Capper } +export type { CapperState } \ No newline at end of file diff --git a/src/cfg/index.ts b/src/cfg/index.ts new file mode 100644 index 0000000..24dbb4c --- /dev/null +++ b/src/cfg/index.ts @@ -0,0 +1,44 @@ +interface ConfigCommands { + [key:string] : string +} + +interface ConfigDeviceProfile { + time : number, + delay : number, + momentary : number +} + +interface ConfigBlackProfile { + before : number, + after : number +} + +interface ConfigProfile { + label : string, + cam : ConfigDeviceProfile, + proj? : ConfigDeviceProfile, + black? : ConfigBlackProfile, + light : boolean +} + +interface ConfigProfiles { + [key:string] : ConfigProfile +} + +interface ConfigArduino extends ConfigProfile { + baud : number, + board : string, + serialDelay : number, + sequenceDelay : number, + cmd : ConfigCommands +} + +interface Config { + version : string, + ext_port : number, + profiles : ConfigProfiles, + cmd : ConfigCommands, + arduino : any +} + +export type { Config } \ No newline at end of file diff --git a/src/cmd/index.ts b/src/cmd/index.ts index bf375a5..feb8d4f 100644 --- a/src/cmd/index.ts +++ b/src/cmd/index.ts @@ -8,6 +8,7 @@ import type { Camera } from 'cam'; import type { Light } from 'light'; import type { Capper } from 'capper'; import type { Alert } from 'alert'; +import type { Config } from 'cfg'; export class Commands { public proj : Projector; @@ -21,7 +22,7 @@ export class Commands { public alertObj : Alert; - private cfg : any; + private cfg : Config; private ipc : typeof ipcMain = ipcMain; /** @@ -39,7 +40,7 @@ export class Commands { * **/ - constructor (cfg : any, proj : Projector, cam : any, light : Light, alert : Alert, cam2 : any = null, proj2 : Projector = null, capper : any = null) { + constructor (cfg : Config, proj : Projector, cam : Camera, light : Light, alert : Alert, cam2 : Camera = null, proj2 : Projector = null, capper : Capper = null) { this.cfg = cfg; this.proj = proj; this.cam = cam; diff --git a/src/devices/index.ts b/src/devices/index.ts index dd468f2..281a1d0 100644 --- a/src/devices/index.ts +++ b/src/devices/index.ts @@ -6,7 +6,7 @@ import { Log } from 'log'; import type { Logger } from 'winston'; import type { Settings } from 'settings'; import type { Arduino } from 'arduino'; -import type { BrowserWindow, WebContents } from 'electron'; +import type { BrowserWindow, WebContents, IpcMainEvent } from 'electron'; interface Device { serial : string; @@ -22,13 +22,13 @@ interface Device { export class Devices { public settings : Settings; - public connected : any = {} + public connected : any = {}; private arduino : Arduino; private log : Logger; private ui : WebContents; private ipc : typeof ipcMain = ipcMain; - private mainWindow : any + private mainWindow : BrowserWindow; /** * Constructor assigns arduino, settings, UI browser window and cam objects * locally to this class for reference. @@ -58,7 +58,7 @@ export class Devices { * The "profile" channel callback. If a profile is changed, set it in the * local settings object. **/ - private async listener (event : any, arg : any){ + private async listener (event : IpcMainEvent, arg : any){ if (typeof arg.profile !== 'undefined') { this.log.info(`Saving profile ${arg.profile}`, 'SETTINGS', false, false); this.settings.update('profile', arg.profile); diff --git a/src/display/index.ts b/src/display/index.ts index 9e96b55..b53fbc7 100644 --- a/src/display/index.ts +++ b/src/display/index.ts @@ -160,7 +160,7 @@ class WebView { export class Display { private platform : string; private displays : SystemDisplay[]; - private display : any; + private display : SystemDisplay; private tmpdir : string; private wv : WebView; @@ -168,7 +168,7 @@ export class Display { this.platform = sys.platform; this.displays = sys.displays; this.tmpdir = pathJoin(sys.tmp, 'mcopy_digital'); - this.display = this.displays.find((display : any) => { + this.display = this.displays.find((display : SystemDisplay) => { if (display.primary) return true; }) } diff --git a/src/ffmpeg/index.ts b/src/ffmpeg/index.ts index bb168ea..adf6f8b 100644 --- a/src/ffmpeg/index.ts +++ b/src/ffmpeg/index.ts @@ -8,10 +8,14 @@ import { exec } from 'exec'; import { spawn } from 'child_process'; import { Log } from 'log'; import type { Logger } from 'winston'; +import type { ChildProcessWithoutNullStreams } from 'child_process'; -import Frame from 'frame'; +import { Frame } from 'frame'; import type { FilmOutState } from 'filmout'; import type { System } from 'system'; +import type { RGBA } from 'frame'; +import type { ExecOutput } from 'exec'; +import type { LightState } from 'light'; interface StdErr { @@ -25,30 +29,6 @@ interface StdErr { estimated? : number; } -async function spawnAsync (bin : string, args : string[]) { - return new Promise((resolve : Function, reject : Function) => { - const child = spawn(bin, args); - let stdout = ''; - let stderr = ''; - child.on('exit', (code : number) => { - if (code === 0) { - return resolve({ stdout, stderr }); - } else { - console.error(`Process exited with code: ${code}`); - console.error(stderr); - return reject(stderr); - } - }); - child.stdout.on('data', (data : string) => { - stdout += data; - }); - child.stderr.on('data', (data : string) => { - stderr += data; - }); - return child; - }); -} - /** @class FFMPEG **/ export class FFMPEG { @@ -56,7 +36,7 @@ export class FFMPEG { private log : Logger; private id : string = 'ffmpeg'; private TMPDIR : string; - private child : any; + private child : ChildProcessWithoutNullStreams; public onProgress : Function = () => {}; /** @@ -101,21 +81,30 @@ export class FFMPEG { **/ private parseStderr (line : string) : StdErr { //frame= 6416 fps= 30 q=31.0 size= 10251kB time=00:03:34.32 bitrate= 391.8kbits/s speed= 1x - let obj : any = {}; + const obj : StdErr = { + frame : 0, + fps : 0, + time : '', + speed : 0, + size : '' + }; + let frameStr : string; + let fpsStr : string; + let speedStr : string; if (line.substring(0, 'frame='.length) === 'frame=') { try { - obj.frame = line.split('frame=')[1].split('fps=')[0]; - obj.frame = parseInt(obj.frame); - obj.fps = line.split('fps=')[1].split('q=')[0]; - obj.fps = parseFloat(obj.fps); + frameStr = line.split('frame=')[1].split('fps=')[0]; + obj.frame = parseInt(frameStr); + fpsStr = line.split('fps=')[1].split('q=')[0]; + obj.fps = parseFloat(fpsStr); obj.time = line.split('time=')[1].split('bitrate=')[0]; - obj.speed = line.split('speed=')[1].trim().replace('x', ''); - obj.speed = parseFloat(obj.speed); + speedStr = line.split('speed=')[1].trim().replace('x', ''); + obj.speed = parseFloat(speedStr); obj.size = line.split('size=')[1].split('time=')[0].trim(); } catch (err) { - console.error(err); - console.log(line); + this.log.error('Error parsing stderr line', err); + this.log.info(line); process.exit(); } } else { @@ -133,18 +122,18 @@ export class FFMPEG { * * @returns {string} Path of frame **/ - public async frame (state : FilmOutState, light : any) { + public async frame (state : FilmOutState, light : LightState) { const frameNum : number = state.frame; const video : string = state.directory ? state.files[frameNum] : state.path; const w : number = state.info.width; const h : number = state.info.height; const padded : string = this.padded_frame(frameNum); let ext : string = 'png'; - let rgb : any[] = light.color; - let rgba : any = {}; + let rgb : number[] = light.color; + let rgba : RGBA; let tmpoutput : string; let cmd : string; - let output : any; + let output : ExecOutput; let fileExists : boolean = false; let scale : string = ''; @@ -187,8 +176,8 @@ export class FFMPEG { if (output && output.stdout) this.log.info(`"${output.stdout.trim()}"`); if ( rgb[0] !== 255 || rgb[1] !== 255 || rgb[2] !== 255 ) { - rgb = rgb.map((e : string) => { - return parseInt(e); + rgb = rgb.map((e : number | string) => { + return typeof e === 'string' ? parseInt(e) : e; }); rgba = { r : rgb[0], g : rgb[1], b : rgb[2], a : 255 }; @@ -221,7 +210,7 @@ export class FFMPEG { let ext : string = 'png'; let tmpoutput : string = join(tmppath, `${state.hash}-export-%08d.${ext}`); let args : string[]; - let output : any; + let output : ExecOutput; let estimated : number = -1; //cmd = `${this.bin} -y -i "${video}" -vf "${scale}" -compression_algo raw -pix_fmt rgb24 -crf 0 "${tmpoutput}"`; @@ -259,24 +248,24 @@ export class FFMPEG { //ffmpeg -i "${video}" -compression_algo raw -pix_fmt rgb24 "${tmpoutput}" return new Promise((resolve : Function, reject : Function) => { - let stdout = ''; - let stderr = ''; + let stdout : string = ''; + let stderr : string = ''; this.log.info(`${this.bin} ${args.join(' ')}`); this.child = spawn(this.bin, args); - this.child.on('exit', (code : number) => { + this.child.on('exit', function (code : number) { //console.log('GOT TO EXIT'); if (code === 0) { - console.log(stderr); - console.log(stdout); + this.log.info(stderr); + this.log.info(stdout); return resolve(true); } else { - console.error(`Process exited with code: ${code}`); - console.error(stderr); + this.log.error(`Process exited with code: ${code}`); + this.log.error(stderr); return reject(stderr + stdout); } - }); + }.bind(this)); this.child.stdout.on('data', (data : any) => { const line : string = data.toString(); diff --git a/src/filmout/index.ts b/src/filmout/index.ts index 9763402..4d54059 100644 --- a/src/filmout/index.ts +++ b/src/filmout/index.ts @@ -7,7 +7,7 @@ import { readFile, lstat, readdir } from 'fs-extra'; import { delay } from 'delay'; import { createHash } from 'crypto'; import Jimp from 'jimp'; -import Frame from 'frame'; +import { Frame } from 'frame'; import { Log } from 'log'; import type { Logger } from 'winston'; import type { Server } from 'server'; @@ -15,7 +15,7 @@ import type { Display } from 'display'; import type { Light } from 'light'; import type { FFMPEG } from 'ffmpeg'; import type { FFPROBE } from 'ffprobe'; -import type { WebContents } from 'electron'; +import type { WebContents, IpcMainEvent } from 'electron'; interface FilmOutState { hash : string, @@ -184,7 +184,7 @@ export class FilmOut { * * @returns {boolean} Success state **/ - async onConnect (evt : any, arg : any) : Promise { + async onConnect (evt : IpcMainEvent, arg : any) : Promise { let frames : number = 0; let isAnimated : boolean = false; let info : any; @@ -317,7 +317,7 @@ export class FilmOut { * * @returns {any} UI send call */ - async onPreExport (evt : Event, arg : any) : Promise { + async onPreExport (evt : IpcMainEvent, arg : any) : Promise { if (!this.state.path) { return await this.ui.send('pre_export', { complete : false, err : 'No file to pre export.' }); } @@ -426,7 +426,7 @@ export class FilmOut { * @param {object} evt Original event * @param {object} arg Arguments from message **/ - async previewFrame (evt : any, arg : any) { + async previewFrame (evt : IpcMainEvent, arg : any) { const state : any = JSON.parse(JSON.stringify(this.state)); let path : string; @@ -447,7 +447,7 @@ export class FilmOut { * @param {object} evt Original event * @param {object} arg Arguments from message **/ - async preview (evt : any, arg : any) { + async preview (evt : IpcMainEvent, arg : any) { const state : any = JSON.parse(JSON.stringify(this.state)); let path : string; @@ -475,7 +475,7 @@ export class FilmOut { /** * **/ - async focus (evt : any, arg : any) { + async focus (evt : IpcMainEvent, arg : any) { this.log.info(`Showing focus screen`); try { if (await this.server.cmdAll('focus')) { @@ -490,7 +490,7 @@ export class FilmOut { /** * **/ - async field (evt : any, arg : any) { + async field (evt : IpcMainEvent, arg : any) { const ratio : number = arg.ratio; this.log.info(`Showing field guide screen`); try { @@ -507,7 +507,7 @@ export class FilmOut { /** * **/ - async meter (evt : any, arg : any) { + async meter (evt : IpcMainEvent, arg : any) { this.log.info(`Showing meter screen`); try { if (await this.server.cmdAll('meter')) { @@ -522,7 +522,7 @@ export class FilmOut { /** * **/ - async close (evt : any, arg : any) { + async close (evt : IpcMainEvent, arg : any) { try { if (await this.server.cmdAll('blank')) { return @@ -537,7 +537,7 @@ export class FilmOut { /** * **/ - onDisplay (evt : any, arg : any) { + onDisplay (evt : IpcMainEvent, arg : any) { this.display.change(arg.display); this.log.info(`Changing the display to ${arg.display}`); } diff --git a/src/frame/index.ts b/src/frame/index.ts index e629145..d4cd49e 100644 --- a/src/frame/index.ts +++ b/src/frame/index.ts @@ -9,7 +9,7 @@ interface RGBA { a : number; } -export default class Frame { +export class Frame { static async info (imagePath : string) { let image : any; try { @@ -74,6 +74,6 @@ export default class Frame { } } -module.exports = Frame +module.exports = { Frame } export type { RGBA } \ No newline at end of file diff --git a/src/globals.d.ts b/src/globals.d.ts index cff0455..7c9d597 100644 --- a/src/globals.d.ts +++ b/src/globals.d.ts @@ -4,8 +4,3 @@ declare module 'spawn'; declare module 'systeminformation'; declare module 'request'; declare module 'animated-gif-detector'; - -interface Device { - serial : string; - device : string; -} diff --git a/src/light/index.ts b/src/light/index.ts index 08f59b8..3e10b52 100644 --- a/src/light/index.ts +++ b/src/light/index.ts @@ -5,13 +5,18 @@ import { delay } from 'delay'; import { Log } from 'log'; import type { Logger } from 'winston'; import type { Arduino } from 'arduino'; -import type { WebContents } from 'electron'; +import type { Config } from 'cfg'; +import type { WebContents, IpcMainEvent } from 'electron'; + +interface LightState { + color : number[] +} export class Light { - public state : any = { color : [0, 0, 0] } + public state : LightState = { color : [0, 0, 0] } private arduino : Arduino; - private cfg : any; + private cfg : Config; private ui : WebContents; private log : Logger; private ipc : typeof ipcMain = ipcMain; @@ -22,7 +27,7 @@ export class Light { /** * **/ - constructor (arduino : Arduino, cfg : any, ui : WebContents) { + constructor (arduino : Arduino, cfg : Config, ui : WebContents) { this.arduino = arduino; this.cfg = cfg; this.ui = ui; @@ -47,7 +52,7 @@ export class Light { /** * **/ - private async listener (event : any, arg : any) { + private async listener (event : IpcMainEvent, arg : any) { if (typeof arg.rgb !== 'undefined') { try { await this.set(arg.rgb, arg.id, true); @@ -60,7 +65,6 @@ export class Light { } else if (typeof arg.disable !== 'undefined') { this.enabled = false; } - return true; } /** @@ -68,7 +72,7 @@ export class Light { **/ public async set (rgb : number[], id : string, on : boolean = true) { const str : string = rgb.join(','); - let ms : any; + let ms : number; this.state.color = rgb; try { @@ -78,13 +82,14 @@ export class Light { } await delay(1); try { - this.arduino.sendString(this.id, str); + ms += await this.arduino.sendString(this.id, str); } catch (err) { this.log.error('Error sending light string', err); } await delay(1); - await ms; - return await this.end(rgb, id, ms); + ms += 2; + await this.end(rgb, id, ms); + return ms; } /** @@ -92,17 +97,17 @@ export class Light { **/ private async end (rgb : number[], id : string, ms : number) { let res; - //console.trace() this.log.info(`Light set to ${rgb.join(',')}`, 'LIGHT', true, true); try { - //console.dir({ rgb, id, ms }) res = await this.ui.send(this.id, { rgb, id, ms }); } catch (err) { - console.error(err); + this.log.error(`Error ending light`, err); throw err } return res; } } -module.exports = { Light }; \ No newline at end of file +module.exports = { Light }; + +export type { LightState }; \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index 1ac55da..380cff9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -21,6 +21,7 @@ import { Devices } from 'devices' import { Commands } from 'cmd' import { Sequencer } from 'sequencer' import { Server } from 'server' +import type { Config } from 'cfg'; require('@electron/remote/main').initialize() @@ -34,7 +35,7 @@ let settings : Settings let log : Logger let mainWindow : BrowserWindow let arduino : Arduino -let menu +let menu : Menu let display : Display let ffmpeg : FFMPEG let ffprobe : FFPROBE @@ -51,15 +52,15 @@ let capper : Capper let alert : Alert let server : Server -const cfg : any = require('./data/cfg.json') +const cfg : Config = require('./data/cfg.json') -var createMenu = function () { +function createMenu () { const template = require('./data/menu.json') menu = Menu.buildFromTemplate(template) Menu.setApplicationMenu(menu) } -var createWindow = function () { +function createWindow () { const windowOptions : BrowserWindowConstructorOptions = { width: 800, height: 600, diff --git a/src/proj/index.ts b/src/proj/index.ts index e235701..a1fb074 100644 --- a/src/proj/index.ts +++ b/src/proj/index.ts @@ -5,7 +5,8 @@ import { Log } from 'log'; import type { Logger } from 'winston'; import type { Arduino } from 'arduino'; import type { FilmOut } from 'filmout'; -import type { WebContents } from 'electron'; +import type { Config } from 'cfg'; +import type { WebContents, IpcMainEvent } from 'electron'; interface ProjectorState { pos : number, @@ -19,7 +20,7 @@ export class Projector { }; public arduino : Arduino = null; private log : Logger; - private cfg : any; + private cfg : Config; private ui : WebContents; private ipc : typeof ipcMain = ipcMain; public filmout : FilmOut; @@ -28,7 +29,7 @@ export class Projector { /** * **/ - constructor (arduino : Arduino, cfg : any, ui : WebContents, filmout : any, second : boolean = false) { + constructor (arduino : Arduino, cfg : Config, ui : WebContents, filmout : FilmOut, second : boolean = false) { this.arduino = arduino; this.cfg = cfg; this.ui = ui; @@ -114,7 +115,7 @@ export class Projector { /** * **/ - private async listener (event : any, arg : any) { + private async listener (event : IpcMainEvent, arg : any) { if (typeof arg.dir !== 'undefined') { try { await this.set(arg.dir, arg.id) diff --git a/src/sequencer/index.ts b/src/sequencer/index.ts index 6f4a3fc..9d427b5 100644 --- a/src/sequencer/index.ts +++ b/src/sequencer/index.ts @@ -6,7 +6,8 @@ import { Log } from 'log'; import type { Logger } from 'winston'; import { delay } from 'delay'; import { Commands } from 'cmd'; -import type { WebContents } from 'electron'; +import type { Config } from 'cfg'; +import type { WebContents, IpcMainEvent } from 'electron'; /** @module lib/sequencer **/ @@ -22,7 +23,7 @@ export class Sequencer { private arr : any[] = []; //store sequence from gui private loops : number = 1; - private cfg : any; + private cfg : Config; private cmd : Commands; private CMDS : any = {}; private ipc : typeof ipcMain = ipcMain; @@ -41,7 +42,7 @@ export class Sequencer { * @param {object} ui Electron UI, browser window **/ - constructor (cfg : any, cmd : Commands, ui : WebContents) { + constructor (cfg : Config, cmd : Commands, ui : WebContents) { this.cfg = cfg; this.cmd = cmd; this.ui = ui; @@ -87,7 +88,7 @@ export class Sequencer { * @param {object} event IPC message event * @param {object} arg Arguments provided in message **/ - private async listener (event : any, arg : any) { + private async listener (event : IpcMainEvent, arg : any) { if (arg && arg.start) { this.start(arg); } else if (arg && arg.stop) { @@ -249,7 +250,7 @@ export class Sequencer { * * @param {integer} x Step to execute command at **/ - private async step ( x: number) { + private async step (x: number) { try { await this.cmdExec(x) } catch (err) {