Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
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
use stdout by default
  • Loading branch information
bewest committed Sep 27, 2015
commit 65d609ff0a7cc2ee8c00d8c634544faf335ad4cc
2 changes: 1 addition & 1 deletion bin/mm-format-ns-glucose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# Written for decocare v0.0.17. Will need updating the the decocare json format changes.
HISTORY=${1-glucosehistory.json}
OUTPUT=${2-glucosehistory.ns.json}
OUTPUT=${2-/dev/fd/1}
#TZ=${3-$(date +%z)}

cat $HISTORY | \
Expand Down
2 changes: 1 addition & 1 deletion bin/mm-format-ns-pump-history.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Maintainer: Scott Leibrand

HISTORY=${1-pumphistory.json}
OUTPUT=${2-pumphistory.ns.json}
OUTPUT=${2-/dev/fd/1}
#TZ=${3-$(date +%z)}

cat $HISTORY | \
Expand Down
2 changes: 2 additions & 0 deletions bin/ns-upload-entries.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

# Author: Ben West
# Maintainer: @cjo20, @scottleibrand

ENTRIES=${1-entries.json}
NIGHTSCOUT_HOST=${NIGHTSCOUT_HOST-localhost:1337}
Expand All @@ -15,3 +16,4 @@ curl -s -X POST --data-binary @$ENTRIES \
-H "content-type: application/json" \
$NIGHTSCOUT_HOST/api/v1/entries.json
) && ( test -n "$OUTPUT" && touch $OUTPUT ; logger "Uploaded $ENTRIES to $NIGHTSCOUT_HOST" ) || logger "Unable to upload to $NIGHTSCOUT_HOST"