-
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
xDrip can show an overlap when switching hardware data source #3398
Comments
In my case, I did wait that the G6 sensor was fully stopped (= the command processed by the transmitter) before I changed the Transmitter ID to the one of the G7. |
Starting with the xDrip Nightly release of July 17, 2024, xDrip will only backfill (G6 or G7) starting from the last existing reading. As a result, if you have a gap followed by some readings, the backfill will not fill the gap. It is best to avoid practices that could cause such gaps. For example, if you want to perform a test, use a test phone instead of using your main xDrip installation on your active main phone. |
@Der-Schubi I can still cause this to fail. That's why I reopened it. I think I need to exclude backfills that precede the start time of the current internal session. That combined with the internal session start time being limited to last reading should be a solid fix. In the meantime, to avoid an overlap, you can stop your sensors from expiring. To do that, let's say you know your sensor will expire at 2 pm. At 1:55 or before, stop collection in xDrip. Then, peel off the sensor and move it away. Then, switch to your new sensor. This will avoid a backfill overlap until we fix the issue. |
Thats why I suggested to stop the internal session before starting a new one. I think this would take care of a few tripping points. |
And what do we do if you decide to switch temporarily from one sensor to another and then come back? |
I have been able to repeatedly cause this as explained here.
1- Set xDrip to collect from a G6 in a simulator.
2- Change the hardware data source to Nightscout follower from a different source.
The overlap occurs when switching from a G6 collector to Nightscout follower. It does not when switching from Nightscout follower to G6 collector.
I think xDrip should only backfill for a time period that has no readings.
I'm not sure. But, I suspect that xDrip will avoid backfilling if there is existing data for the exact time stamps. But, I believe it should avoid it even if the timestamps are different as long as there are readings in the same time period.
The text was updated successfully, but these errors were encountered: