Changed time interval to 1 second from 5 minutes
This commit is contained in:
parent
69cce7be3e
commit
f0c90c831f
@ -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
|
||||
|
@ -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(
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user