Update powerwall.sh

This commit is contained in:
2023-11-07 09:44:17 -06:00
parent 97d666a303
commit 3109ce9eae

View File

@@ -16,18 +16,15 @@ VERBOSE=false
CHECKTEMP(){
echo "${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10}"
start=`date +%s`
cw=25;
while [ $# -gt 0 ]; do
echo "$1 = $2"
case "$1" in
-avg) avgdays=${2};;
-search) search=${2};;
esac
shift 1
done
echo "$avgdays - $search"
echo
if [ "${avgdays}" != "" ]; then
[ ${avgdays} -lt 10 ] && avgdays_disp=" ${avgdays}" || avgdays_disp=${avgdays}