solax-cloud-api

Coding Agents & IDEs
v1.0.0
Benign

Fetch inverter summary data from the Solax Cloud API using the npm package solax-cloud-api.

676 downloads676 installsby @allmightysauron

Setup & Installation

Install command

clawhub install allmightysauron/solax-cloud-api

If the CLI is not installed:

Install command

npx clawhub@latest install allmightysauron/solax-cloud-api

Or install with OpenClaw CLI:

Install command

openclaw skills install allmightysauron/solax-cloud-api

or paste the repo link into your assistant's chat

Install command

https://github.com/openclaw/skills/tree/main/skills/allmightysauron/solax-cloud-api

What This Skill Does

Fetches current energy summary data from a Solax solar inverter via the Solax Cloud API. Returns a typed JSON object (SolaxSummary) with inverter status and energy readings. Credentials are passed as environment variables or CLI arguments.

Wraps the Solax Cloud API response into a typed SolaxSummary object, avoiding manual HTTP calls and raw response parsing.

When to Use It

  • Pulling live solar generation data into a home energy dashboard
  • Automating daily energy production reports from a rooftop inverter
  • Monitoring battery charge levels without opening the Solax app
  • Triggering automations when solar output drops below a threshold
  • Logging inverter readings to a time-series database
View original SKILL.md file
# solax-summary-fetch

Fetch Solax inverter summary data as JSON.

## Setup (one-time)

This skill uses Node.js and the npm package `solax-cloud-api`.

Install dependencies inside the skill folder:

```bash
cd /home/openclaw/.openclaw/workspace/skills/solax-summary-fetch/scripts
npm install
```

(We use `npm install` instead of `npm ci` because this skill does not ship with a lockfile.)

## Inputs

You need:

- `tokenId` (Solax Cloud API token id)
- `sn` (inverter serial number)

### Recommended: environment variables

Set these in your runtime (preferred so you don’t leak secrets into shell history):

- `SOLAX_TOKENID`
- `SOLAX_SN`

**Do not** hardcode credentials into the skill files.

### Alternate: CLI arguments

Pass them explicitly as:

- `--tokenId <tokenId>`
- `--sn <serial>`

## Command

```bash
cd /home/openclaw/.openclaw/workspace/skills/solax-summary-fetch/scripts
node fetch_summary.mjs --tokenId "$SOLAX_TOKENID" --sn "$SOLAX_SN"
```

## Output

- Prints a single JSON object to stdout.
- The JSON conforms to the **SolaxSummary** interface exposed by `solax-cloud-api` (see `references/solax-summary.d.ts`).
- Under the hood (solax-cloud-api v0.2.0): fetches `getAPIData()` then converts via `SolaxCloudAPI.toSummary()`.

## Guardrails

- Never print or log the tokenId beyond confirming whether it is set (redact it).
- If the API call fails, return a structured error JSON with `ok:false` and a short `error` message.

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Pulling live solar generation data into a home energy dashboard

AGENT
  1. 1Pulling live solar generation data into a home energy dashboard
  2. 2Automating daily energy production reports from a rooftop inverter
  3. 3Monitoring battery charge levels without opening the Solax app
  4. 4Triggering automations when solar output drops below a threshold
  5. 5Logging inverter readings to a time-series database
OUTPUT
Fetch inverter summary data from the Solax Cloud API using the npm package solax-cloud-api.

Share this skill

Security Audits

VirusTotalBenign
OpenClawBenign
View full report

These signals reflect official OpenClaw status values. A Suspicious status means the skill should be used with extra caution.

Details

LanguageMarkdown
Last updatedMar 1, 2026