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

cli returns empty array for basal data #44

Closed
PorkShoulderHolder opened this issue Aug 2, 2022 · 2 comments
Closed

cli returns empty array for basal data #44

PorkShoulderHolder opened this issue Aug 2, 2022 · 2 comments

Comments

@PorkShoulderHolder
Copy link

Not sure if I am missing something, but the csvdata["basalData"] is always an empty array, even when the the BASAL feature is specified. What could be going on here? IOB and boluses are returned without a problem.

@jwoglom
Copy link
Owner

jwoglom commented Aug 2, 2022

You are correct -- the WS2 therapytimeline endpoint only contains pre-ControlIQ basal data. tconnectsync currently reads from this value regardless and merges it in for processing on the chance that you're inspecting a time interval which was before controliq was enabled on the pump. (I think it's based on whether your pump supports controliq in the firmware, rather than just toggling it on or off, but I haven't checked.)

Are you querying the ws2 endpoint manually or just looking into tconnectsync's code? The therapy_timeline endpoint should have the basal data you're looking for: https://github.com/jwoglom/tconnectsync/blob/master/tconnectsync/api/controliq.py#L106

@jwoglom
Copy link
Owner

jwoglom commented Jan 7, 2023

Closing this issue due to inactivity, and because tconnectsync seems to be operating as designed (per how the tconnect API functions). Please re-open or create a new issue if you're still experiencing issues.

@jwoglom jwoglom closed this as completed Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants