Update powerwall.sh
This commit is contained in:
@@ -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
|
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"
|
[ $VERBOSE = true ] && echo "alert sent"
|
||||||
elif [ $last_temp -eq 0 ]; then
|
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
|
fi
|
||||||
last_temp=1
|
last_temp=1
|
||||||
[ $VERBOSE = true ] && echo "($datetime) normal: ${temp_f}°F"
|
[ $VERBOSE = true ] && echo "($datetime) normal: ${temp_f}°F"
|
||||||
@@ -126,7 +126,7 @@ CHECKACV_SERVICE(){
|
|||||||
else
|
else
|
||||||
[ $VERBOSE = true ] && echo "($datetime) normal voltage: ${INPUTACV}V"
|
[ $VERBOSE = true ] && echo "($datetime) normal voltage: ${INPUTACV}V"
|
||||||
if [ $voltstatus -eq 0 ]; then
|
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"
|
[ $VERBOSE = true ] && echo "alert sent"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user