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
In ns-upload-glucose, fix 'type' for sgv entries, set device to show …
…it comes from cgm
  • Loading branch information
cjo20 committed Sep 26, 2015
commit 482e303b3c3bc097ef04eac05b39de532f1a1d38
3 changes: 2 additions & 1 deletion bin/ns-upload-glucose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ cat $HISTORY | \
json -e "this.medtronic = this._type;" | \
json -e "this.dateString = this.date + '$(date +%z)'" | \
json -e "this.date = new Date(this.dateString).getTime();" | \
json -e "this.type = 'medtronic'" \
json -e "this.type = (this.name == 'GlucoseSensorData') ? 'sgv' : 'pumpdata'" | \
json -e "this.device = 'openaps://medtronic/pump/cgm'" \
> $OUTPUT

# requires API_SECRET and NIGHTSCOUT_HOST to be set in calling environment (i.e. in crontab)
Expand Down