Recompile with newer modules.

This commit is contained in:
Matt McWilliams 2024-04-06 19:09:50 -04:00
parent 1e2b65644d
commit ed767aedb5
36 changed files with 177 additions and 177 deletions

View File

@ -194,8 +194,8 @@ button:focus {
width: 66px; width: 66px;
height: 66px; height: 66px;
position: absolute; position: absolute;
top: 7px; top: 14px / 2;
left: 7px; left: 14px / 2;
} }
.dial-wrapper input { .dial-wrapper input {
margin-top: 94px; margin-top: 94px;
@ -210,10 +210,10 @@ button:focus {
top: 0; top: 0;
bottom: 0; bottom: 0;
overflow: hidden; overflow: hidden;
width: 40px; width: 80px / 2;
} }
.dial-container.dial-container1 { .dial-container.dial-container1 {
left: 40px; left: 80px / 2;
} }
.dial-container.dial-container1 .dial-wedge { .dial-container.dial-container1 .dial-wedge {
transform: rotateZ(0deg); transform: rotateZ(0deg);
@ -227,16 +227,16 @@ button:focus {
.dial-container.dial-container2 .dial-wedge { .dial-container.dial-container2 .dial-wedge {
transform: rotateZ(0deg); transform: rotateZ(0deg);
border-radius: 80px 0 0 80px; border-radius: 80px 0 0 80px;
transform-origin: 40px 40px; transform-origin: 80px/2 80px/2;
} }
.dial-wedge { .dial-wedge {
height: 80px; height: 80px;
width: 40px; width: 80px / 2;
} }
.dial-marker { .dial-marker {
border-radius: 50%; border-radius: 50%;
height: 7px; height: 14px / 2;
width: 7px; width: 14px / 2;
position: absolute; position: absolute;
top: 0; top: 0;
left: calc(50% - (14px * 2)); left: calc(50% - (14px * 2));

View File

@ -1,5 +1,5 @@
{ {
"version": "1.8.93", "version": "1.8.94",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {

View File

@ -143,7 +143,7 @@ class Arduino {
} }
this.timer = new Date().getTime(); this.timer = new Date().getTime();
this.lock(serial); this.lock(serial);
await delay_1.delay(cfg.arduino.serialDelay); await (0, delay_1.delay)(cfg.arduino.serialDelay);
try { try {
ms = await this.sendAsync(device, cmd); ms = await this.sendAsync(device, cmd);
} }
@ -167,7 +167,7 @@ class Arduino {
**/ **/
async sendString(device, str) { async sendString(device, str) {
let writeSuccess; let writeSuccess;
await delay_1.delay(cfg.arduino.serialDelay); await (0, delay_1.delay)(cfg.arduino.serialDelay);
if (typeof this.serial[this.alias[device]].fake !== 'undefined' if (typeof this.serial[this.alias[device]].fake !== 'undefined'
&& this.serial[this.alias[device]].fake) { && this.serial[this.alias[device]].fake) {
return this.serial[this.alias[device]].string(str); return this.serial[this.alias[device]].string(str);
@ -230,7 +230,7 @@ class Arduino {
} }
this.timer = new Date().getTime(); this.timer = new Date().getTime();
this.lock(serial); this.lock(serial);
await delay_1.delay(cfg.arduino.serialDelay); await (0, delay_1.delay)(cfg.arduino.serialDelay);
try { try {
results = await this.stateAsync(device, confirm); results = await this.stateAsync(device, confirm);
} }
@ -403,7 +403,7 @@ class Arduino {
return reject('Wrong data returned'); return reject('Wrong data returned');
} }
}; };
await delay_1.delay(cfg.arduino.serialDelay); await (0, delay_1.delay)(cfg.arduino.serialDelay);
try { try {
writeSuccess = await this.sendAsync(device, cfg.arduino.cmd.connect); writeSuccess = await this.sendAsync(device, cfg.arduino.cmd.connect);
} }
@ -480,7 +480,7 @@ class Arduino {
} }
return resolve(type); return resolve(type);
}; };
await delay_1.delay(cfg.arduino.serialDelay); await (0, delay_1.delay)(cfg.arduino.serialDelay);
try { try {
writeSuccess = await this.sendAsync(device, cfg.arduino.cmd.mcopy_identifier); writeSuccess = await this.sendAsync(device, cfg.arduino.cmd.mcopy_identifier);
this.log.info(writeSuccess); this.log.info(writeSuccess);
@ -531,7 +531,7 @@ class Arduino {
if (typeof timeout === 'undefined') if (typeof timeout === 'undefined')
timeout = 10; timeout = 10;
arduino.timer = +new Date(); arduino.timer = +new Date();
await delay_1.delay(timeout); await (0, delay_1.delay)(timeout);
arduino.end(serial, cmd); arduino.end(serial, cmd);
return cb(); return cb();
}, },

File diff suppressed because one or more lines are too long

View File

@ -179,7 +179,7 @@ class Camera {
catch (err) { catch (err) {
this.log.error('Error sending camera exposure command', err); this.log.error('Error sending camera exposure command', err);
} }
await delay_1.delay(1); await (0, delay_1.delay)(1);
try { try {
ms = await this.arduino.sendString(this.id, str); ms = await this.arduino.sendString(this.id, str);
} }
@ -187,7 +187,7 @@ class Camera {
this.log.error('Error sending camera exposure string', err); this.log.error('Error sending camera exposure string', err);
} }
await ms; await ms;
await delay_1.delay(1); await (0, delay_1.delay)(1);
try { try {
confirmState = await this.arduino.state(this.id, false); confirmState = await this.arduino.state(this.id, false);
} }

File diff suppressed because one or more lines are too long

View File

@ -40,10 +40,10 @@ class Commands {
let ms; let ms;
try { try {
if (!this.proj.state.dir) { if (!this.proj.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.proj.set(true); await this.proj.set(true);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
ms = await this.proj.move(); ms = await this.proj.move();
} }
catch (err) { catch (err) {
@ -60,10 +60,10 @@ class Commands {
let ms; let ms;
try { try {
if (this.proj.state.dir) { if (this.proj.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.proj.set(false); await this.proj.set(false);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
ms = await this.proj.move(); ms = await this.proj.move();
} }
catch (err) { catch (err) {
@ -79,20 +79,20 @@ class Commands {
* @returns {integer} Length of action in ms * @returns {integer} Length of action in ms
**/ **/
async camera_forward() { async camera_forward() {
const id = uuid_1.v4(); const id = (0, uuid_1.v4)();
const off = [0, 0, 0]; const off = [0, 0, 0];
let rgb = [255, 255, 255]; let rgb = [255, 255, 255];
let ms; let ms;
try { try {
if (!this.cam.state.dir) { if (!this.cam.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.cam.set(true); await this.cam.set(true);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.light.set(rgb, id); await this.light.set(rgb, id);
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
ms = await this.cam.move(); ms = await this.cam.move();
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.light.set(off, id); await this.light.set(off, id);
} }
catch (err) { catch (err) {
@ -106,23 +106,23 @@ class Commands {
* @returns {integer} Length of action in ms * @returns {integer} Length of action in ms
**/ **/
async black_forward() { async black_forward() {
const id = uuid_1.v4(); const id = (0, uuid_1.v4)();
const off = [0, 0, 0]; const off = [0, 0, 0];
let ms = 0; let ms = 0;
try { try {
if (!this.cam.state.dir) { if (!this.cam.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.cam.set(true); await this.cam.set(true);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
if (this.capper) { if (this.capper) {
ms += await this.capper.capper(true, id); ms += await this.capper.capper(true, id);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.light.set(off, id); //make sure set to off await this.light.set(off, id); //make sure set to off
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
ms += await this.cam.move(); ms += await this.cam.move();
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.light.set(off, id); await this.light.set(off, id);
if (this.capper) { if (this.capper) {
ms += await this.capper.capper(false, id); ms += await this.capper.capper(false, id);
@ -141,20 +141,20 @@ class Commands {
* @returns {integer} Length of action in ms * @returns {integer} Length of action in ms
**/ **/
async camera_backward() { async camera_backward() {
const id = uuid_1.v4(); const id = (0, uuid_1.v4)();
const off = [0, 0, 0]; const off = [0, 0, 0];
let rgb = [255, 255, 255]; let rgb = [255, 255, 255];
let ms; let ms;
try { try {
if (this.cam.state.dir) { if (this.cam.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.cam.set(false); await this.cam.set(false);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.light.set(rgb, id); await this.light.set(rgb, id);
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
ms = await this.cam.move(); ms = await this.cam.move();
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.light.set(off, id); await this.light.set(off, id);
} }
catch (err) { catch (err) {
@ -168,22 +168,22 @@ class Commands {
* @returns {integer} Length of action in ms * @returns {integer} Length of action in ms
**/ **/
async black_backward() { async black_backward() {
const id = uuid_1.v4(); const id = (0, uuid_1.v4)();
const off = [0, 0, 0]; const off = [0, 0, 0];
let ms = 0; let ms = 0;
try { try {
if (this.cam.state.dir) { if (this.cam.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.cam.set(false); await this.cam.set(false);
} }
if (this.capper) { if (this.capper) {
ms += await this.capper.capper(true, id); ms += await this.capper.capper(true, id);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.light.set(off, id); //make sure set to off await this.light.set(off, id); //make sure set to off
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
ms += await this.cam.move(); ms += await this.cam.move();
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.light.set(off, id); await this.light.set(off, id);
if (this.capper) { if (this.capper) {
ms += await this.capper.capper(false, id); ms += await this.capper.capper(false, id);
@ -202,20 +202,20 @@ class Commands {
* @returns {integer} Length of action in ms * @returns {integer} Length of action in ms
**/ **/
async camera_second_forward() { async camera_second_forward() {
const id = uuid_1.v4(); const id = (0, uuid_1.v4)();
const off = [0, 0, 0]; const off = [0, 0, 0];
let rgb = [255, 255, 255]; let rgb = [255, 255, 255];
let ms; let ms;
try { try {
if (!this.cam2.state.dir) { if (!this.cam2.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.cam2.set(true); await this.cam2.set(true);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.light.set(rgb, id); await this.light.set(rgb, id);
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
ms = await this.cam2.move(); ms = await this.cam2.move();
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.light.set(off, id); await this.light.set(off, id);
} }
catch (err) { catch (err) {
@ -231,20 +231,20 @@ class Commands {
* @returns {integer} Length of action in ms * @returns {integer} Length of action in ms
**/ **/
async camera_second_backward() { async camera_second_backward() {
const id = uuid_1.v4(); const id = (0, uuid_1.v4)();
const off = [0, 0, 0]; const off = [0, 0, 0];
let rgb = [255, 255, 255]; let rgb = [255, 255, 255];
let ms; let ms;
try { try {
if (this.cam2.state.dir) { if (this.cam2.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.cam2.set(false); await this.cam2.set(false);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.light.set(rgb, id); await this.light.set(rgb, id);
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
ms = await this.cam2.move(); ms = await this.cam2.move();
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.light.set(off, id); await this.light.set(off, id);
} }
catch (err) { catch (err) {
@ -260,23 +260,23 @@ class Commands {
* @returns {integer} Length of action in ms * @returns {integer} Length of action in ms
**/ **/
async cameras_forward() { async cameras_forward() {
const id = uuid_1.v4(); const id = (0, uuid_1.v4)();
const off = [0, 0, 0]; const off = [0, 0, 0];
let rgb = [255, 255, 255]; let rgb = [255, 255, 255];
let both; let both;
let ms; let ms;
try { try {
if (!this.cam.state.dir) { if (!this.cam.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.cam.set(true); await this.cam.set(true);
} }
if (!this.cam2.state.dir) { if (!this.cam2.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.cam2.set(true); await this.cam2.set(true);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.light.set(rgb, id); await this.light.set(rgb, id);
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
if (this.cam && this.cam2 && this.cam.arduino.alias.camera === this.cam.arduino.alias.camera_second) { if (this.cam && this.cam2 && this.cam.arduino.alias.camera === this.cam.arduino.alias.camera_second) {
ms = await this.cam.both(); ms = await this.cam.both();
} }
@ -286,7 +286,7 @@ class Commands {
both = [await this.cam.move, await this.cam2.move]; both = [await this.cam.move, await this.cam2.move];
ms = Math.max(...both); ms = Math.max(...both);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.light.set(off, id); await this.light.set(off, id);
} }
catch (err) { catch (err) {
@ -302,23 +302,23 @@ class Commands {
* @returns {integer} Length of action in ms * @returns {integer} Length of action in ms
**/ **/
async cameras_backward() { async cameras_backward() {
const id = uuid_1.v4(); const id = (0, uuid_1.v4)();
const off = [0, 0, 0]; const off = [0, 0, 0];
let rgb = [255, 255, 255]; let rgb = [255, 255, 255];
let both; let both;
let ms; let ms;
try { try {
if (this.cam.state.dir) { if (this.cam.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.cam.set(false); await this.cam.set(false);
} }
if (this.cam2.state.dir) { if (this.cam2.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.cam2.set(false); await this.cam2.set(false);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.light.set(rgb, id); await this.light.set(rgb, id);
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
if (this.cam && this.cam2 && this.cam.arduino.alias.camera === this.cam.arduino.alias.camera_second) { if (this.cam && this.cam2 && this.cam.arduino.alias.camera === this.cam.arduino.alias.camera_second) {
ms = await this.cam.both(); ms = await this.cam.both();
} }
@ -328,7 +328,7 @@ class Commands {
both = [await this.cam.move, await this.cam2.move]; both = [await this.cam.move, await this.cam2.move];
ms = Math.max(...both); ms = Math.max(...both);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.light.set(off, id); await this.light.set(off, id);
} }
catch (err) { catch (err) {
@ -344,23 +344,23 @@ class Commands {
* @returns {integer} Length of action in ms * @returns {integer} Length of action in ms
**/ **/
async camera_forward_camera_second_backward() { async camera_forward_camera_second_backward() {
const id = uuid_1.v4(); const id = (0, uuid_1.v4)();
const off = [0, 0, 0]; const off = [0, 0, 0];
let rgb = [255, 255, 255]; let rgb = [255, 255, 255];
let both; let both;
let ms; let ms;
try { try {
if (!this.cam.state.dir) { if (!this.cam.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.cam.set(true); await this.cam.set(true);
} }
if (this.cam2.state.dir) { if (this.cam2.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.cam2.set(false); await this.cam2.set(false);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.light.set(rgb, id); await this.light.set(rgb, id);
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
if (this.cam && this.cam2 && this.cam.arduino.alias.camera === this.cam.arduino.alias.camera_second) { if (this.cam && this.cam2 && this.cam.arduino.alias.camera === this.cam.arduino.alias.camera_second) {
ms = await this.cam.both(); ms = await this.cam.both();
} }
@ -370,7 +370,7 @@ class Commands {
both = [await this.cam.move, await this.cam2.move]; both = [await this.cam.move, await this.cam2.move];
ms = Math.max(...both); ms = Math.max(...both);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.light.set(off, id); await this.light.set(off, id);
} }
catch (err) { catch (err) {
@ -386,23 +386,23 @@ class Commands {
* @returns {integer} Length of action in ms * @returns {integer} Length of action in ms
**/ **/
async camera_backward_camera_second_forward() { async camera_backward_camera_second_forward() {
const id = uuid_1.v4(); const id = (0, uuid_1.v4)();
const off = [0, 0, 0]; const off = [0, 0, 0];
let rgb = [255, 255, 255]; let rgb = [255, 255, 255];
let both; let both;
let ms; let ms;
try { try {
if (this.cam.state.dir) { if (this.cam.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.cam.set(false); await this.cam.set(false);
} }
if (!this.cam2.state.dir) { if (!this.cam2.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.cam2.set(true); await this.cam2.set(true);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.light.set(rgb, id); await this.light.set(rgb, id);
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
if (this.cam && this.cam2 && this.cam.arduino.alias.camera === this.cam.arduino.alias.camera_second) { if (this.cam && this.cam2 && this.cam.arduino.alias.camera === this.cam.arduino.alias.camera_second) {
ms = await this.cam.both(); ms = await this.cam.both();
} }
@ -412,7 +412,7 @@ class Commands {
both = [await this.cam.move, await this.proj2.move]; both = [await this.cam.move, await this.proj2.move];
ms = Math.max(...both); ms = Math.max(...both);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.light.set(off, id); await this.light.set(off, id);
} }
catch (err) { catch (err) {
@ -429,10 +429,10 @@ class Commands {
let ms; let ms;
try { try {
if (!this.proj2.state.dir) { if (!this.proj2.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.proj2.set(true); await this.proj2.set(true);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
ms = await this.proj2.move(); ms = await this.proj2.move();
} }
catch (err) { catch (err) {
@ -449,10 +449,10 @@ class Commands {
let ms; let ms;
try { try {
if (this.proj2.state.dir) { if (this.proj2.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.proj2.set(false); await this.proj2.set(false);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
ms = await this.proj2.move(); ms = await this.proj2.move();
} }
catch (err) { catch (err) {
@ -470,14 +470,14 @@ class Commands {
let ms; let ms;
try { try {
if (!this.proj.state.dir) { if (!this.proj.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.proj.set(true); await this.proj.set(true);
} }
if (!this.proj2.state.dir) { if (!this.proj2.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.proj2.set(true); await this.proj2.set(true);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
if (this.proj && this.proj2 && this.proj.arduino.alias.projector === this.proj.arduino.alias.projector_second) { if (this.proj && this.proj2 && this.proj.arduino.alias.projector === this.proj.arduino.alias.projector_second) {
ms = await this.proj.both(); ms = await this.proj.both();
} }
@ -503,14 +503,14 @@ class Commands {
let ms; let ms;
try { try {
if (this.proj.state.dir) { if (this.proj.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.proj.set(false); await this.proj.set(false);
} }
if (this.proj2.state.dir) { if (this.proj2.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.proj2.set(false); await this.proj2.set(false);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
//run one projector without await? //run one projector without await?
if (this.proj && this.proj2 && this.proj.arduino.alias.projector === this.proj.arduino.alias.projector_second) { if (this.proj && this.proj2 && this.proj.arduino.alias.projector === this.proj.arduino.alias.projector_second) {
ms = await this.proj.both(); ms = await this.proj.both();
@ -538,14 +538,14 @@ class Commands {
let ms; let ms;
try { try {
if (!this.proj.state.dir) { if (!this.proj.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.proj.set(true); await this.proj.set(true);
} }
if (this.proj2.state.dir) { if (this.proj2.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.proj2.set(false); await this.proj2.set(false);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
//run one projector without await? //run one projector without await?
if (this.proj && this.proj2 && this.proj.arduino.alias.projector === this.proj.arduino.alias.projector_second) { if (this.proj && this.proj2 && this.proj.arduino.alias.projector === this.proj.arduino.alias.projector_second) {
ms = await this.proj.both(); ms = await this.proj.both();
@ -573,14 +573,14 @@ class Commands {
let ms; let ms;
try { try {
if (this.proj.state.dir) { if (this.proj.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.proj.set(false); await this.proj.set(false);
} }
if (!this.proj2.state.dir) { if (!this.proj2.state.dir) {
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
await this.proj2.set(true); await this.proj2.set(true);
} }
await delay_1.delay(this.cfg.arduino.serialDelay); await (0, delay_1.delay)(this.cfg.arduino.serialDelay);
//run one projector without await? //run one projector without await?
if (this.proj && this.proj2 && this.proj.arduino.alias.projector === this.proj.arduino.alias.projector_second) { if (this.proj && this.proj2 && this.proj.arduino.alias.projector === this.proj.arduino.alias.projector_second) {
ms = await this.proj.both(); ms = await this.proj.both();
@ -620,7 +620,7 @@ class Commands {
async pause(cmd) { async pause(cmd) {
let ms; let ms;
try { try {
ms = await delay_1.delay(cmd.light * 1000); //delay is in seconds ms = await (0, delay_1.delay)(cmd.light * 1000); //delay is in seconds
} }
catch (err) { catch (err) {
throw err; throw err;

File diff suppressed because one or more lines are too long

View File

@ -62,7 +62,7 @@ class Devices {
} }
catch (err) { catch (err) {
this.log.warn(err, 'SERIAL', false, true); this.log.warn(err, 'SERIAL', false, true);
await delay_1.delay(1000); await (0, delay_1.delay)(1000);
return this.all([]); return this.all([]);
} }
this.log.info(`Found ${serials.length} USB devices`, 'SERIAL', true, true); this.log.info(`Found ${serials.length} USB devices`, 'SERIAL', true, true);
@ -109,7 +109,7 @@ class Devices {
this.log.error('Error connecting', err); this.log.error('Error connecting', err);
return null; return null;
} }
await delay_1.delay(2000); await (0, delay_1.delay)(2000);
try { try {
verifySuccess = await this.arduino.verify(); verifySuccess = await this.arduino.verify();
} }
@ -118,7 +118,7 @@ class Devices {
return null; return null;
} }
this.log.info(`Verified ${serial} as mcopy device`, 'SERIAL', true, true); this.log.info(`Verified ${serial} as mcopy device`, 'SERIAL', true, true);
await delay_1.delay(1000); await (0, delay_1.delay)(1000);
try { try {
device = await this.arduino.distinguish(); device = await this.arduino.distinguish();
} }
@ -128,7 +128,7 @@ class Devices {
} }
this.remember('arduino', device, serial); this.remember('arduino', device, serial);
this.log.info(`Determined ${device} to be ${device}`, 'SERIAL', true, true); this.log.info(`Determined ${device} to be ${device}`, 'SERIAL', true, true);
await delay_1.delay(100); await (0, delay_1.delay)(100);
try { try {
await this.arduino.state(device, true); await this.arduino.state(device, true);
} }

File diff suppressed because one or more lines are too long

View File

@ -27,8 +27,8 @@ class WebView {
minHeight: 600 //, minHeight: 600 //,
//icon: path.join(__dirname, '../../assets/icons/icon.png') //icon: path.join(__dirname, '../../assets/icons/icon.png')
}; };
const pagePath = path_1.normalize(path_1.join(__dirname, '../../display.html')); const pagePath = (0, path_1.normalize)((0, path_1.join)(__dirname, '../../display.html'));
const pageUrl = url_1.format({ const pageUrl = (0, url_1.format)({
pathname: pagePath, pathname: pagePath,
protocol: 'file:' protocol: 'file:'
}); });
@ -61,13 +61,13 @@ class WebView {
this.showing = true; this.showing = true;
this.opened = true; this.opened = true;
await this.digitalWindow.setFullScreen(true); await this.digitalWindow.setFullScreen(true);
await delay_1.delay(300); await (0, delay_1.delay)(300);
if (this.platform === 'osx') { if (this.platform === 'osx') {
await delay_1.delay(300); //give macs an extra 300ms to open fullscreen await (0, delay_1.delay)(300); //give macs an extra 300ms to open fullscreen
} }
} }
async show(src) { async show(src) {
const normalSrc = path_1.normalize(path_1.join(src)); const normalSrc = (0, path_1.normalize)((0, path_1.join)(src));
if (!this.digitalWindow) { if (!this.digitalWindow) {
this.log.warn(`Cannot show "${src}" because window does not exist`); this.log.warn(`Cannot show "${src}" because window does not exist`);
return false; return false;
@ -94,7 +94,7 @@ class WebView {
this.log.warn(`Cannot show focus screen because window does not exist`); this.log.warn(`Cannot show focus screen because window does not exist`);
return false; return false;
} }
await delay_1.delay(500); await (0, delay_1.delay)(500);
try { try {
this.digitalWindow.webContents.send('focus', { focus: true }); this.digitalWindow.webContents.send('focus', { focus: true });
} }
@ -107,7 +107,7 @@ class WebView {
this.log.warn(`Cannot show field guide because window does not exist`); this.log.warn(`Cannot show field guide because window does not exist`);
return false; return false;
} }
await delay_1.delay(500); await (0, delay_1.delay)(500);
try { try {
this.digitalWindow.webContents.send('field', { field: true, ratio }); this.digitalWindow.webContents.send('field', { field: true, ratio });
} }
@ -120,7 +120,7 @@ class WebView {
this.log.warn(`Cannot show meter screen because window does not exist`); this.log.warn(`Cannot show meter screen because window does not exist`);
return false; return false;
} }
await delay_1.delay(500); await (0, delay_1.delay)(500);
try { try {
this.digitalWindow.webContents.send('meter', { meter: true }); this.digitalWindow.webContents.send('meter', { meter: true });
} }
@ -150,7 +150,7 @@ class Display {
constructor(sys) { constructor(sys) {
this.platform = sys.platform; this.platform = sys.platform;
this.displays = sys.displays; this.displays = sys.displays;
this.tmpdir = path_1.join(sys.tmp, 'mcopy_digital'); this.tmpdir = (0, path_1.join)(sys.tmp, 'mcopy_digital');
this.display = this.displays.find((display) => { this.display = this.displays.find((display) => {
if (display.primary) if (display.primary)
return true; return true;

File diff suppressed because one or more lines are too long

View File

@ -7,7 +7,7 @@ const exec_1 = require("exec");
const child_process_1 = require("child_process"); const child_process_1 = require("child_process");
async function spawnAsync(bin, args) { async function spawnAsync(bin, args) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const child = child_process_1.spawn(bin, args); const child = (0, child_process_1.spawn)(bin, args);
let stdout = ''; let stdout = '';
let stderr = ''; let stderr = '';
child.on('exit', (code) => { child.on('exit', (code) => {
@ -41,7 +41,7 @@ class FFMPEG {
this.id = 'ffmpeg'; this.id = 'ffmpeg';
this.onProgress = () => { }; this.onProgress = () => { };
this.bin = sys.deps.ffmpeg; this.bin = sys.deps.ffmpeg;
this.TMPDIR = path_1.join(sys.tmp, 'mcopy_digital'); this.TMPDIR = (0, path_1.join)(sys.tmp, 'mcopy_digital');
this.init(); this.init();
} }
/** /**
@ -124,9 +124,9 @@ class FFMPEG {
if (w && h) { if (w && h) {
scale = `,scale=trunc(ih*dar):${h}`; //:force_original_aspect_ratio=decrease,pad=${w}:${h}:(ow-iw)/2:(oh-ih)/2 scale = `,scale=trunc(ih*dar):${h}`; //:force_original_aspect_ratio=decrease,pad=${w}:${h}:(ow-iw)/2:(oh-ih)/2
} }
tmpoutput = path_1.join(this.TMPDIR, `${state.hash}-export-${padded}.${ext}`); tmpoutput = (0, path_1.join)(this.TMPDIR, `${state.hash}-export-${padded}.${ext}`);
try { try {
fileExists = await fs_extra_1.exists(tmpoutput); fileExists = await (0, fs_extra_1.exists)(tmpoutput);
} }
catch (err) { catch (err) {
// //
@ -143,7 +143,7 @@ class FFMPEG {
//-vf "select=gte(n\,${frame})" -compression_algo raw -pix_fmt rgb24 "export-${padded}.png" //-vf "select=gte(n\,${frame})" -compression_algo raw -pix_fmt rgb24 "export-${padded}.png"
try { try {
this.log.info(cmd); this.log.info(cmd);
output = await exec_1.exec(cmd); output = await (0, exec_1.exec)(cmd);
} }
catch (err) { catch (err) {
this.log.error(err); this.log.error(err);
@ -179,7 +179,7 @@ class FFMPEG {
const h = state.info.height; const h = state.info.height;
const tmppath = this.TMPDIR; const tmppath = this.TMPDIR;
let ext = 'png'; let ext = 'png';
let tmpoutput = path_1.join(tmppath, `${state.hash}-export-%08d.${ext}`); let tmpoutput = (0, path_1.join)(tmppath, `${state.hash}-export-%08d.${ext}`);
let args; let args;
let output; let output;
let estimated = -1; let estimated = -1;
@ -201,7 +201,7 @@ class FFMPEG {
//console.dir(args) //console.dir(args)
//console.dir(state) //console.dir(state)
try { try {
await fs_extra_1.mkdir(tmppath); await (0, fs_extra_1.mkdir)(tmppath);
} }
catch (err) { catch (err) {
if (err.code && err.code === 'EEXIST') { if (err.code && err.code === 'EEXIST') {
@ -216,7 +216,7 @@ class FFMPEG {
let stdout = ''; let stdout = '';
let stderr = ''; let stderr = '';
this.log.info(`${this.bin} ${args.join(' ')}`); this.log.info(`${this.bin} ${args.join(' ')}`);
this.child = child_process_1.spawn(this.bin, args); this.child = (0, child_process_1.spawn)(this.bin, args);
this.child.on('exit', (code) => { this.child.on('exit', (code) => {
//console.log('GOT TO EXIT'); //console.log('GOT TO EXIT');
if (code === 0) { if (code === 0) {
@ -273,9 +273,9 @@ class FFMPEG {
let ext = 'png'; let ext = 'png';
let tmppath; let tmppath;
let fileExists; let fileExists;
tmppath = path_1.join(this.TMPDIR, `${state.hash}-export-${padded}.${ext}`); tmppath = (0, path_1.join)(this.TMPDIR, `${state.hash}-export-${padded}.${ext}`);
try { try {
fileExists = await fs_extra_1.exists(tmppath); fileExists = await (0, fs_extra_1.exists)(tmppath);
} }
catch (err) { catch (err) {
this.log.error(err); this.log.error(err);
@ -283,7 +283,7 @@ class FFMPEG {
if (!fileExists) if (!fileExists)
return false; return false;
try { try {
await fs_extra_1.unlink(tmppath); await (0, fs_extra_1.unlink)(tmppath);
this.log.info(`Cleared frame ${tmppath}`); this.log.info(`Cleared frame ${tmppath}`);
} }
catch (err) { catch (err) {
@ -299,7 +299,7 @@ class FFMPEG {
const tmppath = this.TMPDIR; const tmppath = this.TMPDIR;
let files; let files;
try { try {
files = await fs_extra_1.readdir(tmppath); files = await (0, fs_extra_1.readdir)(tmppath);
} }
catch (err) { catch (err) {
this.log.error(err); this.log.error(err);
@ -313,7 +313,7 @@ class FFMPEG {
if (files) { if (files) {
files.forEach(async (file, index) => { files.forEach(async (file, index) => {
try { try {
await fs_extra_1.unlink(path_1.join(tmppath, file)); await (0, fs_extra_1.unlink)((0, path_1.join)(tmppath, file));
} }
catch (err) { catch (err) {
this.log.error(err); this.log.error(err);
@ -328,14 +328,14 @@ class FFMPEG {
async checkDir() { async checkDir() {
let fileExists; let fileExists;
try { try {
fileExists = await fs_extra_1.exists(this.TMPDIR); fileExists = await (0, fs_extra_1.exists)(this.TMPDIR);
} }
catch (err) { catch (err) {
this.log.error('Error checking for tmp dir', err); this.log.error('Error checking for tmp dir', err);
} }
if (!fileExists) { if (!fileExists) {
try { try {
await fs_extra_1.mkdir(this.TMPDIR); await (0, fs_extra_1.mkdir)(this.TMPDIR);
this.log.info(`Created tmpdir ${this.TMPDIR}`); this.log.info(`Created tmpdir ${this.TMPDIR}`);
} }
catch (err) { catch (err) {

File diff suppressed because one or more lines are too long

View File

@ -39,7 +39,7 @@ class FFPROBE {
let json; let json;
let vid; //whether video has stream with video data let vid; //whether video has stream with video data
try { try {
fileExists = await fs_extra_1.exists(video); fileExists = await (0, fs_extra_1.exists)(video);
} }
catch (err) { catch (err) {
return exit(err, 5); return exit(err, 5);
@ -51,7 +51,7 @@ class FFPROBE {
} }
try { try {
console.log(cmd); console.log(cmd);
raw = await exec_1.exec(cmd); raw = await (0, exec_1.exec)(cmd);
} }
catch (err) { catch (err) {
//return exit(err, 7); //return exit(err, 7);
@ -90,7 +90,7 @@ class FFPROBE {
* @returns {integer} Number of frames in video * @returns {integer} Number of frames in video
**/ **/
async frames(video) { async frames(video) {
const ext = path_1.extname(video.toLowerCase()); const ext = (0, path_1.extname)(video.toLowerCase());
let cmd = `${this.bin} -v error -select_streams v:0 -show_entries stream=nb_frames -of default=nokey=1:noprint_wrappers=1 "${video}"`; let cmd = `${this.bin} -v error -select_streams v:0 -show_entries stream=nb_frames -of default=nokey=1:noprint_wrappers=1 "${video}"`;
let backup_cmd = `${this.bin} -v error -count_frames -select_streams v:0 -show_entries stream=nb_read_frames -of default=nokey=1:noprint_wrappers=1 "${video}"`; let backup_cmd = `${this.bin} -v error -count_frames -select_streams v:0 -show_entries stream=nb_read_frames -of default=nokey=1:noprint_wrappers=1 "${video}"`;
let gif_cmd = `identify -format "%n\n" "${video}" | head -1`; let gif_cmd = `identify -format "%n\n" "${video}" | head -1`;
@ -98,7 +98,7 @@ class FFPROBE {
let raw; let raw;
let frames; let frames;
try { try {
fileExists = await fs_extra_1.exists(video); fileExists = await (0, fs_extra_1.exists)(video);
} }
catch (err) { catch (err) {
//return exit(err, 5); //return exit(err, 5);
@ -118,7 +118,7 @@ class FFPROBE {
} }
try { try {
console.log(cmd); console.log(cmd);
raw = await exec_1.exec(cmd); raw = await (0, exec_1.exec)(cmd);
} }
catch (err) { catch (err) {
console.error(err); console.error(err);

View File

@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ffprobe/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,uBAAuB;AAEvB,uCAAkC;AAClC,+BAA+B;AAC/B,+BAA4B;AAC5B,iCAAiC;AACjC,+BAA+B;AAE/B,MAAM,OAAO;IAGZ,YAAa,GAAS;QACrB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC;IAC7B,CAAC;IAED;;QAEI;IACI,QAAQ,CAAE,MAAe;QAChC,IAAI,GAAG,GAAY,IAAI,CAAC;QACxB,IAAI,KAAgB,CAAC;QACrB,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE;YAC/B,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC1B,GAAG,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;SAClD;aAAM;YACN,GAAG,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;SACzB;QACD,OAAO,GAAG,CAAA;IACX,CAAC;IACD;;;;;;QAMI;IACG,KAAK,CAAC,IAAI,CAAE,KAAc;QAChC,MAAM,GAAG,GAAY,GAAG,IAAI,CAAC,GAAG,4DAA4D,KAAK,GAAG,CAAA;QACpG,I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CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACjB,GAAG,GAAG,MAAM,IAAA,WAAI,EAAC,GAAG,CAAC,CAAC;SACtB;QAAC,OAAO,GAAG,EAAE;YACb,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACnB,OAAO,KAAK,CAAC;SACb;QAED,IAAI;YACH,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;SAC9B;QAAC,OAAO,GAAG,EAAE;YACb,OAAO,GAAG,CAAC,MAAM,CAAC;SAClB;QAED,OAAO,MAAM,CAAC;IACf,CAAC;CACD;AAED;;;;EAIE;AAEF,MAAM,CAAC,OAAO,GAAG,CAAC,GAAS,EAAE,EAAE;IAC9B,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;AACzB,CAAC,CAAA"}

View File

@ -81,7 +81,7 @@ class FilmOut {
* @param {string} data Data to produce hash of * @param {string} data Data to produce hash of
*/ */
hash(data) { hash(data) {
return crypto_1.createHash('sha1').update(data).digest('hex'); return (0, crypto_1.createHash)('sha1').update(data).digest('hex');
} }
/** /**
* Sets filmout direction. * Sets filmout direction.
@ -125,17 +125,17 @@ class FilmOut {
throw err; throw err;
} }
if (this.server.displayImage(path)) { if (this.server.displayImage(path)) {
await delay_1.delay(20); await (0, delay_1.delay)(20);
return; return;
} }
await this.display.show(path); await this.display.show(path);
await delay_1.delay(20); await (0, delay_1.delay)(20);
} }
/** /**
* Ends the filmout process and closes the display. * Ends the filmout process and closes the display.
**/ **/
async end() { async end() {
await delay_1.delay(20); await (0, delay_1.delay)(20);
this.display.hide(); this.display.hide();
} }
/** /**
@ -154,13 +154,13 @@ class FilmOut {
let stats; let stats;
let frameList; let frameList;
try { try {
stats = await fs_extra_1.lstat(arg.path); stats = await (0, fs_extra_1.lstat)(arg.path);
} }
catch (err) { catch (err) {
this.log.error(err, 'FILMOUT', true, true); this.log.error(err, 'FILMOUT', true, true);
return false; return false;
} }
ext = path_1.extname(arg.fileName.toLowerCase()); ext = (0, path_1.extname)(arg.fileName.toLowerCase());
if (stats.isDirectory()) { if (stats.isDirectory()) {
this.state.directory = true; this.state.directory = true;
this.state.still = false; this.state.still = false;
@ -306,13 +306,13 @@ class FilmOut {
async isGifAnimated(pathStr) { async isGifAnimated(pathStr) {
let gifBuffer; let gifBuffer;
try { try {
gifBuffer = await fs_extra_1.readFile(pathStr); gifBuffer = await (0, fs_extra_1.readFile)(pathStr);
} }
catch (err) { catch (err) {
this.log.error(err, 'FILMOUT', true, true); this.log.error(err, 'FILMOUT', true, true);
return false; return false;
} }
return animated_gif_detector_1.default(gifBuffer); return (0, animated_gif_detector_1.default)(gifBuffer);
} }
/** /**
* Return information on a still image using the Jimp module * Return information on a still image using the Jimp module
@ -360,13 +360,13 @@ class FilmOut {
async dirList(pathStr) { async dirList(pathStr) {
let frameList = []; let frameList = [];
try { try {
frameList = await fs_extra_1.readdir(pathStr); frameList = await (0, fs_extra_1.readdir)(pathStr);
} }
catch (err) { catch (err) {
this.log.error(err, 'FILMOUT', true, true); this.log.error(err, 'FILMOUT', true, true);
} }
frameList = frameList.filter((fileName) => { frameList = frameList.filter((fileName) => {
let ext = path_1.extname(fileName); let ext = (0, path_1.extname)(fileName);
if (this.sequenceExtensions.indexOf(ext) !== -1) { if (this.sequenceExtensions.indexOf(ext) !== -1) {
return true; return true;
} }
@ -374,7 +374,7 @@ class FilmOut {
}); });
frameList.sort(); frameList.sort();
frameList = frameList.map((fileName) => { frameList = frameList.map((fileName) => {
return path_1.join(pathStr, fileName); return (0, path_1.join)(pathStr, fileName);
}); });
return frameList; return frameList;
} }

File diff suppressed because one or more lines are too long

View File

@ -62,14 +62,14 @@ class Light {
catch (err) { catch (err) {
this.log.error('Error sending light command', err); this.log.error('Error sending light command', err);
} }
await delay_1.delay(1); await (0, delay_1.delay)(1);
try { try {
this.arduino.sendString(this.id, str); this.arduino.sendString(this.id, str);
} }
catch (err) { catch (err) {
this.log.error('Error sending light string', err); this.log.error('Error sending light string', err);
} }
await delay_1.delay(1); await (0, delay_1.delay)(1);
await ms; await ms;
return await this.end(rgb, id, ms); return await this.end(rgb, id, ms);
} }

View File

@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/light/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,iCAA8B;AAC9B,2BAA4B;AAE5B,MAAM,KAAK;IAYV;;QAEI;IACJ,YAAa,OAAiB,EAAE,GAAS,EAAE,EAAQ;QAd5C,UAAK,GAAS,EAAE,KAAK,EAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAA;QAOlC,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,GAAG,CAAC,EAAE,KAAK,EAAG,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;QAC1C,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC;QACvC,IAAI,CAAC,MAAM,EAAE,CAAC;IACf,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,CAAC;IAChD,CAAC;IAED;;QAEI;IACI,KAAK,CAAC,QAAQ,CAAE,KAAW,EAAE,GAAS;QAC7C,IAAI,OAAO,GAAG,CAAC,GAAG,KAAK,WAAW,EAAE;YACnC,IAAI;gBACH,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,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b,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACnB,MAAM,GAAG,CAAA;SACT;QACD,OAAO,GAAG,CAAC;IACZ,CAAC;CACD;AAED,MAAM,CAAC,OAAO,GAAG,UAAU,OAAiB,EAAE,GAAS,EAAE,EAAQ;IAChE,OAAO,IAAI,KAAK,CAAC,OAAO,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;AACpC,CAAC,CAAA"}

View File

@ -13,34 +13,34 @@ let transport;
* @returns {string} Path to log file * @returns {string} Path to log file
**/ **/
async function logFile() { async function logFile() {
const homeDir = os_1.homedir(); const homeDir = (0, os_1.homedir)();
const linuxDir = `/.mcopy/`; const linuxDir = `/.mcopy/`;
const macDir = `/Library/Logs/mcopy/`; const macDir = `/Library/Logs/mcopy/`;
const winDir = `/AppData/Roaming/mcopy/`; const winDir = `/AppData/Roaming/mcopy/`;
let logPath = path_1.normalize(path_1.join(homeDir, linuxDir)); let logPath = (0, path_1.normalize)((0, path_1.join)(homeDir, linuxDir));
let dirExists; let dirExists;
if (process.platform === 'darwin') { if (process.platform === 'darwin') {
logPath = path_1.normalize(path_1.join(homeDir, macDir)); logPath = (0, path_1.normalize)((0, path_1.join)(homeDir, macDir));
} }
else if (process.platform === 'win32') { else if (process.platform === 'win32') {
logPath = path_1.normalize(path_1.join(homeDir, winDir)); logPath = (0, path_1.normalize)((0, path_1.join)(homeDir, winDir));
} }
try { try {
dirExists = await fs_extra_1.exists(logPath); dirExists = await (0, fs_extra_1.exists)(logPath);
} }
catch (err) { catch (err) {
console.error(err); console.error(err);
} }
if (!dirExists) { if (!dirExists) {
try { try {
await fs_extra_1.mkdir(logPath); await (0, fs_extra_1.mkdir)(logPath);
} }
catch (err) { catch (err) {
console.error(`Error creating directory for mcopy log file, ${logPath}`); console.error(`Error creating directory for mcopy log file, ${logPath}`);
console.error(err); console.error(err);
} }
} }
return path_1.join(logPath, 'mcopy.log'); return (0, path_1.join)(logPath, 'mcopy.log');
} }
/** /**
* Create and return the logger transport based on settings determined in * Create and return the logger transport based on settings determined in
@ -70,7 +70,7 @@ module.exports = async function Log(arg) {
consoleFormat.label = arg.label; consoleFormat.label = arg.label;
fileFormat.label = arg.label; fileFormat.label = arg.label;
} }
transport = winston_1.createLogger({ transport = (0, winston_1.createLogger)({
format: winston_1.format.combine(winston_1.format.label({ label: arg.label || 'mcopy' }), winston_1.format.timestamp({ format: winston_1.format.combine(winston_1.format.label({ label: arg.label || 'mcopy' }), winston_1.format.timestamp({
format: 'YYYY-MM-DD HH:mm:ss' format: 'YYYY-MM-DD HH:mm:ss'
}), winston_1.format.printf((info) => `${info.timestamp} [${info.label}] ${info.level}: ${info.message}` + (info.splat !== undefined ? `${info.splat}` : " "))), }), winston_1.format.printf((info) => `${info.timestamp} [${info.label}] ${info.level}: ${info.message}` + (info.splat !== undefined ? `${info.splat}` : " "))),

View File

@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/log/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,qCAA2D;AAC3D,+BAAuC;AACvC,uCAAyC;AACzC,2BAA6B;AAE7B,MAAM,OAAO,GAAG,mBAAmB,CAAA;AACnC,IAAI,SAAe,CAAA;AAEnB;;;;;IAKI;AACJ,KAAK,UAAU,OAAO;IACrB,MAAM,OAAO,GAAY,YAAO,EAAE,CAAC;IACnC,MAAM,QAAQ,GAAY,UAAU,CAAC;IACrC,MAAM,MAAM,GAAY,sBAAsB,CAAC;IAC/C,MAAM,MAAM,GAAY,yBAAyB,CAAC;IAClD,IAAI,OAAO,GAAY,gBAAS,CAAC,WAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC1D,IAAI,SAAmB,CAAC;IAExB,IAAI,OAAO,CAAC,QAAQ,KAAK,QAAQ,EAAE;QAClC,OAAO,GAAG,gBAAS,CAAC,WAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;KAC3C;SAAM,IAAI,OAAO,CAAC,QAA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ACpC,CAAA;KACD;SAAM;QACN,IAAI,GAAG,IAAI,GAAG,CAAC,KAAK,EAAE;YACrB,aAAa,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;YAChC,UAAU,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;SAC7B;QACD,SAAS,GAAG,IAAA,sBAAY,EAAC;YACxB,MAAM,EAAG,gBAAM,CAAC,OAAO,CACnB,gBAAM,CAAC,KAAK,CAAC,EAAE,KAAK,EAAG,GAAG,CAAC,KAAK,IAAI,OAAO,EAAE,CAAC,EACjD,gBAAM,CAAC,SAAS,CAAC;gBAChB,MAAM,EAAE,qBAAqB;aAC7B,CAAC,EACF,gBAAM,CAAC,MAAM,CAAC,CAAC,IAAU,EAAG,EAAE,CAAC,GAAG,IAAI,CAAC,SAAS,KAAK,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,OAAO,EAAE,GAAC,CAAC,IAAI,CAAC,KAAK,KAAG,SAAS,CAAA,CAAC,CAAA,GAAG,IAAI,CAAC,KAAK,EAAE,CAAA,CAAC,CAAA,GAAG,CAAC,CAAC,CAC7I;YACH,UAAU,EAAE;gBACX,IAAI,CAAC,oBAAU,CAAC,OAAO,CAAC,CAAC,aAAa,CAAC;gBACvC,IAAI,CAAC,oBAAU,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC;aACjC;SACD,CAAC,CAAA;KACF;IACD,OAAO,SAAS,CAAA;AACjB,CAAC,CAAA"}

View File

@ -14,7 +14,7 @@ class Processing {
let ms; let ms;
//console.log(url) //console.log(url)
try { try {
res = await exec_1.exec(cmd); res = await (0, exec_1.exec)(cmd);
} }
catch (err) { catch (err) {
return reject(err); return reject(err);

View File

@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/processing/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,+BAA4B;AAE5B,MAAM,UAAU;IAEf,YAAa,GAAY;QACxB,IAAI,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AAQ,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAA;IAClG,CAAC;IAEM,KAAK,CAAC,IAAI;QAChB,OAAO,IAAI,OAAO,CAAE,KAAK,EAAE,OAAa,EAAE,MAAY,EAAE,EAAE;YACzD,MAAM,SAAS,GAAY,CAAC,IAAI,IAAI,EAAE,CAAA;YACtC,MAAM,GAAG,GAAY,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAA;YACvC,MAAM,GAAG,GAAY,kBAAkB,GAAG,EAAE,CAAA;YAC5C,IAAI,GAAY,CAAA;YAChB,IAAI,EAAW,CAAA;YACf,kBAAkB;YAClB,IAAI;gBACH,GAAG,GAAG,MAAM,IAAA,WAAI,EAAC,GAAG,CAAC,CAAA;aACrB;YAAC,OAAO,GAAG,EAAE;gBACb,OAAO,MAAM,CAAC,GAAG,CAAC,CAAA;aAClB;YACD,EAAE,GAAG,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,GAAG,SAAS,CAAA;YAC9B,OAAO,OAAO,CAAC,EAAE,CAAC,CAAA;QACnB,CAAC,CAAC,CAAA;IACH,CAAC;IACM,KAAK,CAAC,MAAM,CAAE,GAAa;QACjC,OAAO,IAAI,OAAO,CAAE,CAAC,OAAa,EAAE,MAAY,EAAE,EAAE;YACnD,OAAO,OAAO,CAAC,CAAC,CAAC,CAAA;QAClB,CAAC,CAAC,CAAA;IACH,CAAC;CACD;AAED,MAAM,CAAC,OAAO,CAAC,UAAU,GAAG,UAAU,CAAA"}

View File

@ -164,7 +164,7 @@ class Sequencer {
} }
//UI initiates pause, not planned //UI initiates pause, not planned
while (this.paused) { while (this.paused) {
await delay_1.default(42); await (0, delay_1.default)(42);
} }
if (typeof this.arr[y] === 'undefined') { if (typeof this.arr[y] === 'undefined') {
continue; continue;

File diff suppressed because one or more lines are too long

View File

@ -37,9 +37,9 @@ class Server {
await this.start(); await this.start();
} }
async load() { async load() {
this.http = express_1.default(); this.http = (0, express_1.default)();
for (let tmpl of this.templates) { for (let tmpl of this.templates) {
tmpl.data = await promises_1.readFile(tmpl.path, 'utf8'); tmpl.data = await (0, promises_1.readFile)(tmpl.path, 'utf8');
} }
this.http.get('/', this.index.bind(this)); this.http.get('/', this.index.bind(this));
this.http.get('/image/:key', this.image.bind(this)); this.http.get('/image/:key', this.image.bind(this));
@ -165,7 +165,7 @@ class Server {
async displayImage(src) { async displayImage(src) {
let key; let key;
if (this.useServer()) { if (this.useServer()) {
key = path_1.basename(src); key = (0, path_1.basename)(src);
this.addProxy(key, src); this.addProxy(key, src);
await this.cmdAll('image', { image: `/image/${key}` }); await this.cmdAll('image', { image: `/image/${key}` });
return true; return true;
@ -179,7 +179,7 @@ class Server {
* WSS * WSS
**/ **/
async cmd(ws, action, options = {}) { async cmd(ws, action, options = {}) {
const id = uuid_1.v4(); const id = (0, uuid_1.v4)();
let obj = { let obj = {
id, action id, action
}; };

File diff suppressed because one or more lines are too long

View File

@ -42,7 +42,7 @@ async function dependencies(platform) {
//if linux //if linux
if (platform === 'nix') { if (platform === 'nix') {
try { try {
eogoutput = await exec_1.exec('which eog'); eogoutput = await (0, exec_1.exec)('which eog');
} }
catch (err) { catch (err) {
console.error('eog is not installed', err); console.error('eog is not installed', err);
@ -96,12 +96,12 @@ async function system(ui) {
const obj = {}; const obj = {};
let platform; let platform;
try { try {
obj.tmp = os_1.tmpdir(); obj.tmp = (0, os_1.tmpdir)();
} }
catch (err) { catch (err) {
obj.tmp = '/tmp'; obj.tmp = '/tmp';
} }
platform = os_1.type(); platform = (0, os_1.type)();
if (platform === 'Darwin') { if (platform === 'Darwin') {
obj.platform = 'osx'; obj.platform = 'osx';
} }

View File

@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/system/index.ts"],"names":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;IAET,OAAO,GAAG,CAAC;AACZ,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC"}

2
app/package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "mcopy-app", "name": "mcopy-app",
"version": "1.8.93", "version": "1.8.94",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {

View File

@ -1,6 +1,6 @@
{ {
"name": "mcopy-app", "name": "mcopy-app",
"version": "1.8.93", "version": "1.8.94",
"description": "GUI for the mcopy small gauge film optical printer platform", "description": "GUI for the mcopy small gauge film optical printer platform",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {

View File

@ -1,5 +1,5 @@
{ {
"version": "1.8.93", "version": "1.8.94",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "mcopy", "name": "mcopy",
"version": "1.8.93", "version": "1.8.94",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "mcopy", "name": "mcopy",
"version": "1.8.93", "version": "1.8.94",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"alert": "file:app/lib/alert", "alert": "file:app/lib/alert",

View File

@ -1,6 +1,6 @@
{ {
"name": "mcopy", "name": "mcopy",
"version": "1.8.93", "version": "1.8.94",
"description": "Small gauge film optical printer platform", "description": "Small gauge film optical printer platform",
"main": "build.js", "main": "build.js",
"directories": { "directories": {

View File

@ -1,5 +1,5 @@
{ {
"version": "1.8.93", "version": "1.8.94",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {