Small bugfix

This commit is contained in:
2025-10-24 16:21:04 +02:00
parent 02391f813b
commit 7ce9003621
21 changed files with 601 additions and 10 deletions

View File

@@ -8,12 +8,14 @@ import {
import { CameraRunner } from './CameraRunner';
import { UnityRunner } from './Unity/UnityRunner';
import { UnityWebSocket } from './Unity/UnityWebSocket';
import { TwilioHandler } from './Twilio';
export class Main {
dataPath = join(homedir(), 'MorphixProductions', 'NTSHControl');
ConfigurationManager = new ConfigurationManager(this);
WebServer = new WebServer(this);
Twilio = new TwilioHandler(this);
CameraRunner = new CameraRunner(this);
UnityRunner = new UnityRunner(this);
@@ -24,6 +26,7 @@ export class Main {
async start() {
await this.ConfigurationManager.load();
await this.WebServer.listen();
await this.Twilio.load();
await this.CameraRunner.connect();
@@ -47,9 +50,14 @@ export class Main {
'Failed to reboot CameraRunner:',
response.message
);
this.Twilio.sendError(
'CameraRunner',
`Failed to reboot CameraRunner: ${response.message}`
);
resolve(false);
} else {
console.log('CameraRunner rebooted successfully.');
this.Twilio.sendError('CameraRunner', null);
resolve(true);
}
}