Update powerwall.sh

This commit is contained in:
2023-12-11 22:12:11 -06:00
parent f2a9447d77
commit 95d8709624

View File

@@ -2311,13 +2311,14 @@ fi
checktemp) CHECKTEMP ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10};;
checkpower) CHECKPOWER ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10};;
check)
case ${2} in
[ "${3}" == "" ] && checkrun="-help" || checkrun=${2}
case ${checkrun} in
power) CHECKPOWER ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10};;
temp) CHECKTEMP ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10};;
-h|-help)
echo -e "\nUsage: ${idsCL[Yellow]}[powerwall or pw] ${idsCL[LightYellow]}check ${idsCL[LightCyan]}{type} {flags} ${idsCL[Default]} {\n"
width=35
printf "%-${width}s- %s\n" " {type}" "{power / temp} To check either power or temperatures"
printf "%-${width}s- %s\n" " {type}" "{power or temp} To check either power or temperatures"
echo -e "\n ${idsCL[LightCyan]}power${idsCL[Default]} {flag} options"
printf "%-${width}s- %s\n" " -a|-avg {#days}" "Show average values for X number of days"
printf "%-${width}s- %s\n" " -m|-mainsite" "Narrow to Mainsite Equipment"