@hg8496/gridvis-client
v1.3.7
Published
A library to access all GridVis data
Downloads
17
Maintainers
Readme
gridvis-client
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