nightscout / nightguard

iOS and WatchOS Client for the Nightscout CGM System
GNU Affero General Public License v3.0
238 stars 158 forks source link

Enter insulin bolus treatments #300

Open poml88 opened 3 months ago

poml88 commented 3 months ago

Since we can enter carbs on watch and phone, would it be difficult to implement entering insuline units?

dhermanns commented 3 months ago

Hi Phil, can be entered but without any effect. At least for Android APS, since it is not allowed to sync this data to the loop.

poml88 commented 3 months ago

Well, in my case it is just for keeping track of injections. I have a very simple loop, sensor, brain, pen. :-) I guess I could follow the example of the carbs?

dhermanns commented 3 months ago

Yes - should be pretty similar.

poml88 commented 3 months ago

Just slowly discovering everything... In principle NG shows already everything, and you can enter via the iOS NS view. A quick button like the carbs on the watch would be cool, and a Siri catch like "add 5 units insuline" or so. I'll keep that in mind for later.

dhermanns commented 3 months ago

Keep in mind how bad siri voice recognition is. So could be dangerous for loop users. Not for AAps Users, but I don't know what other Systems are out there...

poml88 commented 2 months ago

Ok, in the latest TestFlight there is an option to create Correction Bolus events.

poml88 commented 2 months ago

Do you want a PR for this? I think you saw the TestFlight?

dhermanns commented 2 months ago

I'm not sure whether this could be to dangerous, depending on your setup.

poml88 commented 2 months ago

You mean, somebody enters 6 U and then this persons pump will inject 6 U and the person will run into a low? Why would it be different from just entering the insulin in Nightscout? Somebody would do it by mistake? For me it is very handy, because I see at all times how much insulin is still around...

dhermanns commented 2 months ago

Yes exactly. When you setup your own nightscout, it is up to you. But it's different when offering an App in the Appstore.

poml88 commented 2 months ago

You mean all the "this software comes without any warranty" "no medical decisions" and so on will not help?

Anyway, up to you. I do not know (yet) how all that looping works.

It just makes me developing for you a bit harder, because I will have to keep a different version running for myself. But ok, I guess we will manage. :-)

dhermanns commented 2 months ago

No - not really. And then you should hava a look at AAPS. It is a game changer ;-)

Phil @.***> schrieb am So. 23. Juni 2024 um 18:47:

You mean all the "this software comes without any warranty" "no medical decisions" and so on will not help?

Anyway, up to you. I do not know (yet) how all that looping works.

It just makes me developing for you a bit harder, because I will have to keep a different version running for myself. But ok, I guess we will manage. :-)

— Reply to this email directly, view it on GitHub https://github.com/nightscout/nightguard/issues/300#issuecomment-2185149714, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYPBFICXSLZXJSHU6TGY23ZI333LAVCNFSM6AAAAABINTFLRSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBVGE2DSNZRGQ . You are receiving this because you commented.Message ID: @.***>

poml88 commented 2 months ago

I guess sooner or later I will do look at AAPS. My current game changer is my pancreas that is doing the basal rate for me... I try to keep it alive as long as I can... ;-)

Sounds like I need an extra phone. Got a Galaxy Note II lying around, guess that won't be supported anymore... :)

dhermanns commented 2 months ago

Fingers crossed 🤞🏽

poml88 commented 2 months ago

Something else: I have updated the versioning variables, so that the Project and Marketing Versions have to be updated only in one place... Makes it a bit easier (without fast lane?). Would that be of interest?

dhermanns commented 2 months ago

Sure

dhermanns commented 2 months ago

I would leave this feature on your fork till now. If someone would like to have this, vote for this here with a "+1".

poml88 commented 2 months ago

Ok, you are the boss. :-) But nobody will every find a closed issue...

poml88 commented 2 months ago

Just for consideration: In the carbs view: imagine somebody puts in 20g of carbs and does not eat. Or somebody confuses 10 g with 100 g because of the tiny screen… will also lead to a low.

I guess making a 100% Safe App is very difficult. Maybe also the reason why for example the fsl apps are quite limited.

Let’s see what f anybody would like this feature too. :-)

dhermanns commented 2 months ago

The effect is much slower and you can simply remove the carbs and correct them. If the insulin is in your body - hard to remove 😉

poml88 commented 2 months ago

Agreed. Unless the system injects some sort of bolus for the carbs entered…. But if it uses little doses over time it is indeed not a risk. complcated this diabetes stuff…

dhermanns commented 2 months ago

At least I don't know any loops that act this way. AAPS does Micro Boluses or adjust the Basal Rate to accommodate.