@trickfilm400/ups-apc-ap9630
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

UPS APC AP9630 NodeJS API

This NPM package provides a full nodejs-api for the APC AP9630 UPS Management Card 2 device to fetch data of the device.

Usage

  • Install NPM package from GitHub / NPM.
  • Function return a Promise

Example

import UPS_APC_API from "@trickfilm400/ups-apc-ap9630";

const client = new UPS_APC_API("<IP / Host of device", "<username>", "<password>");

client.getData().then((res) => {
    console.log(res);
    /*
     * {
            loadInAmpere: number,
            voltage: number,
            loadInWatt: number,
            temperature: number,
        }
     *
     *
     */
}).catch(console.error);

© 2023-2024 Trickfilm400

Package Sidebar

Install

npm i @trickfilm400/ups-apc-ap9630

Weekly Downloads

4

Version

1.1.3

License

MIT

Unpacked Size

16.4 kB

Total Files

10

Last publish

Collaborators

  • trickfilm400