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

Plot glucometer readings #30

Open
sulkaharo opened this issue Aug 29, 2019 · 2 comments
Open

Plot glucometer readings #30

sulkaharo opened this issue Aug 29, 2019 · 2 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@sulkaharo
Copy link
Contributor

As per PR #29, the view could also plot glucometer readings from the /entries data

@mlukasek
Copy link
Owner

mlukasek commented Sep 7, 2019

Hi,
thank you very much for your help. I solved the part of the problem with entries that contained Unicode surrogate pair like \u0032, which is not supported by ArduinoJSON library, that I use. Additionally I merged your pull request. As I understand it, it returns only SGV entries. What is the difference between "/api/v1/entries.json?find[type][$eq]=sgv" and "/api/v1/entries/sgv.json"?
If I add “&count=20”, can I be sure that I will get 10 last SGV entries or shall I query the SGV and the MBG entries separately as there can be more such entries? How to query for it? Is anywhere detailed API description? I found this page https://github.com/nightscout/cgm-remote-monitor/wiki/API-v1.0.0-beta-Endpoints but it is not detailed.
And more troubles 😉 my daughter uses Spike and enters calibration manually and the entry is not MBG, but CAL type and there is no glycemia value {"_id":"5d7340ef156712edb4199285","scale":1,"dateString":"2019-09-07T05:32:31.000Z","device":"MIAOMIAO","date":1567834351782,"intercept":38605.643749999996,"slope":1000,"type":"cal","utcOffset":0,"sysTime":"2019-09-07T05:32:31.000Z"}. But the value has to be somewhere, as the Nightscout website is displaying it correct (see https://adadia.herokuapp.com at Sunday 7.9.2019 5:32 (7:32 CET+DST)). I like the idea to display crosses for calibration entries, but I will need a little bit of your help please. Thank you.
Best regards
Martin

@mlukasek mlukasek pinned this issue Sep 7, 2019
@mlukasek mlukasek self-assigned this Sep 7, 2019
@mlukasek mlukasek added the help wanted Extra attention is needed label Sep 7, 2019
@funkstille
Copy link

I do not know if this still is up to date...

Our calibration / glucometer readings can be found with https://cgmtest.herokuapp.com/api/v1/treatments.json
and eventType = BG Check

{"_id":"607eab9fe2e6db67ada50aff","created_at":"2021-04-20T10:19:02.000Z","enteredBy":"medtronic-600://XXXX-XXXXXXX","eventType":"BG Check","glucose":161,"glucoseType":"Finger","key600":"BGXXXXAXXX","pumpMAC600":"XXXXXXXXXXXXXX","units":"mg/dl","utcOffset":0,"carbs":null,"insulin":null},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants