AndroidAPS icon indicating copy to clipboard operation
AndroidAPS copied to clipboard

Feature request: Add real calculation ability to calculator & carbs input windows

Open seiphr opened this issue 11 months ago • 5 comments

Oftentimes, I eat a pre-packaged item that has it's carbohydrates listed per 100g. It would be beneficial if I could enter the per-100g carbs and the actual weight of the item in grams and have AAPS do the calculation for me. Otherwise I have to get a calculator app open or work it out mentally which usually involves rounding.

The same feature should also exist in the carbs window.

seiphr avatar Jan 19 '25 06:01 seiphr

Cool idea. I could imagine a button somewhere on the row where you enter amount of carbs, when touched, a dialogue box that allow you to calculate KH in grams given that you know per 100g and actually weight in g.

olorinmaia avatar Jan 19 '25 11:01 olorinmaia

Very cool idea! I suggest 100gr default for weight form (you can change of course).

painbrain81 avatar Jan 19 '25 14:01 painbrain81

Yes, useful idea. The 100g default could be changed to the 'typical serving size' if that was what was on the packaging, though usually 100g would be available. Even better would be if when this dialog box opened, it had multiple lines, and you could add multiple elements of the meal, and AAPS would provide the total carbs at the bottom. My brain can usually cope with mental maths for one ingredient, but multiples gets a bit more difficult!

pnharris02 avatar Jan 21 '25 23:01 pnharris02

I was nearly going to suggest that this data could be pulled from a foods database too, but didn't want to make my request too overwhelming for developers in the first instance. I've just found another older open issue requesting a similar feature though, initiated from the foods database https://github.com/nightscout/AndroidAPS/issues/1105

pnharris02 avatar Jan 22 '25 21:01 pnharris02

i would like to have this too. Would be nice.

bryce2071 avatar Feb 18 '25 19:02 bryce2071