Skip to content
This repository has been archived by the owner on Aug 12, 2021. It is now read-only.

Sofie: The Modern TV News Studio Automation System (Server Core Integration library)

License

Notifications You must be signed in to change notification settings

tv2/tv-automation-server-core-integration

 
 

Repository files navigation

Sofie: The Modern TV News Studio Automation System (Server Core Integration)

CircleCI codecov

This library is used to connect to the Sofie Server Core from other Node processes.

This is a part of the Sofie TV News Studio Automation System.

Getting started

Typescript

import { CoreConnection, PeripheralDeviceAPI } from 'tv-automation-server-core-integration'

// Set up our basic credentials:
let core = new CoreConnection({
	deviceId: 'device01', 			// Unique id
	deviceToken: 'mySecretToken',	// secret token, used to authenticate this device
	deviceType: PeripheralDeviceAPI.DeviceType.PLAYOUT,
	deviceName: 'My peripheral device'
})
core.on('error', console.log)
// Initiate connection to Core:
core.init({
	host: '127.0.0.1',
	port: 3000
}).then(() => {
	// Connection has been established
	console.log('Connected!')
	// Set device status:
	return core.setStatus({
		statusCode: PeripheralDeviceAPI.StatusCode.GOOD,
		messages: ['Everything is awesome!']
	})
})
.catch((err) => {
	console.log(err)
})

Development

  • Installation
    • Install Yarn from https://yarnpkg.com
    • Install Jest, yarn global add jest
    • Install npm dependencies, yarn
  • Build
    • Build, yarn build
    • Run tests, yarn test
    • Run tests & watch, yarn watch

About

Sofie: The Modern TV News Studio Automation System (Server Core Integration library)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 98.9%
  • JavaScript 1.1%