Update powerwall.sh

This commit is contained in:
2023-05-14 21:06:07 -05:00
parent 000cc40c97
commit 6b246adb2d

View File

@@ -50,11 +50,8 @@ CHECKTEMPSENSOR(){
elif [ "${SENSOR_TYPE[${1}]}" == "system" ]; then
temp_c=$(vcgencmd measure_temp)
echo "HERE: $temp_c"
temp_c=${test%\'*}
echo "HERE: $temp_c"
temp_c=${test#*=}
echo "HERE: $temp_c"
temp_c=${temp_c%\'*}; temp_c=${temp_c#*=}
fi
if [ "$temp_c" != "null" ] && [ "$temp_c" != "" ]; then