Update powerwall.sh
This commit is contained in:
@@ -394,13 +394,14 @@ DAILYTEMP(){
|
|||||||
temp_c=''
|
temp_c=''
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
c=0; spc=''; spc1=`expr ${cw} - ${#SENSOR}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||||
if [ "$temp_c" != "null" ] && [ "$temp_c" != "" ]; then
|
if [ "$temp_c" != "null" ] && [ "$temp_c" != "" ]; then
|
||||||
temp_f=`echo "scale=2; $temp_c*1.8 + 32" | bc`
|
temp_f=`echo "scale=2; $temp_c*1.8 + 32" | bc`
|
||||||
|
|
||||||
c=0; spc=''; spc1=`expr ${cw} - ${#SENSOR}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
|
||||||
echo -e "${SENSOR}${spc}${temp_f}'F / ${average1}'F / ${average7}'F"
|
echo -e "${SENSOR}${spc}${temp_f}'F / ${average1}'F / ${average7}'F"
|
||||||
|
|
||||||
|
else
|
||||||
|
echo -e "${SENSOR}${spc}No Data"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
[ "$temp_c" != "null" ] && [ "$temp_c" != "" ] && echo
|
[ "$temp_c" != "null" ] && [ "$temp_c" != "" ] && echo
|
||||||
|
|||||||
Reference in New Issue
Block a user