Update powerwall.sh
This commit is contained in:
@@ -554,6 +554,7 @@ CHECKPOWER(){
|
|||||||
[[ "${OUTPUTW}" == *"."* ]] && [[ "${OUTPUTW}" != *".0"* ]] && OUTPUTW=`printf "%'.2f\n" ${OUTPUTW}` || OUTPUTW=`printf "%'.0f\n" ${OUTPUTW}`
|
[[ "${OUTPUTW}" == *"."* ]] && [[ "${OUTPUTW}" != *".0"* ]] && OUTPUTW=`printf "%'.2f\n" ${OUTPUTW}` || OUTPUTW=`printf "%'.0f\n" ${OUTPUTW}`
|
||||||
BATTV=`echo ${INVSTATSINFO} | jq '.inputs .battV'`
|
BATTV=`echo ${INVSTATSINFO} | jq '.inputs .battV'`
|
||||||
BATTA=`echo ${INVSTATSINFO} | jq '.inputs .xfA'`
|
BATTA=`echo ${INVSTATSINFO} | jq '.inputs .xfA'`
|
||||||
|
BATTLIFE=`echo "scale=2; 5370/${BATTV}" | bc`
|
||||||
if (( $(bc <<<"${BATTV} > 54.8") )); then
|
if (( $(bc <<<"${BATTV} > 54.8") )); then
|
||||||
if (( $(bc <<<"${BATTV} > 58") )); then
|
if (( $(bc <<<"${BATTV} > 58") )); then
|
||||||
BATTA_disp="${idsCL[Green]}${BATTA}'amps - Bulk Charging"
|
BATTA_disp="${idsCL[Green]}${BATTA}'amps - Bulk Charging"
|
||||||
@@ -574,7 +575,7 @@ CHECKPOWER(){
|
|||||||
echo -e "${idsCL[White]}Inverter Output Amps ${idsCL[Default]}: ${idsCL[Green]}${OUTPUTA}'amps / ${OUTPUTA2}'amps"
|
echo -e "${idsCL[White]}Inverter Output Amps ${idsCL[Default]}: ${idsCL[Green]}${OUTPUTA}'amps / ${OUTPUTA2}'amps"
|
||||||
echo -e "${idsCL[White]}Inverter Output Watts ${idsCL[Default]}: ${idsCL[Green]}${OUTPUTW}'watts"
|
echo -e "${idsCL[White]}Inverter Output Watts ${idsCL[Default]}: ${idsCL[Green]}${OUTPUTW}'watts"
|
||||||
echo
|
echo
|
||||||
echo -e "${idsCL[White]}Battery Voltage ${idsCL[Default]}: ${idsCL[Green]}${BATTV}'volts${idsCL[Default]}"
|
echo -e "${idsCL[White]}Battery Voltage ${idsCL[Default]}: ${idsCL[Green]}${BATTV}'volts ~ ${BATTLIFE}%${idsCL[Default]}"
|
||||||
echo -e "${idsCL[White]}Battery Amps Chg/DChg ${idsCL[Default]}: ${BATTA_disp}${idsCL[Default]}"
|
echo -e "${idsCL[White]}Battery Amps Chg/DChg ${idsCL[Default]}: ${BATTA_disp}${idsCL[Default]}"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user