No need to keep display the git diff
authorDan White <dan@whiteaudio.com>
Thu, 5 Jan 2023 17:29:44 +0000 (11:29 -0600)
committerDan White <dan@whiteaudio.com>
Thu, 5 Jan 2023 17:29:44 +0000 (11:29 -0600)
do-updates.sh

index 7220295f51badffabb2ceade4ae7c5827949183e..79d4f87e3717e1306f213ca9660b53dc2f751482 100755 (executable)
@@ -15,6 +15,7 @@ echo "*** Fetching database items"
 
 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
@@ -22,12 +23,12 @@ echo "*** Getting observations"
 #../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'