šŸŽ Get the FREE AI Skills Starter Guide — Subscribe →
BytesAgainBytesAgain
šŸ¦€ ClawHub

x2c-real-dashboard

by @luoyalab

Query the X2C personal dashboard to get real-time KPI data, earnings trends, platform views, recent transactions, and earning projects. Use this skill whenev...

Versionv1.0.0
Downloads242
TERMINAL
clawhub install x2c-real-dashboard

šŸ“– About This Skill


name: x2c-real-dashboard description: Query the X2C personal dashboard to get real-time KPI data, earnings trends, platform views, recent transactions, and earning projects. Use this skill whenever the user asks about their X2C income, revenue, ROI, mining status, today's/yesterday's/monthly earnings, platform performance, recent activity, or project list. metadata: {"openclaw":{"emoji":"šŸ“Š","requires":{"env":["X2C_API_KEY"]},"primaryEnv":"X2C_API_KEY"}}

x2c-real-dashboard

Real-time X2C personal dashboard data via Open API.

All scripts are in {baseDir}/scripts/. They read X2C_API_KEY from the environment.


Actions & Scripts

ę€»č§ˆ KPI — overview

Use when the user asks: "ä»Šå¤©čµšäŗ†å¤šå°‘", "ę”¶ē›Šę¦‚å†µ", "ROI", "ęŒ–ēŸæēŠ¶ę€", "锹目总数", "ę’­ę”¾é‡"

bash {baseDir}/scripts/overview.sh

Returns: today/yesterday/monthly/historical revenue (USD + X2C), ROI, mining status, project counts, total views, X2C price.


ę”¶ē›Šč¶‹åŠæ — trend

Use when the user asks: "ęœ€čæ‘ N å¤©č¶‹åŠæ", "ę”¶ē›Ščµ°åŠæ", "åŽ†å²ę”¶å…„å›¾"

bash {baseDir}/scripts/trend.sh [DAYS]

DAYS: 1–90, default 7

Returns: daily { date, x2c, usd } array sorted ascending.


å„å¹³å°ę’­ę”¾é‡ — platform-breakdown

Use when the user asks: "å“ŖäøŖå¹³å°č”ØēŽ°ęœ€å„½", "å„å¹³å°ę’­ę”¾é‡", "TikTok / YouTube ę•°ę®"

bash {baseDir}/scripts/platform-breakdown.sh

Returns: total views + per-platform breakdown sorted descending.


ęœ€čæ‘åŠØę€ — recent-activity

Use when the user asks: "ęœ€čæ‘ēš„äŗ¤ę˜“", "收兄记录", "ęŒ–ēŸæč®°å½•", "ęœ€čæ‘åŠØę€"

bash {baseDir}/scripts/recent-activity.sh [LIMIT]

LIMIT: 1–50, default 5

Returns: recent transactions with tx_type, amount, currency, title, transaction_at.

tx_type values: mining_income | x2c_release | commission | referral | royalty | production | production_refund


čµšé’±ä½œå“åˆ—č”Ø — earning-projects

Use when the user asks: "ęˆ‘ēš„ä½œå“", "å“ŖäøŖä½œå“čµšęœ€å¤š", "ä½œå“ę”¶ē›ŠęŽ’å", "é”¹ē›®åˆ—č”Ø"

bash {baseDir}/scripts/earning-projects.sh [PAGE] [PAGE_SIZE]

PAGE default 1, PAGE_SIZE default 10, max 50

Returns: paginated project list with today_usd, total_usd, total_views, trend7d, platform_views.


Formulas (for context)

today_usd      = today_x2c Ɨ x2c_price + today_commission
roi_percent    = historical_usd / net_expense_usd Ɨ 100
net_expense    = max(0, spending_credits - refund_credits) / 100
vs_yesterday % = (today - yesterday) / yesterday Ɨ 100

All date boundaries are UTC. Daily payouts run at ~00:10 UTC.

Error Handling

All scripts exit non-zero on failure and print {"success":false,"error":"..."}. Always check success: true before presenting results.