jwoglom / tconnectsync

Syncs insulin pump data from Tandem t:connect to Nightscout for the t:slim X2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sleep pump events duplicated in Nightscout

jwoglom opened this issue · comments

A single sleep event is separated and not merged.

/api/v1/treatments?find[enteredBy]=Pump%20(tconnectsync)&find[created_at][$gte]=2022-07-18%2010:00&find[created_at][$lte]=2022-07-19%2012:00&find[eventType]=Sleep

[
  {
    "_id": "62d793ac89093289ef6df149",
    "eventType": "Sleep",
    "reason": "Sleep",
    "notes": "Sleep",
    "duration": 8.15,
    "created_at": "2022-07-19 09:53:19-04:00",
    "enteredBy": "Pump (tconnectsync)",
    "carbs": null,
    "insulin": null
  },
  {
    "_id": "62d793ac89093289ef6df148",
    "eventType": "Sleep",
    "reason": "Sleep",
    "notes": "Sleep",
    "duration": 85.01666666666667,
    "created_at": "2022-07-19 07:53:19-04:00",
    "enteredBy": "Pump (tconnectsync)",
    "carbs": null,
    "insulin": null
  },
  {
    "_id": "62d793ac89093289ef6df147",
    "eventType": "Sleep",
    "reason": "Sleep",
    "notes": "Sleep",
    "duration": 25,
    "created_at": "2022-07-19 07:08:20-04:00",
    "enteredBy": "Pump (tconnectsync)",
    "carbs": null,
    "insulin": null
  },
  {
    "_id": "62d793ac89093289ef6df146",
    "eventType": "Sleep",
    "reason": "Sleep",
    "notes": "Sleep",
    "duration": 130,
    "created_at": "2022-07-19 04:18:20-04:00",
    "enteredBy": "Pump (tconnectsync)",
    "carbs": null,
    "insulin": null
  },
  {
    "_id": "62d793ac89093289ef6df145",
    "eventType": "Sleep",
    "reason": "Sleep",
    "notes": "Sleep",
    "duration": 48.5,
    "created_at": "2022-07-19 02:59:50-04:00",
    "enteredBy": "Pump (tconnectsync)",
    "carbs": null,
    "insulin": null
  },
  {
    "_id": "62d793ac89093289ef6df144",
    "eventType": "Sleep",
    "reason": "Sleep",
    "notes": "Sleep",
    "duration": 171.56666666666666,
    "created_at": "2022-07-19 00:00:28-04:00",
    "enteredBy": "Pump (tconnectsync)",
    "carbs": null,
    "insulin": null
  }
]

was this fixed by #92?

Most likely yes! But I haven't done any deep analysis.