feat: expose existing Raspberry Pi metrics for Console history

This commit is contained in:
way
2026-10-11 20:57:42 +08:00
parent d206ae4390
commit 20c781c750
6 changed files with 50 additions and 7 deletions
+5 -1
View File
@@ -8,7 +8,7 @@
```sh
mkdir -p dist
python3 package.py plugin dist/pigway-agent-1.0.0.zip
python3 package.py plugin dist/pigway-agent-1.1.0.zip
```
在控制中心的机器管理页面安装 ZIP,再启用。开发时可用 `PIGWAY_ADAPTER_PATH=/absolute/path/pigway-console-adapter-raspberry-pi/plugin` 加载源码;Docker 推荐使用持久化数据卷中的安装包。
@@ -20,3 +20,7 @@ python3 package.py plugin dist/pigway-agent-1.0.0.zip
## Naming and compatibility
This project targets Raspberry Pi. Other Linux platforms are not covered by its support claim and may have separately maintained adapters. Repository naming does not change the existing `pigway-agent` adapter ID or `pigway-pi-control` service, configuration and API identifiers.
## v1.1.0 历史指标
将现有 Agent API 的内存/磁盘字节数、开机时长与链路速度补充到标准 metrics,Console v2.1.0 可直接统一记录历史。不需要更新或新增树莓派进程。现有设备端没有上传下载流量计数,因此本版没有实际流量曲线;链路速度仅代表协商速率。