Skip to content

TimPox/solis-cloud-api

 
 

Repository files navigation

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)

About

NodeJS implementation of the Solis Cloud API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 80.1%
  • JavaScript 19.9%