Node.js wrapper module for Barco EventMaster REST API.
IMPORTANT! NOT ALL CALLS HAVE BEEN PROPERLY TESTED YET. USE AT OWN RISK. Everything should be pretty straight forward and working, though. Jinx.
Installation
npm install barco-eventmaster
Example
const EventMaster = require('barco-eventmaster');
// Change this IP to your own E2/S3 IP
const em = new EventMaster('10.0.0.1');
// Get all preset names
em.listPresets((err, presets) => {
if (err) {
console.error("Something went wrong with the event master request", err);
return;
}
console.log("Current presets:", presets);
});All API calls are documented with JSDoc comments in the module source code. Most methods follow the pattern:
em.methodName(params..., callback)
where params are the required parameters for the API call, and callback is a function (err, result).
listPresets(cb)savePreset(params, cb)renamePreset(params, cb)deletePreset(params, cb)activatePreset(params, cb)recallNextPreset(cb)listDestinationsForPreset(id, cb)
listSources(cb)listDestinations(cb)listInputs(inputId, cb)listOutputs(outputCfgId, cb)fillHV(screenId, Layers, cb)clearLayers(screenId, Layers, cb)freezeDestSource(params, cb)
listCues(cb)recallCue(id, cb)storeCue(id, cb)deleteCue(id, cb)takeCue(cb)activateCue(params, cb)
listUserKeys(cb)recallUserKey(params, cb)storeUserKey(name, cb)deleteUserKey(id, cb)
listOperators(cb)configureOperator(params, cb)
listStill(cb)takeStill(params, cb)deleteStill(id, cb)
listSourceMainBackup(inputType, cb)activateSourceMainBackup(params, cb)resetSourceMainBackup(id, cb)
listAuxContent(id, cb)changeAuxContent(params, cb)listContent(id, cb)changeContent(params, cb)
powerStatus(cb)resetFrameSettings(resetType, saveOptions, cb)
activateDestGroup(params, cb)armUnarmDestination(params, cb)allTrans(cb)cut(cb)
listMvrPreset(id, cb)activateMvrPreset(id, cb)mvrLayoutChange(params, cb)
Note:
- All methods use a callback as the last argument:
(err, result). - For complex parameter objects, see the JSDoc comments in the source code for details and examples.
William Viker
william.viker@gmail.com
Jeffrey Davidsz
jeffrey.davidsz@vicreo.eu
Please file a ticket or pull request in GitHub if you find something that should be better or isn't working properly.