Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/trickfilm400/solarlog-api

Nodejs-Api for solar-log devices to fetch inverter values and more
https://github.com/trickfilm400/solarlog-api

node nodejs nodejs-api nodejs-modules npm npm-api npm-package solar solar-energy solar-log solar-logger solar-system solarlog-gmbh solarlog500

Last synced: about 1 month ago
JSON representation

Nodejs-Api for solar-log devices to fetch inverter values and more

Awesome Lists containing this project

README

        

# solarlog-api

This NPM package provides a full nodejs-api for the Solar-Log device to fetch data of the solar-log device.

Tested with SolarLog 500 device.

Implements one part of the API which is documented here: https://github.com/iobroker-community-adapters/ioBroker.solarlog/blob/master/docs/solarlog_dataobjects.md (or: https://github.com/iobroker-community-adapters/ioBroker.solarlog/blob/9e92005e51ca10e3692319545688805ecb1396ec/docs/solarlog_dataobjects.md)

If you need more requests implemented, just create an issue.

## Usage

- Install NPM package from GitHub or NPM.
- Function return a Promise

## Example

```typescript
import SolarLogAPI from "@trickfilm400/solar-log";

const client = new SolarLogAPI(" {
console.log(res);
/*
* {
status: { '0': 'MPP', '1': 'MPP', '2': 'MPP' },
production: { '0': '566', '1': '588', '2': '846' }
}
*
*
*/
}).catch(console.error);
```

© 2022-2024 Trickfilm400