tconnectsync icon indicating copy to clipboard operation
tconnectsync copied to clipboard

Sleep pump events duplicated in Nightscout

Open jwoglom opened this issue 3 years ago • 2 comments
trafficstars

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
  }
]

jwoglom avatar Jul 20 '22 06:07 jwoglom

was this fixed by #92?

MatthewMazaika avatar Jun 18 '24 22:06 MatthewMazaika

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

jwoglom avatar Jun 19 '24 03:06 jwoglom