feat: add lightweight API and web console

This commit is contained in:
way
2026-09-27 10:21:12 +08:00
parent fd4e2bf0f4
commit f42ea9d4bd
9 changed files with 382 additions and 36 deletions
+9 -1
View File
@@ -1,5 +1,5 @@
# =============================================================================
# Pigway Pi Control v3.5.0 - 用户配置文件
# Pigway Pi Control v3.6.0 - 用户配置文件
# =============================================================================
#
# 正式安装后的配置路径:
@@ -25,6 +25,14 @@
# =============================================================================
[api]
# API 与 Web 使用同一监听地址和端口。0.0.0.0 允许局域网访问;
# 如只允许本机访问可改为 127.0.0.1。修改后重启 API 服务生效。
bind = 0.0.0.0
port = 6001
log_limit = 200
[timing]
# 传感器采样周期,单位:秒。
# CPU / 内存 / 温度 / 磁盘以及风扇控制按此周期更新。