Closed lostboy86 closed 10 months ago
I can check, but I do not loop, so I do not know, what these values are used for. Can you provide a complete list with their meanings? Do you know, which nightscout endpoint supports these values?
Support this values xdrip, androidaps, loop for ios (iAPS), many other cgm apps
IOB : insulin on board active COB : cho on board active
Il giorno dom 31 dic 2023 alle ore 15:24 pachi81 @.***> ha scritto:
I can check, but I do not loop, so I do not know, what these values are used. Can you provide a complete list with their meanings? Do you know, which nightscout endpoint supports these values?
— Reply to this email directly, view it on GitHub https://github.com/pachi81/GlucoDataHandler/issues/114#issuecomment-1872961334, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMW5QVEJKE7QKO5E4YMD3TYMFYSRAVCNFSM6AAAAABBIIMWVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZSHE3DCMZTGQ . You are receiving this because you authored the thread.Message ID: @.***>
Do you know which ns endpoint includes these data? What unit and value range is used for?
Umh what is ns endpoint?
Range are 0.00 - infinite
Il giorno lun 1 gen 2024 alle ore 11:07 pachi81 @.***> ha scritto:
Do you know which ns endpoint includes these data? What unit and value range is used for?
— Reply to this email directly, view it on GitHub https://github.com/pachi81/GlucoDataHandler/issues/114#issuecomment-1873257540, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMW5QXELI5Z7CAF5NXQCMDYMKDERAVCNFSM6AAAAABBIIMWVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZTGI2TONJUGA . You are receiving this because you authored the thread.Message ID: @.***>
@psonnera can explain well this parameters
@lostboy86 explain well is high expectation but you'll find some background here https://github.com/nightscout/cgm-remote-monitor?tab=readme-ov-file#iob-insulin-on-board but for more I need to seat in from of my computer (i.e. for an example query).
I have to check nightscout endpoints get the correct one, which offers these data. One question, can you test it, if I add it?
Another question, are both values need together or some people are using only iob or cob? Which is more important?
Yes i can test, i use AaPS also and ns 15.
Need toghether, iob it's the insuline Active on board , cob it's the cho on board Active.
Il lun 1 gen 2024, 22:05 pachi81 @.***> ha scritto:
I have to check nightscout endpoints get the correct one, which offers these data. One question, can you test it, if I add it?
Another question, are both values need together or some people are using only iob or cob? Which is more important?
— Reply to this email directly, view it on GitHub https://github.com/pachi81/GlucoDataHandler/issues/114#issuecomment-1873479907, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMW5QUILEPVYGYXFOROVSLYMMQJ5AVCNFSM6AAAAABBIIMWVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZTGQ3TSOJQG4 . You are receiving this because you were mentioned.Message ID: @.***>
Can you check the results of the nightscout API endpoints to check, which one contains the IOB and COB: [NS_URL]/api/v1/entries/current.json [NS_URL]/api/v1/entries/sgv.json?count=1 [NS_URL]/api/v1/treatments.json
-> [NS_URL]: your nightscout address, for example https://127.0.0.1 for localhost.
Also with web ns?
Il mar 2 gen 2024, 10:52 pachi81 @.***> ha scritto:
Can you check the results of the nightscout API endpoints to check, which one contains the IOB and COB: [NS_URL]/api/v1/entries/current.json [NS_URL]/api/v1/entries/sgv.json?count=1 [NS_URL]/api/v1/treatments.json
-> [NS_URL]: your nightscout address, for example https://127.0.0.1 for localhost.
— Reply to this email directly, view it on GitHub https://github.com/pachi81/GlucoDataHandler/issues/114#issuecomment-1873808449, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMW5QS7H3RP2W3VFPWKYBDYMPKF5AVCNFSM6AAAAABBIIMWVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZTHAYDQNBUHE . You are receiving this because you were mentioned.Message ID: @.***>
Yes, it should work with every ns instance.
i Think its in the treatment.
here's the link, check yourself, its open ns.
Il giorno mar 2 gen 2024 alle ore 11:25 pachi81 @.***> ha scritto:
Yes, it should work with every ns instance.
— Reply to this email directly, view it on GitHub https://github.com/pachi81/GlucoDataHandler/issues/114#issuecomment-1873844857, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMW5QUCD2QRWBA5ZONHODLYMPOCPAVCNFSM6AAAAABBIIMWVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZTHA2DIOBVG4 . You are receiving this because you were mentioned.Message ID: @.***>
Thank you! Great I can test it with your server. Just one more question. Are the IOB and COB time related? What do you expect to be visible on watch? Only the last value or also the timestamp?
Iob e cob decrease naturally, you want only display the values, because it's the insuline or the cho Active in this Moment.
For example, now i have 160 BG, 3,60U iob (insuline active on board on my body) and 55 grams COB (meal 1 hours ago, 90 grams cho).
2 hours After, for example , i Will have :
100bg (i Hope), 0 IOB (insuline For assorb meal ended) and 0 COB (meal absorption endend).
Just a hint :
Cob and iob can be negative.
For example : iob negative means you have low BG and the system suspend basal insuline (at now i have 1ui basal.hours, if i go down to 70bg, i have -1ui iob)
Il mar 2 gen 2024, 13:00 pachi81 @.***> ha scritto:
Thank you! Great I can test it with your server. Just one more question. Are the IOB and COB time related? What do you expect to be visible on watch? Only the last value or also the timestamp?
— Reply to this email directly, view it on GitHub https://github.com/pachi81/GlucoDataHandler/issues/114#issuecomment-1873939777, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMW5QRNES3PVJN37SZCINDYMPZFLAVCNFSM6AAAAABBIIMWVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZTHEZTSNZXG4 . You are receiving this because you were mentioned.Message ID: @.***>
I have checked your treatments.json and found different kind of eventType:
{
"basalIOB": 0.769,
"bolusIOB": 0.0,
"carbs": 90.0,
"carbsInsulin": 7.317073170731707,
"cob": 0.0,
"cobInsulin": 0.0,
"dateCreated": 1704192471335,
"glucoseDifference": -31.0,
"glucoseInsulin": -0.62,
"glucoseTrend": 0.0,
"glucoseValue": 69.0,
"ic": 12.3,
"id": 112,
"ids": {},
"isValid": true,
"isf": 50.0,
"note": "",
"otherCorrection": 0.0,
"percentageCorrection": 90,
"profileName": "Regolato 30/12/23 00:16",
"superbolusInsulin": 0.0,
"targetBGHigh": 100.0,
"targetBGLow": 100.0,
"timestamp": 1704192471302,
"totalInsulin": 6.7,
"trendInsulin": 0.0,
"utcOffset": 3600000,
"version": 0,
"wasBasalIOBUsed": true,
"wasBolusIOBUsed": true,
"wasCOBUsed": true,
"wasGlucoseUsed": true,
"wasSuperbolusUsed": false,
"wasTempTargetUsed": false,
"wasTrendUsed": false,
"wereCarbsUsed": false
}
cob seems to be 0.0 iob, which one? Is the format a common one, or does any pump has its own format? If I check for this eventtype, there are only some results per day: https://lost.soon.it/api/v1/treatments.json?find[eventType]=Bolus+Wizard&count=5 Is this correct?
Ok, now it is official: I hate the nightscout api docu!!! There is a better docu for the closed librelinkup and nightscout is an open source software!
There is only one(!!!!) github issue, which points to the correct url. The last iob you can find here: https://lost.soon.it/api/v2/properties/iob and the last cob here: https://lost.soon.it/api/v2/properties/cob
Jesus Christ, great result, i try to find myself but no success
Il mar 2 gen 2024, 13:56 pachi81 @.***> ha scritto:
Ok, now I make official: I hate the nightscout api docu!!! There is a better docu for the closed librelinkup and nightscout is a open source software!
There is only one(!!!!) github issue, which points to the correct url. The last iob you can find here: https://lost.soon.it/api/v2/properties/iob and the last cob here: https://lost.soon.it/api/v2/properties/cob
— Reply to this email directly, view it on GitHub https://github.com/pachi81/GlucoDataHandler/issues/114#issuecomment-1873994103, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMW5QTBUZY37RWYENU7NOTYMP7ZDAVCNFSM6AAAAABBIIMWVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZTHE4TIMJQGM . You are receiving this because you were mentioned.Message ID: @.***>
One more question. Are you also using xDrip+ for your values, IOB and COB?
Because xDrip+ offers the same endpoint for pebble as nightscout, which also supports IOB and COB:
NS: https://lost.soon.it/pebble
xDrip+: http://127.0.0.1:17580/pebble
So, if you have xDrip+, you can also use it "offline" for getting these values.
And I have to add some options to get the values from the different sources.
Nope not using xdrip.
Also, on my android radio not have xdrip, only Glucodatahandler widget, source nightscout .
Same for my follower phone
Il mar 2 gen 2024, 16:20 pachi81 @.***> ha scritto:
One more question. Are you also using xDrip+ for your values, IOB and COB? Because xDrip+ offers the same endpoint for pebble as nightscout, which also supports IOB and COB: NS: https://lost.soon.it/pebble xDrip+: http://127.0.0.1:17580/pebble
So, if you have xDrip+, you can also use it "offline" for getting these values.
And I have to add some options to get the values from the different sources.
— Reply to this email directly, view it on GitHub https://github.com/pachi81/GlucoDataHandler/issues/114#issuecomment-1874162653, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMW5QU4EQYPEKWXXBV3KNDYMQQUXAVCNFSM6AAAAABBIIMWVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZUGE3DENRVGM . You are receiving this because you were mentioned.Message ID: @.***>
@psonnera can support for xdrip
@pachi81 never tried to grab iob or cob from xDrip+, not sure they're provided either... https://github.com/NightscoutFoundation/xDrip/blob/master/Documentation/technical/Local_Web_Services.md
Also, maybe my answer above was wrong, iob and cob maybe are time-relate, because AAps send every 5 minutes, correct?
Il mar 2 gen 2024, 22:00 Patrick Sonnerat @.***> ha scritto:
@pachi81 https://github.com/pachi81 never tried to grab iob or cob from xDrip+, not sure they're provided either... https://github.com/NightscoutFoundation/xDrip/blob/master/Documentation/technical/Local_Web_Services.md
— Reply to this email directly, view it on GitHub https://github.com/pachi81/GlucoDataHandler/issues/114#issuecomment-1874555320, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMW5QXTMXAEMUM7L7APRF3YMRYPBAVCNFSM6AAAAABBIIMWVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZUGU2TKMZSGA . You are receiving this because you were mentioned.Message ID: @.***>
Good question... probably... I never tried the 1 minute BG. AAPS is still 5 minutes based AFAIK. Does it upload BG from Juggluco minute by minute in Nightscout?
Wait, Glucodatahandler retrieve BG every minutes From juggluco, no problem.
But if display on widget the iob and cob, maybe Is Better to display some info about the time of there?
For example :
104 --∆ 2 mins
IOB : 6.2 UI -- 4 minutes ago COB : 34 CHO -- 4 minutes ago
Or something like this?
Il mar 2 gen 2024, 22:11 Patrick Sonnerat @.***> ha scritto:
Good question... probably... I never tried the 1 minute BG. AAPS is still 5 minutes based AFAIK. Does it upload BG from Juggluco minute by minute in Nightscout?
— Reply to this email directly, view it on GitHub https://github.com/pachi81/GlucoDataHandler/issues/114#issuecomment-1874573554, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMW5QXJP5SSX3ZR6AUHLFDYMRZXHAVCNFSM6AAAAABBIIMWVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZUGU3TGNJVGQ . You are receiving this because you were mentioned.Message ID: @.***>
This is too long for complications... And the pebble endpoint only supports one timestamp for all values...
@psonnera do you use IOB and COB in xDrip? Can you check the pebble endpoint? I have tested it and it only support iob, but no cob. But I do not use loop...
For the question of too long :
Widget : 104 trend arrow I : 6.2 | C : 35 | 5ago
Complication IOB :
I : 6.2UI
Complication COB :
C : 34gr
Complication COB e IOB
I : 6.2u | C : 35g
@pachi81 not really because xDrip+ doesn't use AAPS data directly. Actually I don't know if the endpoint returns xDrip+ calculation (probably) instead of the real values sent by AAPS.
Ok, thank you! Not so important, I will change my endpoint to the pebble one and so it can either used for nightscout or xDrip+. The advantage of xDrip+ is, that it would work offline....
But at the moment, I do not have much time, so it will take some time until I can provide a test version. But with the endpoint of lostboy86 I can test it.
Good, test whatever you want with my ns
@lostboy86 Thank you very much!
Another point, you have offered to translate the app into Italian!? If you are still interested, you can download this file and translate everything, except the one with "translatable = false": https://github.com/pachi81/GlucoDataHandler/blob/master/common/src/main/res/values/strings.xml
But be aware, this is an ongoing process, because with every release there are new strings...
I created a version with iob and cob support for nightscout. Can you test it. I uploaded to playstore for internal beta tests. At the moment it only supports complications, no widgets.... You can also install from here: https://onedrive.live.com/?authkey=%21AG8eUfvdnCAQ1G4&id=F01898105C58ADFA%211299367&cid=F01898105C58ADFA
I have some medical problems in this day.
I test now on my phone mother.
All ok From main app
Fix :
Not show cob and iob on lockscreen notification
In main app, iob must be two values After point (es. -0.10 instead -0.1)
Add unit to cob and iob (add gr. For grams and UI for con)
Great job man!
Il ven 12 gen 2024, 20:49 pachi81 @.***> ha scritto:
I created a version with iob and cob support for nightscout. Can you test it. I uploaded to playstore for internal beta tests. At the moment it only supports complications, no widgets.... You can also install from here:
— Reply to this email directly, view it on GitHub https://github.com/pachi81/GlucoDataHandler/issues/114#issuecomment-1889864247, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMW5QSXXKRCFVFA6XCEOF3YOGHULAVCNFSM6AAAAABBIIMWVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBZHA3DIMRUG4 . You are receiving this because you were mentioned.Message ID: @.***>
See this notification for example :
Il ven 12 gen 2024, 20:49 pachi81 @.***> ha scritto:
I created a version with iob and cob support for nightscout. Can you test it. I uploaded to playstore for internal beta tests. At the moment it only supports complications, no widgets.... You can also install from here:
— Reply to this email directly, view it on GitHub https://github.com/pachi81/GlucoDataHandler/issues/114#issuecomment-1889864247, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMW5QSXXKRCFVFA6XCEOF3YOGHULAVCNFSM6AAAAABBIIMWVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBZHA3DIMRUG4 . You are receiving this because you were mentioned.Message ID: @.***>
Yes, at the moment only for complications. Notification, widgets and so on will come later. Step by step ;-) Units I did not know yet... 2 decimal place I also did not know yet. As I do not use it I need your input.
And get well soon!
Tell me what you need also.
Thanks
Il ven 12 gen 2024, 22:17 pachi81 @.***> ha scritto:
Yes, at the moment only for complications. Notification, widgets and so on will come later. Step by step ;-) Units I did not know yet... 2 decimal place I also did not know yet. As I do not use it I need your input.
— Reply to this email directly, view it on GitHub https://github.com/pachi81/GlucoDataHandler/issues/114#issuecomment-1889961019, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMW5QWSUYYYU5JE5DH4YILYOGR6ZAVCNFSM6AAAAABBIIMWVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBZHE3DCMBRHE . You are receiving this because you were mentioned.Message ID: @.***>
I created a new version with notification support. I added units like in AAPS and nightscout: IOB: "U" and COB: "g"
In previous link i only see 0.988 dev
Il sab 13 gen 2024, 17:50 pachi81 @.***> ha scritto:
I created a new version with notification support. I added units like in AAPS and nightscout: IOB: "U" and COB: "g"
— Reply to this email directly, view it on GitHub https://github.com/pachi81/GlucoDataHandler/issues/114#issuecomment-1890590757, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMW5QSS5IADHP4RQILGBT3YOK3O3AVCNFSM6AAAAABBIIMWVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQGU4TANZVG4 . You are receiving this because you were mentioned.Message ID: @.***>
Playstore!?
@lostboy86 Did you get the latest version 0.9.8.9 from PlayStore? As you are set as internal tester, you should get the newest version, first... (I do not mean the open beta test, this comes later, after google checked it...)
Can you share the apk for my mother phone?
Because i have 9.8.9 but my Glucodatahandler take value From juggluco and send locally to aaps, cannot retrieve iob and cob
Il dom 14 gen 2024, 11:20 pachi81 @.***> ha scritto:
@lostboy86 https://github.com/lostboy86 Did you get the latest version 0.9.8.9 from PlayStore? As you are set as internal tester, you should get the newest version, first... (I do not mean the open beta test, this comes later, after google checked it...)
— Reply to this email directly, view it on GitHub https://github.com/pachi81/GlucoDataHandler/issues/114#issuecomment-1890909353, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMW5QQGBGIHLO3RAMVXAR3YOOWODAVCNFSM6AAAAABBIIMWVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQHEYDSMZVGM . You are receiving this because you were mentioned.Message ID: @.***>
Tested, work correctly
Il dom 14 gen 2024, 11:20 pachi81 @.***> ha scritto:
@lostboy86 https://github.com/lostboy86 Did you get the latest version 0.9.8.9 from PlayStore? As you are set as internal tester, you should get the newest version, first... (I do not mean the open beta test, this comes later, after google checked it...)
— Reply to this email directly, view it on GitHub https://github.com/pachi81/GlucoDataHandler/issues/114#issuecomment-1890909353, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMW5QQGBGIHLO3RAMVXAR3YOOWODAVCNFSM6AAAAABBIIMWVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQHEYDSMZVGM . You are receiving this because you were mentioned.Message ID: @.***>
Do you still need it? I haven't built an apk. I will do with the next version.
Yes because cannot test iob and cob on phone parents and android radio.
On my phone i have Glucodatahandler source juggluco wear and send interapp.from Glucodatahandler to AAps.
Is there a way to have local source and internet download iob and cob?
Or , AAps can send iob cob etc tò xdrip protocol to xdrip.
Can Glucodatahandler received them From APS locally?
Il dom 14 gen 2024, 21:02 pachi81 @.***> ha scritto:
Do you still need it? I haven't built an apk. I will do with the next version.
— Reply to this email directly, view it on GitHub https://github.com/pachi81/GlucoDataHandler/issues/114#issuecomment-1891057835, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMW5QRAABKBXGEZ72PKMCLYOQ2V5AVCNFSM6AAAAABBIIMWVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJRGA2TOOBTGU . You are receiving this because you were mentioned.Message ID: @.***>
You can try to add nightscout as "second" source to you phone with some delay. If iob and cob are present and have changed, it will overwrite it and the other values should stay the same.
Can you test it?
Umh can you explain well?
Yesterday i setup my Glucodatahandler phone source not juggluco , but nightscout.
Stopped APS not recept BG From Glucodatahandler, and done the test
I send the photo in last mail of Yesterday
Il lun 15 gen 2024, 10:58 pachi81 @.***> ha scritto:
You can try to add nightscout as "second" source to you phone with some delay. If iob and cob are present and have changed, it will overwrite it and the other values should stay the same.
Can you test it?
— Reply to this email directly, view it on GitHub https://github.com/pachi81/GlucoDataHandler/issues/114#issuecomment-1891771559, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMW5QUDFPPTUYP4Z6WO5HDYOT4WDAVCNFSM6AAAAABBIIMWVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJRG43TCNJVHE . You are receiving this because you were mentioned.Message ID: @.***>
I did not receive any photo (maybe Github removed attachments...).
But you can use your phone GDH to receive values from Juggluco and you can also setup nightscout at the same GDH. For normal, GDH will ignore the values from nightscout if there not newer than the local ones from Juggluco, but if iob or cob has changed, it force update the values includings iob and cob.
So, that mean, that you can use two sources on your phone GDH, one for Juggluco and one for NS.
There is one thing I do not know, if GDH receives the values twice, it will also forward each time. Not sure, if AAPS handle this correct, normally it should ignore the second value sent with the same timestamp....
Glucodatahandler can recept some values trough xdrip broadcast?
AAps can send values trough xdrip broadcast protocol interapp
Il lun 15 gen 2024, 11:13 pachi81 @.***> ha scritto:
I did not receive any photo (maybe Github removed attachments...).
But you can use your phone GDH to receive values from Juggluco and you can also setup nightscout at the same GDH. For normal, GDH will ignore the values from nightscout if there not newer than the local ones from Juggluco, but if iob or cob has changed, it force update the values includings iob and cob.
So, that mean, that you can use two sources on your phone GDH, one for Juggluco and one for NS.
There is one thing I do not know, if GDH receives the values twice, it will also forward each time. Not sure, if AAPS handle this correct, normally it should ignore the second value sent with the same timestamp....
— Reply to this email directly, view it on GitHub https://github.com/pachi81/GlucoDataHandler/issues/114#issuecomment-1891796538, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMW5QWZVTU434DRASAAB23YOT6LHAVCNFSM6AAAAABBIIMWVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJRG44TMNJTHA . You are receiving this because you were mentioned.Message ID: @.***>
Yes, GDH can also receive values from xDrip, but this broadcast does not include iob and cob. You can also connect to the xDrip+ local webserver as nightscout source.
Good holidays at all,
on widget or complications, can be retrieve iob, cob, etc from nightscout?
So many aaps user groups with android watch, or when drive, ask this function, nightscout provide this parameteres, uploaded by aaps. Maybe display this values on widget mobile or complications watch?
Thanks