Update powerwall.sh
This commit is contained in:
@@ -21,6 +21,10 @@ CHECKTEMP(){
|
||||
if [ "$temp_c" != "null" ] && [ "$temp_c" != "" ]; then
|
||||
temp_f=`echo "scale=2; $temp_c*1.8 + 32" | bc`
|
||||
#echo "$temp_c -> $temp_f"
|
||||
|
||||
temp_warn=${TEMP_THRESHOLDS[${1}]}
|
||||
echo temp_warn
|
||||
|
||||
if [ $temp_f -ge ${TEMP_THRESHOLDS[${1}]['warn']} ] && [ $temp_f -lt ${TEMP_THRESHOLDS[${1}]['crit']} ]; then
|
||||
echo "WARNING: $temp_f"
|
||||
elif [ $temp_f -ge ${TEMP_THRESHOLDS[${1}]['crit']} ]; then
|
||||
|
||||
Reference in New Issue
Block a user