Skip to content

givenergy-modbusGivEnergy Inverter Client

Native Node.js library for local Modbus TCP communication — no cloud required

Install

bash
npm install givenergy-modbus

Requires Node.js 20+. TypeScript types included.

Quick Example

ts
import { GivEnergyInverter } from 'givenergy-modbus';

const inverter = await GivEnergyInverter.connect({ host: '192.168.1.100' });

inverter.on('data', (snapshot) => {
  console.log(`Solar: ${snapshot.solarPower}W`);
  console.log(`Battery: ${snapshot.stateOfCharge}%`);
  console.log(`Grid: ${snapshot.gridPower}W`);
});