wger-project / docker

Production...ish docker-compose image for wger
GNU Affero General Public License v3.0
125 stars 43 forks source link

How to enter ingredients based on serving size and not 100g #80

Open dnburgess opened 7 months ago

dnburgess commented 7 months ago

Is there a way I can enter my own list of ingredients and just put the nutritional value of each ingredient rather than having to do the math to find the value based on 100 grams of the ingredient?

Like... I use a protein powder whose serving size is 36 grams, but I don't want to have to go through and multiply all the values by 2.7777 to get the units that WGER is looking for.

Is this possible? Can someone please point me in the right direction so I don't have to do a bunch of math here?

Thanks!!

rolandgeider commented 7 months ago

hi! If you are running your own instance, the admin user can add new ingredients. As a workaround, if you use the mobile app, there is a list of the last logged items, you can just click on it and it will copy over the exact weight from last time

The backend actually does support units (so in this case "1 serving"), but isn't really visible, we need to find a way to import them from Open Food Facts, since this doesn't really scale manually

Compukid commented 7 months ago

Not to be super negative, but I found the menu to add the unit, and it doesn't really do anything. It is not re-calculating anything. The ingredients menu is forcing to calculate portions into 100g and that is not fair. Almost all food packages have these labels and they provide all the details needed including portion size. Most food trackers can take this and calculate different portions if you want to change it. I am not so sure the whole nutrition section is practical at this time as It is missing basic features in my opinion.

Screenshot from 2024-03-02 23-28-52