@hg8496/gridvis-client
TypeScript icon, indicating that this package has built-in type declarations

1.3.7 • Public • Published

gridvis-client

NPM version Build Status Coverage Status

A node js library to access the Janitza GridVis REST interface.

import { GridVisClient } from '@hg8496/gridvis-client';

async function main() {
    const client = new GridVisClient({url: ""});
    return await client.fetchGridVisVersion();
}

main().then((version) => {
    console.log(version)
});

CLI

A cli is also included. To obtain some information or statistics. To see statistic of last months events for a given device call:

$ gridvis-client events https://gridvis-energy.com DemoProject 92 -s NAMED_LastYear -e NAMED_LastYear
VoltageUnder: 7

Package Sidebar

Install

npm i @hg8496/gridvis-client

Weekly Downloads

1

Version

1.3.7

License

MIT

Unpacked Size

119 kB

Total Files

93

Last publish

Collaborators

  • hg8496