Update powerwall.sh
This commit is contained in:
@@ -96,7 +96,9 @@ CHECKTEMPSENSOR(){
|
|||||||
temp_c=${2}
|
temp_c=${2}
|
||||||
temp_f=$(bc <<< "scale=2; ${temp_c}*1.8+32")
|
temp_f=$(bc <<< "scale=2; ${temp_c}*1.8+32")
|
||||||
temp_warn=$(bc <<< "(${3}*1.8+32) / 1")
|
temp_warn=$(bc <<< "(${3}*1.8+32) / 1")
|
||||||
|
temp_warn=`echo ${temp_warn} | awk '{print int($1+0.5)}'`
|
||||||
temp_crit=$(bc <<< "(${4}*1.8+32) / 1")
|
temp_crit=$(bc <<< "(${4}*1.8+32) / 1")
|
||||||
|
temp_crit=`echo ${temp_crit} | awk '{print int($1+0.5)}'`
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user