Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
only try ns-upload if NIGHTSCOUT_HOST exists
  • Loading branch information
scottleibrand committed Sep 21, 2015
commit a06aa40d421bcd23a1b570a558c7e0a0044de51c
6 changes: 3 additions & 3 deletions bin/loop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ querypump() {
}
# try to upload pumphistory data
upload() {
#findpumphistory && ~/bin/openaps-mongo.sh &
~/openaps-js/bin/ns-upload.sh
#ping -c 1 google.com > /dev/null && touch /tmp/openaps.online
if $NIGHTSCOUT_HOST; then
~/openaps-js/bin/ns-upload.sh
fi
}
# if we haven't uploaded successfully in 10m, use offline mode (if no temp running, set current basal as temp to show the loop is working)
suggest() {
Expand Down