ikuai-report

从 iKuai 路由器的 ikuai-cli JSON 数据生成可视化 HTML 流量报表(5 标签页、Chart.js 动画图表)。触发词:生成/创建/构建 iKuai HTML 报表、爱快流量报表、ikuai report、ikuai-traffic-report

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "ikuai-report" with this command: npx skills add veelove/ikuai-report

iKuai 流量报表

生成可视化 HTML 流量报表,纯静态、无外部依赖,直接用浏览器打开。

输出路径: /tmp/ikuai-report.html

快速使用

python3 {{SKILL_DIR}}/scripts/generate_report.py
open /tmp/ikuai-report.html

首次使用:配置 ikuai-cli Auth

每个用户的路由器 IP/Token 不同,启动脚本会自动检测,若未配置会报错并提示:

# 1. 设置路由器地址
ikuai-cli auth set-url http://<路由器IP>
# 例如: ikuai-cli auth set-url http://10.10.10.253

# 2. 设置认证 Token(在路由器 Web UI → 系统状态 → API Token 获取)
ikuai-cli auth set-token <你的token>

# 3. 验证配置
ikuai-cli auth status

提示:脚本会自动搜索 PATH 中的 ikuai-cli,找不到时回退到 ~/.local/bin/ikuai-cli,无需硬编码路径。

报表结构(5 标签页)

标签内容
总览系统状态 + 资源 + 流量 + 网口 + 图表
网络配置WAN/LAN/DNS/NAT/端口转发/VLAN
流量分析协议柱图 + 应用 Top20 + 设备 Top20
安全状态ACL/L7/MAC + VPN + 在线设备
系统日志关键事件日志

数据收集命令

ikuai-cli monitor system --format json
ikuai-cli monitor traffic-summary --format json
ikuai-cli monitor app-traffic-summary --format json
ikuai-cli monitor protocols --format json
ikuai-cli monitor clients-online --format json
ikuai-cli monitor interfaces-physical --format json
ikuai-cli network wan --format json
ikuai-cli network lan list --format json
ikuai-cli network dns get --format json
ikuai-cli security acl list --format json
ikuai-cli qos ip list --format json
ikuai-cli network dnat list --format json
ikuai-cli log system list --format json --human-time

关键 API 字段(实际返回值,与文档常有不符)

命令字段说明
monitor systemsysinfo.stream.total_down/up今日总流量(Bytes)
sysinfo.online_user.count在线用户数
monitor traffic-summaryterminal[].ip_addr / mac / sum_total_down / sum_total设备流量
terminal_total_flow所有设备总流量
monitor app-traffic-summaryproto3_day[].appname应用名(⚠️ 不是 app_name
proto3_day[].total_down/up/total流量(⚠️ 不是 total_byte
monitor protocolsdata[].proto_name / total协议分布
monitor clients-onlinedata[].ip_addr / client_vendor / client_type在线设备
network wandata[].dhcp_ip_addr / internetWAN 状态
network lan listdata[].ip_mask / dhcp_server / vlanLAN 配置
network dnat listdata[].wan_port / lan_addr / lan_port端口转发规则

故障排查

"ikuai-cli 未完成认证配置"

ikuai-cli auth status        # 查看当前配置状态
ikuai-cli auth set-url <IP>  # 设置路由器地址
ikuai-cli auth set-token <token>  # 设置 Token

API 返回空数据({"data":[]}

  • 路由器不可达 — ping <路由器IP>
  • Token 过期 — 重新获取并 ikuai-cli auth set-token <新token>

图表无数据或 Tab 切换失效

  • node --check /tmp/ikuai-report.html 验证 JS 语法
  • 确认 ikuai-cli monitor app-traffic-summary 有返回数据

依赖

  • ikuai-cli v1.0+(自动检测 PATH)
  • Python 3.6+
  • 报表:纯静态 HTML + Chart.js(CDN)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Oura Cli

Retrieve health and biometric data from your Oura Ring via CLI commands for sleep, activity, readiness, heart rate, and more using specified dates.

Registry SourceRecently Updated
Coding

QR Code

Generate, decode, and beautify QR codes with customizable colors, logos, and formats. Works across all OpenClaw channels including WhatsApp.

Registry SourceRecently Updated
Coding

notion-clipper-skill

Clip web pages to Notion. Fetches any URL via Chrome CDP, converts HTML to Markdown, then to Notion blocks, and saves to user-specified Notion database or page. Use when user wants to save/clip a webpage to Notion, or mentions "clip to notion", "save page to notion", "网页剪藏到Notion".

Registry SourceRecently Updated
Coding

20206 02 10 Clawhub Summarize 1.0.0

Summarize URLs or files with the summarize CLI (web, PDFs, images, audio, YouTube).

Registry SourceRecently Updated