Merge branch 'master' into 2-allow-decimal-values-for-the-fan-speed

This commit is contained in:
Alec Lombardo 2022-05-12 11:07:33 -04:00 committed by GitHub
commit 8548c9cf43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -38,4 +38,5 @@ services:
- IDRAC_USER=root # set to your IPMI username
- IDRAC_PW=calvin # set to your IPMI password
- FAN_SPEED=0x05 # set to the decimal or hexadecimal value you want to set the fans to (from 0 to 100%)
- MAXTEMP=32 # set the maximum temperature (in celcius) before dynamic fan control kicks back in, optional, defaults to 32
```

View File

@ -5,9 +5,9 @@ IPMIUSER=`cat /user.txt`
IPMIPW=`cat /pw.txt`
DECIMAL_FAN_SPEED=`cat /decimal_fan_speed.txt`
HEXADECIMAL_FAN_SPEED=`cat /hexadecimal_fan_speed.txt`
MAXTEMP=32
if [[ $IPMIHOST == "local" ]]
then
LOGIN_STRING='open'

View File

@ -3,6 +3,7 @@
echo $IDRAC_HOST >> /host.txt
echo $IDRAC_USER >> /user.txt
echo $IDRAC_PW >> /pw.txt
echo ${MAXTEMP:-32} >> /maxtemp.txt
if [[ $FAN_SPEED == 0x* ]]
then
@ -23,3 +24,4 @@ then
echo "PW: `cat /pw.txt`"
fi
echo "Fan speed objective: `cat /decimal_fan_speed.txt`%"
echo "Max temp: `cat /maxtemp.txt`"