mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-19 14:14:17 +00:00
Ux/54 help (#88)
* ux/54-help tooltips * ux/54-help refetch after mutation * ux/54-help broadcast event index * ux/54-help prevent multiple keypresses when key held * ux/54-help fat clock * ux/54-help progress bar user defined * ux/54-help onAir is button * ux/54-help OSC: add missing presenter message * ux/54-help OSC: enable / disable OSC * ux/54-help handle timezone in excel date import * ux/54-help tray left click to show app * ux/54-help create queriable endpoint * ux/54-help fix memoisation in lower thirds * ux/54-help revise icons * ux/54-help clarify text * ux/54-help forgiving text parsing * ux/54-help add smart keywords * ux/54-help version bump
This commit is contained in:
+12
-4
@@ -123,6 +123,7 @@ const osc = data.osc;
|
||||
const oscIP = osc?.targetIP || config.osc.targetIP;
|
||||
const oscOutPort = osc?.portOut || config.osc.portOut;
|
||||
const oscInPort = osc?.port || config.osc.port;
|
||||
const oscInEnabled = osc?.enabled !== undefined ? osc.enabled : config.osc.inputEnabled;
|
||||
|
||||
const serverPort = data.settings.serverPort || config.server.port;
|
||||
|
||||
@@ -130,14 +131,19 @@ const serverPort = data.settings.serverPort || config.server.port;
|
||||
import { initiateOSC, shutdownOSCServer } from './controllers/OscController.js';
|
||||
|
||||
export const startOSCServer = async (overrideConfig = null) => {
|
||||
|
||||
if (!oscInEnabled) {
|
||||
global.timer.info('RX', 'OSC Input Disabled')
|
||||
return;
|
||||
}
|
||||
|
||||
// Setup default port
|
||||
const oscSettings = {
|
||||
port: overrideConfig?.port || oscInPort,
|
||||
ipOut: oscIP,
|
||||
portOut: oscOutPort,
|
||||
};
|
||||
|
||||
// Start OSC Server
|
||||
global.timer.info('RX', `Starting OSC Server on port: ${oscInPort}`)
|
||||
initiateOSC(oscSettings);
|
||||
};
|
||||
|
||||
@@ -156,7 +162,7 @@ export const startServer = async (overrideConfig = null) => {
|
||||
|
||||
// Start server
|
||||
const returnMessage = `Ontime is listening on port ${port}`;
|
||||
server.listen(port, '0.0.0.0', () => console.log(returnMessage));
|
||||
server.listen(port, '0.0.0.0');
|
||||
|
||||
// OSC Config
|
||||
const oscConfig = {
|
||||
@@ -167,7 +173,7 @@ export const startServer = async (overrideConfig = null) => {
|
||||
// init timer
|
||||
global.timer = new EventTimer(server, config.timer, oscConfig, data.http);
|
||||
global.timer.setupWithEventList(data.events);
|
||||
|
||||
global.timer.info('SERVER', returnMessage);
|
||||
return returnMessage;
|
||||
};
|
||||
|
||||
@@ -185,3 +191,5 @@ export const shutdown = async () => {
|
||||
// shutdown timer
|
||||
global.timer.shutdown();
|
||||
};
|
||||
|
||||
export { server, app };
|
||||
Reference in New Issue
Block a user