Nonchalant Programming Master

    stecagridscrape

    1.2.5 • Public • Published

    Screen scraper for Stecagrid solar inverters with compatible firmwares. Uses the node.js built in http library.

    Uses async/await, so requires a newer version of Node.

    How to use:

    Initialize with the IP address of the inverter:

    const steca = require('stecagridscrape');
    var mySteca = new steca("192.168.1.146");

    Get the current effect (in watts):

    mySteca.getEffect()

    Get the production today (in watt hours):

    mySteca.getProductionToday()

    Get the production today by hour (in watt hours):

    mySteca.getProductionToday()

    Get the production this month (in watt hours):

    mySteca.getProductionThisMonth()

    Get the production this year (in watt hours):

    mySteca.getProductionThisYear()

    Get the total production of the inverter (in watt hours):

    mySteca.getProductionTotal()

    All functions return a promise that will resolve with the value in W or Wh.

    mySteca.getProductionTotal().then((data) => {
        console.log("Total Production", data)
    });

    Tested with the following Steca sw version set:

    • HMI BFAPI 2.5.4
    • HMI FBL 2.2.0
    • HMI APP 2.8.0
    • HMI PAR default 2.0.4
    • HMI OEM SG4200 1.0.4
    • PU BFAPI 2.5.4
    • PU FBL 1.1.1
    • PU APP 5.5.0
    • PU PAR 5.3.1
    • ENS1 BFAPI 2.5.4
    • ENS1 FBL 1.1.1
    • ENS1 APP 3.61.0
    • ENS1 PAR 22.0.0
    • ENS2 BFAPI 2.5.4
    • ENS2 FBL 1.1.1
    • ENS2 APP 3.61.0
    • ENS2 PAR 22.0.0

    Install

    npm i stecagridscrape

    DownloadsWeekly Downloads

    0

    Version

    1.2.5

    License

    MIT

    Unpacked Size

    59.3 kB

    Total Files

    7

    Last publish

    Collaborators

    • kvasbo