From b4230ac97a13bb9499441aafa014fe489c76898d Mon Sep 17 00:00:00 2001 From: lkddi Date: Wed, 6 May 2026 11:06:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5Python=E7=9B=B4=E8=B7=91?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 372e88b..3cd0068 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,13 @@ docker run -d --name dell-fans-controller \ -e USERNAME=root \ -e PASSWORD=your_idrac_password \ -e FAN_SPEED_STEPS=50:20,55:25,60:30,65:40 \ + -e CONTROL_INTERVAL_SECONDS=120 \ + -e ERROR_INTERVAL_SECONDS=120 \ + -e IPMI_FAILURE_BACKOFF_SECONDS=300 \ + -e IPMI_RETRY_COUNT=5 \ + -e IPMI_RETRY_DELAY_SECONDS=20 \ + -e IPMI_TIMEOUT_SECONDS=60 \ + -e USE_RAW_FAN_DUTY=false \ lkddi/dell-fans-controller:latest ``` @@ -88,6 +95,10 @@ Start the service / 启动服务: docker compose up -d ``` +Docker Compose reads all options from `.env`, including fan policy and IPMI retry settings. + +Docker Compose 会从 `.env` 读取全部配置,包括温控档位和 IPMI 重试参数。 + ### Run with Python / 直接使用 Python 运行 Install dependencies / 安装依赖: @@ -108,6 +119,13 @@ export HOST=192.168.1.100 export USERNAME=root export PASSWORD=your_idrac_password export FAN_SPEED_STEPS=50:20,55:25,60:30,65:40 +export CONTROL_INTERVAL_SECONDS=120 +export ERROR_INTERVAL_SECONDS=120 +export IPMI_FAILURE_BACKOFF_SECONDS=300 +export IPMI_RETRY_COUNT=5 +export IPMI_RETRY_DELAY_SECONDS=20 +export IPMI_TIMEOUT_SECONDS=60 +export USE_RAW_FAN_DUTY=false python3 start.py ```