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

NS downloads register as current #346

Open
LiroyvH opened this issue Oct 17, 2021 · 7 comments
Open

NS downloads register as current #346

LiroyvH opened this issue Oct 17, 2021 · 7 comments

Comments

@LiroyvH
Copy link

LiroyvH commented Oct 17, 2021

Hi,

When enabling "Download data" in the NS settings, xDrip appears to really start download everything; weeks and weeks worth of data before I switched it off again.

Its probably unnecessary to download that much data to begin with; for its purpose the last 24hrs would probably already be good enough, but the bigger problem is: this registers as current data, as if it's new data at the current timestamp. So by the time I switched it off, it registered and claims there's over 10KG of carbs on board, hehe.

-edit-
This also seems to cause all kinds of alarms to be triggered based on historic readings, such as the missed readings alarms. Needs sanitisation

@NSFriend
Copy link
Collaborator

NSFriend commented Oct 19, 2021

@LiroyvH Hello
Could you please provide your Base URL ?

@LiroyvH
Copy link
Author

LiroyvH commented Oct 19, 2021

@NSFriend my base URL to nightscout? I run nightscout on a server in my private LAN, it's inaccessible to the outside world.

@NSFriend
Copy link
Collaborator

@LiroyvH Ok
Then could you please post here response from /api/v1/treatments ?
Probably from the xCode console running our app.

@NSFriend
Copy link
Collaborator

NSFriend commented Oct 19, 2021

@LiroyvH Please wipe the app from your device and reinstall from latest commit adae8bf
here https://github.com/Faifly/xDrip/tree/develop

@LiroyvH
Copy link
Author

LiroyvH commented Oct 20, 2021

This problem appears to have been resolved by commit [adae8bf]. Thank you!

@LiroyvH LiroyvH closed this as completed Oct 20, 2021
@LiroyvH
Copy link
Author

LiroyvH commented Oct 20, 2021

Actually. It would appear it doesn't download any data anymore at all :P I've added treatments and carb intake in to nightscout, and the app doesn't seem to be downloading them (keeps saying 0U insulin and 0g carbs).

The connection to nightscout is fine and I can see in Xcode that it is actually downloading it from nightscout. It just doesn't process it.

@LiroyvH LiroyvH reopened this Oct 20, 2021
@NSFriend
Copy link
Collaborator

NSFriend commented Oct 20, 2021

@LiroyvH Have you added treatments and carb in to nightscout from our app? If not could you please provide response from GET /api/v1/treatments ? Probably from the xCode console running our app.
Seems our app could not properly decode your data.
Do you use follower mode in this case?

Probably we should leave treatments and readings fetching only for follower mode? How do you think?

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