1.1.1 • Published 2 months ago

solis-cloud-api v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

Solis Cloud API in NodeJS

This is a NodeJS wrapper for the Solis Cloud API. It is a work in progress and is not yet ready for production use. The API is written in TypeScript and is fully typed.

Installation

npm i solis-cloud-api

Note: NodeJS 18 or higher is required as the project uses node's native fetch module

Usage

You'll need to get access to Solis Cloud API which is available through a service ticket with Solis. Read full instructions here.

Create a .env file in the root of your project and add the following:

BASEURL="https://www.soliscloud.com:13333"
SECRET="YOUR_SECRET"
KEY="YOUR_KEY"

Then your implementation may look something like this

import solisApi from "solis-cloud-api";

const api = solisApi(process.env.BASEURL, process.env.KEY, process.env.SECRET);
const stationList = await api.getUserStationList();

Completion status

The following APIs are available:

  • getUserStationList (Power Station List)
  • getStationDetail (Power Station Details)
  • getCollectorList (Datalogger List)
  • getCollectorDetail (Datalogger Details)
  • getInverterList (Inverter List)
  • getInverterDetail (Inverter Details)
  • getStationDay (Plant Daily Graph)
  • getStationMonth (Plant Monthly Graph)
  • getStationYear (Plant Yearly Graph)
1.1.1

2 months ago

1.1.0

6 months ago

1.0.1

6 months ago

1.0.0

7 months ago