Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sleep pump events duplicated in Nightscout #41

Open
jwoglom opened this issue Jul 20, 2022 · 2 comments
Open

Sleep pump events duplicated in Nightscout #41

jwoglom opened this issue Jul 20, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@jwoglom
Copy link
Owner

jwoglom commented Jul 20, 2022

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 jwoglom added the bug Something isn't working label Jul 20, 2022
@MatthewMazaika
Copy link

was this fixed by #92?

@jwoglom
Copy link
Owner Author

jwoglom commented Jun 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants