GivEnergy is a British battery storage manufacturer, that mainly does things for Solar PV installations. They have an API into their battery storage system, so I've been implementing a node.js client to access it.
This is not yet a complete implementation of their entire API, and is just a work in progress.
The API documentation is at GivEnergy's knowledge base website.
let client = new GivEnergy({
username: 'a username',
password: 'a password'
});await client.authenticate()if ( client.authenticated ) console.log("client is authenticated");console.log( client.inverters );let detail = await client.inverters[0].detaillet current = await client.inverters[0].current;let plants = await client.plants;
let plant = plants[0];let plants = await client.plants;
await plants[0].info;let plants = await client.plants;
await plants[0].summarylet plants = await client.plants;
await plants[0].current;let plants = await client.plants;
await plants[0].devices;