Update powerwall.sh

This commit is contained in:
2022-09-11 16:24:14 -05:00
parent 09898f4af2
commit 669ae474eb

View File

@@ -95,7 +95,7 @@ CHECKTEMP_SERVICE(){
echo -e "($datetime) NORMAL TEMP: ${temp_f}°F\nPrevious Temp: ${last_temp}°F" | mail -s "${1} BACK TO NORMAL" $email_alert
[ $VERBOSE = true ] && echo "alert sent"
elif [ $last_temp -eq 0 ]; then
echo "NORMAL TEMP: ${temp_f}°F" | mail -s "${1} TEMP NORMAL" $email_alert;
echo -e "($datetime) Service Startup\n NORMAL TEMP: ${temp_f}°F" | mail -s "${1} TEMP NORMAL" $email_alert;
fi
last_temp=1
[ $VERBOSE = true ] && echo "($datetime) normal: ${temp_f}°F"
@@ -126,7 +126,7 @@ CHECKACV_SERVICE(){
else
[ $VERBOSE = true ] && echo "($datetime) normal voltage: ${INPUTACV}V"
if [ $voltstatus -eq 0 ]; then
echo -e "($datetime) Normal voltage detected\nVOLTAGE: ${INPUTACV}V" | mail -s "Power Nominal" $email_alert
echo -e "($datetime) Service Startup\nNormal voltage detected\nVOLTAGE: ${INPUTACV}V" | mail -s "Power Nominal" $email_alert
[ $VERBOSE = true ] && echo "alert sent"
fi
fi