LoopWorkspace icon indicating copy to clipboard operation
LoopWorkspace copied to clipboard

FPU Support feature

Open paddingtonil opened this issue 4 years ago • 5 comments

Would be awesome to have support for fat protein units

paddingtonil avatar Apr 29 '20 15:04 paddingtonil

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

ivalkou avatar May 22 '20 11:05 ivalkou

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

  • maximal distribution of FPU in hours ( as I don't want to go above 8 hrs)
  • FP-Calories ratio - how many calories from Fat and protein would represent 1 carb unit (in my case 100)
  • CarbRatio - 1 carb unit represents how many grams of carbs (in my case 12)

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

mountrcg avatar May 22 '20 13:05 mountrcg

@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.

dyjaks avatar Jun 13 '20 18:06 dyjaks

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 avatar Jun 14 '20 18:06 mountrcg

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

mountrcg avatar Jul 08 '20 08:07 mountrcg