@svrooij/sunspec
TypeScript icon, indicating that this package has built-in type declarations

0.9.0 • Public • Published

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

Manufacturer Model Tested on Tested by
SolarEdge SE3680 2020-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

Package Sidebar

Install

npm i @svrooij/sunspec

Weekly Downloads

0

Version

0.9.0

License

MIT

Unpacked Size

22 kB

Total Files

18

Last publish

Collaborators

  • svrooij