Commit 69477c9
committed
Deduplicate Dex Share readings before use
Multiple Dexcom uploaders (e.g. G7 iPhone app + Apple Watch) each write
readings to Dexcom's cloud, causing the Share API to return 2+ entries
per 5-minute slot. With the API's hard cap of 288 readings, duplicates
consume the budget and the returned data covers only ~15h instead of 24h.
Dedup Dex Share data with the same 30-second window used for Nightscout,
so both the NS-supplement path and the direct ProcessDexBGData path
receive clean, deduplicated readings.1 parent eeb9d6e commit 69477c9
1 file changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
36 | 49 | | |
37 | 50 | | |
38 | | - | |
| 51 | + | |
39 | 52 | | |
40 | | - | |
| 53 | + | |
41 | 54 | | |
42 | | - | |
| 55 | + | |
43 | 56 | | |
44 | 57 | | |
45 | 58 | | |
| |||
0 commit comments