Sofie: The Modern TV News Studio Automation System (MOS Connection library)
![codecov](https://codecov.io/gh/nrkno/tv-automation-mos-connection/branch/master/graph/badge.svg)
Library for connecting to a MOS device using the MOS Protocol.
This is a part of the Sofie TV News Studio Automation System.
Getting started
import { MosConnection } from 'mos-connection'
let mos = new MosConnection(new ConnectionConfig({
mosID: 'my.mos.application',
acceptsConnections: true,
profiles: {
'0': true,
'1': true,
'2': true,
'4': true
},
openRelay: true
debug: false
}))
mos.onConnection((device: MosDevice) => {
if (device.hasConnection) {
device.getMachineInfo().then((lm) => {
console.log('Machineinfo', lm)
})
}
device.onRequestMachineInfo(() => {})
device.onCreateRunningOrder((ro) => {})
device.onDeleteRunningOrder((RunningOrderID: MosString128) => {})
device.onReadyToAir(() => {})
})
Development status:
Basic connections
Working in dev environment
Profile 0
Profile 1
Profile 2
Profile 3
Profile 4
Profile 5
Profile 6
Profile 7