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

[minimed carelink] Nightscout-connect adds 0, when no up-to-date SGV data is available #21

Open
Trenar opened this issue Aug 24, 2023 · 0 comments

Comments

@Trenar
Copy link

Trenar commented Aug 24, 2023

Hi all,
I just recently started using the nightscout-connect plugin, as I used xDrip as an uploader to nightscout before.

Today, I changed my sensor for the first time since starting to use nightscout-connect and I recognized, that the plugin adds data points to the database every five minutes with an SGV=0. I think that should not be.

In the following example, I fetched the recent 12 values by
curl https://XXXXXXXXXX.my.nightscoutpro.com/api/v1/entries/sgv.json?count=12&token=XXXXXXXXXX

[{"_id":"64e7663c84a84c2674e17656","lastSGTrend":"NONE","type":"sgv","sgv":XXXXXX,"date":1692886500000,"dateString":"2023-08-24T14:15:00.000Z","device":"go-away-please","trend":XXXXX,"direction":"Flat","utcOffset":0,"sysTime":"2023-08-24T14:15:00.000Z","mills":1692886500000},
{"_id":"64e7663c84a84c2674e1764d","type":"sgv","sgv":0,"date":1692886200000,"dateString":"2023-08-24T14:10:00.000Z","device":"go-away-please","utcOffset":0,"sysTime":"2023-08-24T14:10:00.000Z","mills":1692886200000},
{"_id":"64e7650884a84c2674daa2d0","type":"sgv","sgv":0,"date":1692885900000,"dateString":"2023-08-24T14:05:00.000Z","device":"go-away-please","utcOffset":0,"sysTime":"2023-08-24T14:05:00.000Z","mills":1692885900000},
{"_id":"64e763dd84a84c2674d35c6e","type":"sgv","sgv":0,"date":1692885600000,"dateString":"2023-08-24T14:00:00.000Z","device":"go-away-please","utcOffset":0,"sysTime":"2023-08-24T14:00:00.000Z","mills":1692885600000},
{"_id":"64e762b484a84c2674cc1b9a","type":"sgv","sgv":0,"date":1692885300000,"dateString":"2023-08-24T13:55:00.000Z","device":"go-away-please","utcOffset":0,"sysTime":"2023-08-24T13:55:00.000Z","mills":1692885300000},
{"_id":"64e7618584a84c2674c4815f","type":"sgv","sgv":0,"date":1692885000000,"dateString":"2023-08-24T13:50:00.000Z","device":"go-away-please","utcOffset":0,"sysTime":"2023-08-24T13:50:00.000Z","mills":1692885000000},
{"_id":"64e7605184a84c2674bd5070","type":"sgv","sgv":0,"date":1692884700000,"dateString":"2023-08-24T13:45:00.000Z","device":"go-away-please","utcOffset":0,"sysTime":"2023-08-24T13:45:00.000Z","mills":1692884700000},
{"_id":"64e75f2784a84c2674b58cc3","type":"sgv","sgv":0,"date":1692884400000,"dateString":"2023-08-24T13:40:00.000Z","device":"go-away-please","utcOffset":0,"sysTime":"2023-08-24T13:40:00.000Z","mills":1692884400000},
{"_id":"64e75dfe84a84c2674ade186","type":"sgv","sgv":0,"date":1692884100000,"dateString":"2023-08-24T13:35:00.000Z","device":"go-away-please","utcOffset":0,"sysTime":"2023-08-24T13:35:00.000Z","mills":1692884100000},
{"_id":"64e75cd384a84c2674a61050","type":"sgv","sgv":0,"date":1692883800000,"dateString":"2023-08-24T13:30:00.000Z","device":"go-away-please","utcOffset":0,"sysTime":"2023-08-24T13:30:00.000Z","mills":1692883800000},
{"_id":"64e75ba684a84c26749e9352","type":"sgv","sgv":0,"date":1692883500000,"dateString":"2023-08-24T13:25:00.000Z","device":"go-away-please","utcOffset":0,"sysTime":"2023-08-24T13:25:00.000Z","mills":1692883500000},
{"_id":"64e75a7284a84c2674968a99","type":"sgv","sgv":0,"date":1692883200000,"dateString":"2023-08-24T13:20:00.000Z","device":"go-away-please","utcOffset":0,"sysTime":"2023-08-24T13:20:00.000Z","mills":1692883200000}]

I'd rather expect the downloader to recognize, that there's no new data available and leave the DB untouched. This adding of zeros might lead to unexpected behavior of other software, that fetches nightscout data through the API (like my Garmin watchface).

Thanks for your time.
Trenar

@Trenar Trenar changed the title [minimed carelink] Nightscout-connect adds 0, when no up-to-date data is available [minimed carelink] Nightscout-connect adds 0, when no up-to-date SGV data is available Aug 24, 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

1 participant