xdripswift
xdripswift copied to clipboard
Add sensor start date, transmitter ID and transmitter activation date to Dexcom SGV data
There is a patch available to let FreeAPS X automatically get and upload Sensor change events to NS based on the available info in the Dexcom data when connected to the standard G6 app. I propose to enambe the same in Xdrip4iOS by appending sensor start date, transmitter ID and transmitter activation date to Dexcom SGV data.
When using FreeAPS X for NS upload of BG data, this sets the time for the SAGE pill automatically, without entering sensor change / sensor start manually. This is a great little improvement, especially for caregivers of children (the author has a similar patch for CAGE when using Omnipod). The upload also contains the transmitter activation date, and the transmitter ID:
https://github.com/trixing/freeaps/commit/2c12c4324454a688f49371f8f776dd9af6f54583

The NS upload is here: https://github.com/trixing/freeaps/commit/918ea133871d95362e29aa1f4d3bfbb5d4258371

An example NS entry document
_id: "8RL*** 5560274" (edit: obscured ID)
glucose: 103
sgv:103
sessionStartDate: "2022-01-30T16:53:23.279Z"
date: 1644019070279
dateString: "2022-02-04T23:57:50.279Z"
type: "sgv"
direction: "Flat"
activationDate: "2021-12-02T15:26:36.279Z"
transmitterID: "8RL6KF"
utcOffset: 0
sysTime: "2022-02-04T23:57:50.279Z"
@trixing @paulplant
Yes @bjornoleh, will definitely look at this shortly!