Install
openclaw skills install solax-cloud-apiFetch inverter summary data from the Solax Cloud API using the npm package solax-cloud-api. Use when the user provides (or has configured) a Solax tokenId and inverter serial number (sn) and wants current/summary energy data returned as JSON (typed as SolaxSummary) for dashboards/automation.
openclaw skills install solax-cloud-apiFetch Solax inverter summary data as JSON.
This skill uses Node.js and the npm package solax-cloud-api.
Install dependencies inside the skill folder:
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.)
You need:
tokenId (Solax Cloud API token id)sn (inverter serial number)Set these in your runtime (preferred so you don’t leak secrets into shell history):
SOLAX_TOKENIDSOLAX_SNDo not hardcode credentials into the skill files.
Pass them explicitly as:
--tokenId <tokenId>--sn <serial>cd /home/openclaw/.openclaw/workspace/skills/solax-summary-fetch/scripts
node fetch_summary.mjs --tokenId "$SOLAX_TOKENID" --sn "$SOLAX_SN"
solax-cloud-api (see references/solax-summary.d.ts).getAPIData() then converts via SolaxCloudAPI.toSummary().ok:false and a short error message.