Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mwittig/node-fronius-solar
Access PV live logs using the Fronius Solar API
https://github.com/mwittig/node-fronius-solar
fronius fronius-solar-api photovoltaic power-converters pv-systems
Last synced: 5 days ago
JSON representation
Access PV live logs using the Fronius Solar API
- Host: GitHub
- URL: https://github.com/mwittig/node-fronius-solar
- Owner: mwittig
- License: mit
- Created: 2015-05-06T17:22:54.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-04-16T03:34:17.000Z (over 1 year ago)
- Last Synced: 2024-10-28T17:13:39.965Z (23 days ago)
- Topics: fronius, fronius-solar-api, photovoltaic, power-converters, pv-systems
- Language: JavaScript
- Size: 33.2 KB
- Stars: 42
- Watchers: 9
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE
Awesome Lists containing this project
README
# node-fronius-solar
[![Greenkeeper badge](https://badges.greenkeeper.io/mwittig/node-fronius-solar.svg)](https://greenkeeper.io/) [![Build Status](https://travis-ci.org/mwittig/node-fronius-solar.svg?branch=master)](https://travis-ci.org/mwittig/node-fronius-solar)
Access PV live logs using the Fronius Solar API V0 and V1.
## Usage Example
var fronius = require('node-fronius-solar'),
util = require('util'),
options = {
host: 'localhost',
port: 8001,
deviceId: 1
version: 0
},
x = Date.now();
// This is the Solar API V0 call which should work with Fronius Datalogger Web v2.0.4.1 (and higher) and
// Fronius Data Manager v3.0.3-1 (and higher)
fronius.GetInverterRealtimeData(options).then(function (json) {
console.log(util.inspect(json, { depth: 4, colors : true }));
console.log(Date.now() - x, "milliseconds elapsed")
}).catch(function(e) {console.log(e)});
// This is the Solar API V1
options.version = 1;
fronius.GetInverterRealtimeData(options).then(function (json) {
console.log(util.inspect(json, { depth: 4, colors : true }));
console.log(Date.now() - x, "milliseconds elapsed")
}).catch(function(e) {console.log(e)});
// GetComponentsData is provided to use an undocumented API service of the Fronius Data Manager
// provided with the Symo inverters. See https://forum.fhem.de/index.php/topic,24614.msg214011.html#msg214011
// In contrast to the regular Solar API Calls which do not require authentication, you may need to provide
// username and password properties to the options dictionary (if authentication has been enabled
// for Fronius Data Manager.
fronius.GetComponentsData(options).then(function (json) {
console.log(util.inspect(json, { depth: 4, colors : true }));
console.log(Date.now() - x, "milliseconds elapsed")
}).catch(function(e) {console.log(e)});
// This is a Solar API V1 call which should work with Fronius Data Manager v3.4.2-1 (and higher)
fronius.GetPowerFlowRealtimeDataData(options).then(function (json) {
console.log(util.inspect(json, { depth: 4, colors : true }));
console.log(Date.now() - x, "milliseconds elapsed")
}).catch(function(e) {console.log(e)});## Release History
See [Release History](https://github.com/mwittig/node-fronius-solar/blob/master/HISTORY.md).
## License
Copyright (c) 2015-2019, Marcus Wittig and contributors. All rights reserved.
[MIT License](https://github.com/mwittig/node-fronius-solar/blob/master/LICENSE).