Update powerwall.sh
This commit is contained in:
1 parent
cdc1960198
commit
ce6144ec26
1 file changed
+1
@@ -153,6 +153,7 @@ CHECKTEMPSENSOR(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ]; then
|
if [ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ]; then
|
||||||
|
[ "${PW_SENSOR_TYPE[${1}]}" == "cpu" ] && echo "CPU-YES" || echo "CPU-NO"
|
||||||
[ "${PW_SENSOR_TYPE[${1}]}" == "cpu" ] && temp_f=$(bc <<< "scale=2; ${temp_c}*1") || temp_f=$(bc <<< "scale=1; ${temp_c}*1.8+32")
|
[ "${PW_SENSOR_TYPE[${1}]}" == "cpu" ] && temp_f=$(bc <<< "scale=2; ${temp_c}*1") || temp_f=$(bc <<< "scale=1; ${temp_c}*1.8+32")
|
||||||
echo "HERE: '${temp_c}' -> '${temp_f}'"
|
echo "HERE: '${temp_c}' -> '${temp_f}'"
|
||||||
# echo -en ""
|
# echo -en ""
|
||||||
|
|||||||
Reference in new issue
Block a user