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...
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.