Fix bug that was preventing the cron job from sending the data files.
It turns out to be a line in utils.py which was for printing to screen. Now the error is handled.
Also, I added a 60-second delay in the cron job script so that the CSV/geoJSON get created right after 90% of the devices post data, instead of right before. So the data displayed on the web is only 2.5 to 7.5 minutes delayed, rather than 6.5 to 11.5 minutes delayed.
Fix bug that was preventing the
cron
job from sending the data files. It turns out to be a line inutils.py
which was for printing to screen. Now the error is handled.Also, I added a 60-second delay in the cron job script so that the CSV/geoJSON get created right after 90% of the devices post data, instead of right before. So the data displayed on the web is only 2.5 to 7.5 minutes delayed, rather than 6.5 to 11.5 minutes delayed.