mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-15 12:23:51 +00:00
feat: automation service
This commit is contained in:
committed by
Carlos Valente
parent
a8fe4c8e68
commit
05e61e7bf8
@@ -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,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user