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. 4
      forecast.sh
  2. 4
      weather.sh

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

@ -122,7 +122,9 @@ while true; do
fi
echo $data > $dataPath
else
echo "Cache age: $(($(date +%s)-$lastfileupdate)) seconds."
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')

Loading…
Cancel
Save