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();

    Keywords

    Install

    npm i apimatric

    DownloadsWeekly Downloads

    0

    Version

    1.0.2

    License

    LGPL-2.1

    Unpacked Size

    4.6 kB

    Total Files

    3

    Last publish

    Collaborators

    • pablofuentes88