Update powerwall.sh

This commit is contained in:
2022-09-03 11:37:38 -05:00
parent 677a933b51
commit 34a86c5014

View File

@@ -22,8 +22,8 @@ CHECKTEMP(){
temp_f=`echo "scale=2; $temp_c*1.8 + 32" | bc`
#echo "$temp_c -> $temp_f"
temp_warn=${TEMP_THRESHOLDS[${1}]}
echo $temp_warn | cut -d',' -f 1
echo ${TEMP_THRESHOLDS[${1}]} | cut -d',' -f 1 | read temp_warn
echo ${TEMP_THRESHOLDS[${1}]} | cut -d',' -f 2 | read temp_crit
if [ $temp_f -ge ${TEMP_THRESHOLDS[${1}]['warn']} ] && [ $temp_f -lt ${TEMP_THRESHOLDS[${1}]['crit']} ]; then
echo "WARNING: $temp_f"