Compare commits

...

5 Commits

Author SHA1 Message Date
Alec Lombardo
8548c9cf43
Merge branch 'master' into 2-allow-decimal-values-for-the-fan-speed 2022-05-12 11:07:33 -04:00
Alec Lombardo
6ca78f0eee
Merge pull request #1 from sjdaws/override-maxtemp
Allow manual override of max temp via env var
2022-05-12 11:05:05 -04:00
Scott Dawson
0a045b67a5 Add max temp to start up script 2022-04-12 08:45:29 +10:00
Scott Dawson
f191669948
Update readme 2022-03-01 10:17:39 +11:00
Scott Dawson
f1002bc405
Allow manual override of max temp via env var 2022-03-01 10:08:45 +11:00
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`"