JSPM

@svrooij/sunspec

0.9.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q48011F
  • License MIT

Reading sunspec

Package Exports

  • @svrooij/sunspec

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@svrooij/sunspec) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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