feat: automation service

This commit is contained in:
Carlos Valente
2024-11-23 22:20:07 +01:00
committed by Carlos Valente
parent a8fe4c8e68
commit 05e61e7bf8
28 changed files with 1220 additions and 8 deletions
@@ -0,0 +1,20 @@
import { OSCOutput, HTTPOutput } from 'ontime-types';
export function makeOSCAction(action?: Partial<OSCOutput>): OSCOutput {
return {
type: 'osc',
targetIP: 'localhost',
targetPort: 3000,
address: 'test',
args: 'message',
...action,
};
}
export function makeHTTPAction(action?: Partial<HTTPOutput>): HTTPOutput {
return {
type: 'http',
url: 'localhost',
...action,
};
}