0.0.7 • Published 8 months ago

@oscar-js/qsc-connector v0.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

@oscar-js/qsc-connector

NPM Published Version

About

This module provides a simple way to connect to a Q-sys Remote Control Server providing a easy to use interface where you can start adding the application's business logic.

Install

Using npm:

npm install @oscar-js/qsc-connector

Usage

To include it as part of a Node.js app, use the following:

import QSC from '@oscar-js/qsc-connector';

const qsc = await QSC({
  host: '<my-host>',
  port: '<my-port>',
});

qsc.emitter.on('message', (message) => console.log(message));

const messageId = qsc.call({
  method: 'Component.Get',
  params: {
    Name: '<component-name>',
    Controls: [{ Name: '<control-name>' }],
  },
})
0.0.7

8 months ago

0.0.6

8 months ago

0.0.5

8 months ago