ivalkou / LoopWorkspace

Loop fork with Microboluses and Nightscout CGM
67 stars 64 forks source link

FPU Support feature #3

Open paddingtonil opened 4 years ago

paddingtonil commented 4 years ago

Would be awesome to have support for fat protein units

ivalkou commented 4 years ago

I think this is not yet possible to do separately from the official Loop.

mountrcg commented 4 years ago

I Ivan, I have been thinking about the same for a while. I do not eat carbs. Currently I am running a shortcut that calculates "silly" carb equivvalents for my fat and protein amounts. It even stores the fat and protein values on Nightscout. So all the shortcut does is calculates a uniform distribution of fat and protein over time with carb equivalents. I provide a link to the shortcuts below. Parameters are only

I find it silly to represent the insulination of FPU as insulination of carbs. Screws up all the statistics. Shouldnt it be represented by the intake of FPU, then use the FPU algorithm to just translate into insulin requierements and not document any carbs?

Shortcuts are based on Robert Silvers work on FPU for Loop: https://www.icloud.com/shortcuts/1f396a9688aa48d2a1767425e6134d95 https://www.icloud.com/shortcuts/3a7a3f00c9674136815bdb0024b960a1

dyjaks commented 4 years ago

@mountrcg I actually started this on my own a few months back but then work picked up too much. What the "right" thing to do (IMO) is you'd have to refactor all of carbkit to be mealkit and then add a carbkit, proteinkit, and fatkit. Reason being if someone edits a fpu entry you have to translate it back to the protein and fat so that it can be edited (and decayed) properly. Quite a bit of work and would need a lot of testing.

Just my $0.02.

mountrcg commented 4 years ago

Totally understand the hang up in every implementation. All are carb centric and that will be somehow structurally manifested and only changeable with hefty efforts. I don’t hope for much, but wanted it to be Voiced.

mountrcg commented 4 years ago

updated Shortcuts as Spike used to overwrite the Fat & Protein Carb Corrections if at same time a carb value was logged in health, which is the case in 95% of my entries for sth like 6grams in veggies and such, so therefore I add 10min to the entry time of fats and proteins: Loop FPU Rob: https://www.icloud.com/shortcuts/70977be968dd432cb6258ab2a5faca44 Nightscout Macro Entry: https://www.icloud.com/shortcuts/f3a494e04b3b441d982b0c473f03852e