Update powerwall.sh
This commit is contained in:
@@ -153,7 +153,7 @@ CHECKTEMPSENSOR(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ]; then
|
if [ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ]; then
|
||||||
[ "${PW_SENSOR_TYPE[${1}]}" != "cpu" ] && temp_f=$(bc <<< "scale=1; ${temp_c}*1.8+32") || temp_f=temp_f=$(bc <<< "scale=1; ${temp_c}*1")
|
[ "${PW_SENSOR_TYPE[${1}]}" != "cpu" ] && temp_f=$(bc <<< "scale=1; ${temp_c}*1.8+32") || temp_f=$(bc <<< "scale=1; ${temp_c}*1")
|
||||||
echo "HERE: '${temp_c}' -> '${temp_f}'"
|
echo "HERE: '${temp_c}' -> '${temp_f}'"
|
||||||
# echo -en ""
|
# echo -en ""
|
||||||
c=0; spct=''; spc1=`expr 6 - ${#temp_f}`; until [ ${c} = ${spc1} ]; do spct="${spct} "; c=`expr ${c} + 1`; done
|
c=0; spct=''; spc1=`expr 6 - ${#temp_f}`; until [ ${c} = ${spc1} ]; do spct="${spct} "; c=`expr ${c} + 1`; done
|
||||||
|
|||||||
Reference in New Issue
Block a user