nightscout / nightscout/AndroidAPS

[enhancement] - calculate and record carbs based on food inputs

Open
#1,105 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Kotlin
Stars
1.2k
Forks
6.4k
Avg merge
2d 7h
Merged PRs (30d)
19

Description

Would like to be able to:

  • Iteration 1 - Select a food from the FOOD tab and have it open the bolus wizard/calculator w/ the correct number of carbs
  • record meal in the local database - check data model of NS to be compatible
  • Have a meal calculator where multiple foods & portions can be added/adjusted and then the meal can record carbs or start the bolus wizrd/calculator
  • be able to adjust portion sizes based on # of portions (i.e. 1 slice of bread, vs 2 slices of bread), but if the portion in NS is in oz or ml, then it would be nice to adjust the ml/oz amount (i.e. say 150ml rather than 1.5 of a portion of 100ml)
  • nice to have - default the list of foods to foods frequently consumed at that time of day (i.e. default to show breakfast foods in the morning)
  • be able to make adjustments (i.e only do 50% due to pending exercise, or add an extra 20g of carbs)
  • be able to save the meal with a name to the DB to be able to re-use the meal at a future date
  • be able to see prior meals & post-meal sugars to make a better bolus decision for today's meal
  • be able to use an existing database, such as https://world.openfoodfacts.org. Want to be able to use that, but also not be overwhelmed by choices.
  • nice to have - add a photo of the meal
  • be able to record eCarbs and/or open the calculator
  • nice to have - recommend food selections based on similar foods. I.e. suggest cheese if you have selected crackers
  • Include fat & protein into carb calculations

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the FOOD tab, bolus wizard/calculator, and local database data model, then read the linked Open Food Facts API documentation. Break the requested food selection, meal editing, recording, reuse, and calculation behavior into scoped decisions; done requires an agreed subset and compatible meal data model.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
database, mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.