Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
doc/api
example
src
test/response
.gitignore
.npmignore
.travis.yml
LICENSE-MIT
README.md
grunt.js
package.json

README.md

node-webbox Build Status

Implementation of the SMA Sunny Webbox RPC (1.3)

Documentation

see doc/api

Status

  • The most basic protocol stuff is implemented and the rest should just be a diligent but routine piece of work
  • Some "Process-Commands" are implemented (h-On, h-Total, E-Total)

Todo

see Trello Board

Getting Started

npm install node-webbox --save
var ip = '192.168.178.23';
var Webbox = require('node-webbox');

Webbox.http(ip, function (err, webbox) {
    var device = webbox.devices[0];

    webbox.getPlantOverview(function (err, data) {
        console.log(data);
    });

    webbox.getTotalOperatingTime(device, function (err, bla) {
        console.log(bla);
    });

    webbox.getTotalFeedTime(device, function (err, bla) {
        console.log(bla);
    });

    webbox.getTotalProduced(device, function (err, bla) {
        console.log(bla);
    });
});

// Importer Example
var importer = webbox.importer('192.168.178.23', 'installer', 'secret');

importer.on('row', function (data) {
    //{
    //    'utcTimestamp'
    //    'totalProduction', // kWh
    //    'totalOperationTime' // hours
    //    'totalFeedTime' // hours
    //    'currentProduction' // Watt
    //}
    console.log(data);
});

importer.on('end', function () {
    console.log('import finished');
});

importer.on('error', function () {
    console.log('oh oh');
});

importer.parseAllCsvFiles();

Release History

  • 2013-02-03   v0.5.1   Added CSV Import (per FTP)
  • 2013-01-12   v0.4.0   Initial release

How to contribute?

  • npm install -g grunt-cli
  • grunt (grunt.cmd on windows)
  • open a pull request and wait =)

Contributors

Sunny Webbox?

SMA Sunny Webbox

It´s a device from the company SMA for remote monitoring and maintenance of medium-sized PV plants with a RPC interface

License - "MIT License

Copyright (c) 2013 Markus Lanz (aka stahlstift)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Something went wrong with that request. Please try again.