echo "*** Fetching stations info"
../python-files/get-stations.py stations.json
+# and update the stations SQLite database for analysis
../python-files/update-stations stations.json stations.db
echo
#../python-files/get-observations.py --fetch observations.db
#../python-files/get-observations.py --fetch --retry-unknown observations.db
-# lag by 24h to let some updates settle down
-date_end="$(date -u --date='24 hours ago' '+%Y-%m-%dT%H:%M')"
+# lag by 48h to let some updates settle down
+date_end="$(date -u --date='48 hours ago' '+%Y-%m-%dT%H:%M')"
../python-files/get-observations.py --fetch --pages 100 --end="$date_end" observations.db
# what changed?
-git diff
+#git diff
git add db-*.json stations.json
git commit -m 'cron update info'