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 + +
Class representing the arduino communication features
+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
+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 @@
/// 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,IAA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,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":"","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AAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE;YAC3C,OAAO,GAAG,kBAAkB,CAAC;SAC7B;aAAM,IAAI,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE;YACnD,OAAO,GAAG,mBAAmB,CAAC;SAC9B;QAED,OAAO,IAAI,IAAI,EAAE,IAAI,CAAC;QAEtB,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;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 ee7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M,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,kBAAkB;SAC7D;QAAC,OAAO,GAAG,EAAE;YACb,MAAM,GAAG,CAAC;SACV;QACD,OAAO,EAAE,CAAC;IACX,CAAC;IAGD;;;;QAII;IAEG,KAAK,CAAC,KAAK,CAAE,GAAS;QAC5B,MAAM,EAAE,GAAY,IAAA,SAAI,GAAE,CAAC;QAC3B,IAAI,EAAW,CAAC;QAChB,IAAI;YACH,EAAE,GAAG,MAAM,IAAA,aAAK,EAAC,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,qBAAqB;SACzD;QAAC,OAAO,GAAG,EAAE;YACb,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,C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AO,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/app/lib/display/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/display/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAEb;;;IAGI;AAEJ,uCAAkD;AAClD,+BAAoE;AACpE,6BAA0C;AAC1C,iCAA8B;AAC9B,6BAA0B;AAK1B,MAAM,OAAO;IAUZ,YAAa,QAAiB,EAAE,OAAa;QARtC,WAAM,GAAa,KAAK,CAAC;QACzB,YAAO,GAAa,KAAK,CAAC;QAGzB,aAAQ,GAAS,EAAE,CAAC;QACpB,QAAG,GAAoB,kBAAO,CAAC;QAItC,MAAM,KAAK,GAAsC;YAChD,cAAc,EAAE;gBACV,eAAe,EAAE,IAAI;gBACrB,2BAA2B,EAAE,KAAK;gBAClC,2BAA2B;gBAC3B,gBAAgB,EAAE,KAAK;aACzB;YACJ,KAAK,EAAE,GAAG;YACV,MAAM,EAAE,GAAG;YACX,QAAQ,EAAG,GAAG;YACd,SAAS,EAAG,GAAG,CAAA,GAAG;YAClB,2DAA2D;SAC3D,CAAA;QACD,MAAM,QAAQ,GAAY,IAAA,gBAAa,EAAC,IAAA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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): PromiseDigital
](#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): Promisestring
Determine the location of the log file based on the operating system +and return as an absolute string from os.homedir()
+object
Create and return the logger transport based on settings determined in +arguments object
+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
+class Mscript
+boolean
startswith function from lodash, do not want the entire lib for this
+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,K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rB,IAAI,CAAC,GAAG,CAAC,IAAI,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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CAAC;IACpB,CAAC;IAED;;QAEI;IACG,IAAI;QACV,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,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
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 executingwhich
on binary.
+If they do not exist, log to console
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,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CAAC,WAAW,CAAC,CAAA;AACtD,CAAC,CAAA;AAED,cAAG,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;AAErB,cAAG,CAAC,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