跳到正文
TakoAPI
返回技能列表

solax-cloud-api

由 allmightysauron 提供

Coding Agents & IDEs
676下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

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

描述

该技能的功能

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.

何时使用

  • 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

示例工作流

输入

User asks: fetch current solar output from my inverter

智能体
  1. 1

    Reads SOLAX_TOKENID and SOLAX_SN from environment variables

  2. 2

    Calls the Solax Cloud API via solax-cloud-api's getAPIData()

  3. 3

    Converts the raw response to a SolaxSummary object via toSummary()

  4. 4

    Prints the typed JSON result to stdout

输出

A JSON object containing current power generation, battery status, grid feed-in, and other inverter metrics

前置要求

  • Solax Cloud account
  • Solax Cloud API token ID (generated in the Solax Cloud portal)
  • Inverter serial number (found on the inverter or in the Solax Cloud app)

安装

clawhub install allmightysauron/solax-cloud-api

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接