Lots of changes
- ✅ Feedback van dataSensor array - ✅ dataSliders min/max and unit - ✅ Camera before Unity - ✅ Restart knop buiten service mode - ✅ Operator phonenumber button - ✅ Gracefull shutdown - ✅ Out of service control
This commit is contained in:
@@ -50,7 +50,30 @@ export class WebServer {
|
||||
'unityWebSocketState',
|
||||
this._Main.UnityWebSocket.getState()
|
||||
);
|
||||
socket.emit(
|
||||
'supportNumber',
|
||||
this._Main.Config.support.telephone.replace('+', '')
|
||||
);
|
||||
|
||||
socket.on(
|
||||
'restartInstallation',
|
||||
(
|
||||
callback: (response: {
|
||||
succeed: boolean;
|
||||
message?: string;
|
||||
}) => void
|
||||
) => {
|
||||
if (this._Main.CameraRunner.state !== 'CONNECTED')
|
||||
return callback({
|
||||
succeed: false,
|
||||
message:
|
||||
'Cannot reboot camera runner because it is not connected.',
|
||||
});
|
||||
|
||||
this._Main.restart();
|
||||
callback({ succeed: true });
|
||||
}
|
||||
);
|
||||
socket.on('cameraRunner', (command: string, ...args: any[]) =>
|
||||
this._Main.CameraRunner.handle(command, ...args)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user