omp-stats-zh-plugin1.1.2
Chinese-localized Oh My Pi statistics dashboard with /stats-zh
Built for omp
The author tagged this package oh-my-pi.
Reports 0
No reports yet.
Readme
omp-stats-zh-plugin
Oh My Pi Stats 中文本地化插件,提供 /stats-zh 指令和仅监听本机的中文统计面板。
功能
- 注册
/stats-zh指令 - 默认打开
http://localhost:3947/ - 汉化概览、请求、错误、模型、提供商、工具、费用、行为、项目和收益页面
- 动态翻译更新时间、相对时间、状态和表格字段
- 优先复用已经运行的
http://localhost:3847/ - 3847 未运行时自动启动随插件安装的 Stats 后端
- 所有服务仅绑定
127.0.0.1
要求
- Oh My Pi 18.0.4 或更高版本
- Bun 1.3.14 或更高版本
从 npm 安装
使用 npm 安装:
omp plugin install omp-stats-zh-plugin
从压缩包安装
OMP 会把本地路径作为目录插件链接,因此先解压 npm 压缩包:
mkdir omp-stats-zh
tar -xzf omp-stats-zh-plugin-1.1.2.tgz -C omp-stats-zh
cd omp-stats-zh/package
bun install --production
omp plugin link .
安装后重新启动 OMP,然后执行:
/stats-zh
本地开发或目录安装
cd /path/to/omp-stats-zh-plugin
bun install
omp plugin link .
自定义端口
默认端口是 3947。启动 OMP 前可通过环境变量覆盖:
OMP_STATS_ZH_PORT=4947 omp
卸载
omp plugin uninstall omp-stats-zh-plugin
隐私
插件只读取 OMP Stats 已有的本地统计数据,不向外部服务上传会话或统计信息。
许可证
MIT