Feature Request: Default Quantity Units
See original GitHub issueIt would be useful to have a preloaded set of QUs, such as:
Gram (g), Kilogram (kg), Ounce (oz), Pound (lb), Stone (st) Millilitre (ml), Litre (l), Fluid Ounce (fl. oz), Cup ©, Pint (pt), Quart (qt), Gallon (gal) Teaspoon (tsp), Tablespoon (tbsp)
I suspect these will end up in the migrations
directory, probably adding to the quantity_unit_conversions
table.
I’m struggling a bit to find some of the exact 1=1 comparisons, but, as far as I can make out:
- 1000g = 1kg
- 1000ml = 1l
- 5ml = 1tsp
- 3tsp = 1tbsp
- 16tbsp = 1cup
- 16oz = 1lb
- 14lb = 1st
- 30ml = 1fl. oz
- 16fl. oz = 1pt
- 473ml = 1pt
- 2pt = 1qt
The problem comes around where international values differ, like this quote:
Not all tablespoons are the same. The Australian tablespoon is 20 ml; the British tablespoon is 17.7 ml. In most Canadian recipes, the tablespoon is 15 ml., while the American tablespoon is 14.2 ml. In British, Australian and sometimes Canadian recipes, the “imperial pint” is used which is 20 fluid ounces. American and sometimes Canadian recipes use the American pint of 16 fluid ounces.
And later
Not all measuring cups are the same American cups are 237ml while a metric cup is 250 ml
Or this quote:
1 US gal = 3.7854118 litres 1 UK gal (imperial) = 4.54609 litres
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Hi Berrnd,
I came to this as a relatively new user. I don’t really have a feel for an “onboarding” process, but for me, the task list seems pretty insurmountable initially. I have to go around my house and start adding stuff… and having a set of “standard” QUs would be quite useful. And I agree, ounces and gallons are pretty uncommon for Germany, whereas ml and l are likely to be rareish in the US… so perhaps, as part of the setup it checks whether QUs have already been populated (with anything more than “pack” and “piece”), and if so, offers to install some QUs.
Having international measures are quite useful, particularly when a recipe you’re importing uses those values, so perhaps “Tablespoon (tbsp) [US]”, “Tablespoon (tbsp) [Aus]” and “Tablespoon (tbsp) [UK]” would give you the opportunity to go in and remove those ones you don’t use? I’m not sure. I don’t really know the internals of how this would work (like I said, I’m relatively new to Grocy)… Or you can just ignore them.
But, I understand your view, I’m just bringing it up, as it made me quite nervous when I was trying to work out what QUs I needed to add for my own stuff, and putting in the comparisons between them… Ugh.
Closed in favor of #129.
Quote of https://github.com/grocy/grocy/issues/451#issuecomment-1019558559: