-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Download treatments originated from xDrip as well #3357
Download treatments originated from xDrip as well #3357
Conversation
This may be considered a conflict as how the follower needs to be set. It's hardware data source must be set to Nightscout follower. But, in order for it to be able to upload treatments to Nightscout, Nightscout sync also needs to be enabled. One may wonder that the readings downloaded by the follower when then be uploaded again to Nightsocut. If you ask me the following question, I cannot answer and will need to investigate if needed: If this indeed is a concern, we will need to add a conditional to only upload treatments from a follower and not readings as well. |
I would suggest making it a preference switch for advanced option with defaulting to off so it can be merged for wider testing but I would think there could likely be a good reason for that duplicate checking being in there. |
That makes perfect sense. Thanks |
Tapping on download treatment takes you to a new submenu. There, you have the old download treatment checkbox. But, in addition to that, you will also see a new switch called skip items from xDrip. This new switch is enabled by default, which makes xDrip behave as it did before. If you disable this switch, xDrip will also download treatments that have been uploaded to Nightscout by another xDrip. I hope this is acceptable. TestsI have tested again two test phones acting as master and follower. Leaving the new switch enabled (default), xDrip behaves as before and does not download treatments from the other phone. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
Thanks |
We have two open issues related to the transfer of treatments to and from followers:
#735
#1196
This PR creates a workaround:
This PR will allow a follower to download treatments uploaded to Nightscout by the master.
It also allows the master to download treatments uploaded by the follower.
1- In order for the follower to be able to upload to Nightscout,
Settings
−>Cloud Upload
−>Nightscout Sync
−>Enabled
must be set.Also,
Settings
−>Cloud Upload
−>Nightscout Sync
−>Extra Options
−>Upload treatments
must be enabled.2- For the master to download treatments,
Settings
−>Cloud Upload
−>Nightscout Sync
−>Download treatments
must be enabled.Tests
I have done a test with two test phones set up as a master and a follower confirming that treatments can be uploaded from either phone and the other phone would download it as well after this PR.