Access PV live logs from WebSolarLog in Node.
var wsl = require('node-websolarlog'),
options = {
host: 'diehl-inverter-demo.websolarlog.com',
name: 'Diehl'
};
// get full data
wsl.getProductionDeviceData(options).then(function (json) {
console.log(json);
}).catch(function(e) {console.log(e)});
// get production data for a single production device
wsl.getProductionDeviceData(options).then(function (json) {
console.log(json);
}).catch(function(e) {console.log(e)});
// get totals for all production devices
wsl.getProductionTotals(options).then(function (json) {
console.log(json);
}).catch(function(e) {console.log(e)});
See Release History.
Copyright (c) 2016-2018, Marcus Wittig and contributors. All rights reserved.