Changed time interval to 1 second from 5 minutes

This commit is contained in:
YuruC3 2025-07-02 12:39:39 +02:00
parent 69cce7be3e
commit f0c90c831f
3 changed files with 6 additions and 5 deletions

View File

@ -3,12 +3,13 @@
services:
mdfanchanger:
container_name: MD_Fan_Changer
build: ./
image: dm1200fanchanger:V1
# build: ./
# image: dm1200fanchanger:V1
image: yuruc3/md1200_fan_controll:v1
environment:
- baud_rate: ${baud_rate:-38400}
- serial_adapter=${serial_adapter:-"/dev/ttyUSB0"}
- wait_time: ${wait_time:-300}
- wait_time: ${wait_time:-1}
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
restart: unless-stopped

View File

@ -17,7 +17,7 @@ SETFANPRCNT = "set_speed"
if os.environ["EPPYSLEEPY"]:
EPPYSLEEPY = int(os.environ["EPPYSLEEPY"])
else:
EPPYSLEEPY = 300 # 5 minutes
EPPYSLEEPY = 1 # 1 second
# init
MDserial = serial.Serial(

View File

@ -5,7 +5,7 @@ MD1200BAUD = 38400
SERIALADAPTER = "/dev/ttyUSB0"
GETTEMP = "_temp_rd"
SETFANPRCNT = "set_speed"
EPPYSLEEPY = 300 # 5 minutes
EPPYSLEEPY = 1 # 1 second
#EPPYSLEEPY = 150 # 2,5 minutes
# init