0.9.0 • Published 4 years ago

@svrooij/sunspec v0.9.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

SunSpec interface

Support me on Github npm github issues Run tests from package.json semantic-release

Sunspec is a specification to communicate with your solar power inverter. See specs.

You can use this library to read the data from your inverter supporting modbus tcp (like SolarEdge).

const SunspecReader = require('@svrooij/sunspec').SunspecReader;

const reader = new SunspecReader('192.168.x.x', 502);
reader.readInverterInfo() // Reads model info (only needed once)
  .then(() => {
    return reader.readData() // Read other data
  })
  .then(d => {
    console.log(d);
  })
  .catch(err => {
    console.warn(err);
  })

Tested on

ManufacturerModelTested onTested by
SolarEdgeSE36802020-05-30@svrooij

Send a PR, if you tested this on your inverter.

Developer stuff

This library is written in TypeScript. You'll need to compile it before you can run.

npm install
npm run compile