apimatric

1.0.2 • Public • Published

MATRICIntegrationDemo

API and demo make it in Node.js

const { APIMatric } = require("apimatric");
const api = new APIMatric("NameOfYourApplication");
api.Connect();

MATRIC Server show you a PIN, save it!

You can read this PIN later in the MATRIC Server in Settings/API Integration.

INSTALL

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js. Node.js 0.10 or higher is required.

Installation is done using the npm install command:

$ npm install apimatric --save

USER MANUAL

  • Set the PIN api.setPIN("YourMATIC Server PIN");

  • GetConnectedClients api.GetConnectedClients();

  • SetDeck.- Parameters deckId and pageId api.SetDeck(deckId, pageId);

  • SetActivePage.- Parameters pageId api.SetActivePage(pageID)

  • SetButtonProperties.- Parameters buttonId and props

    • props.
      • imageOff
      • imageOn
      • textcolorOn
      • textcolorOff
      • backgroundcolorOn
      • backgroundcolorOff
      • fontSize
      • text
api.SetButtonProperties(buttonId, {
	backgroundcolorOff: "red",
	text: "Fire",
});
  • Close.- Close the client connection. api.Close();

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i apimatric

Weekly Downloads

0

Version

1.0.2

License

LGPL-2.1

Unpacked Size

4.6 kB

Total Files

3

Last publish

Collaborators

  • pablofuentes88