bugfix for conky output so "cache age" doesn't appear

pull/2/head v.1.0.3
Steven Saus 3 years ago
parent 214956c04a
commit e8b042e4db
  1. 2
      forecast.sh
  2. 2
      weather.sh

@ -144,8 +144,10 @@ while true; do
fi
echo $data > $dataPath
else
if [ "$Conky" != "True" ];then
echo "Cache age: $(($(date +%s)-$lastfileupdate)) seconds."
fi
fi
if [ $(($(date +%s)-$lastUpdateTime)) -ge 600 ]; then
lastUpdateTime=$(date +%s)

@ -122,8 +122,10 @@ while true; do
fi
echo $data > $dataPath
else
if [ "$Conky" != "True" ];then
echo "Cache age: $(($(date +%s)-$lastfileupdate)) seconds."
fi
fi
check=$(echo "$data" | grep -c -e '"cod":"40')
check2=$(echo "$data" | grep -c -e '"cod":"30')
sum=$(( $check + $check2 ))

Loading…
Cancel
Save