esqLABS / 0buzz

MIT License
0 stars 0 forks source link

Check and correct Caffein and Water amounts #9

Open Felixmil opened 1 week ago

Felixmil commented 1 week ago

Here is our current data structure (filled by chatGPT):

COFFEE_TYPES <- list(
  `Espresso` = list(caffeine = 64, water = 30),
  `Americano` = list(caffeine = 77, water = 30),
  `Cappuccino` = list(caffeine = 75, water = 180),
  `Latte` = list(caffeine = 63, water = 300),
  `Mocha` = list(caffeine = 95, water = 240),
  `Macchiato` = list(caffeine = 71, water = 30),
  `Ristretto` = list(caffeine = 75, water = 22),
  `Long Black` = list(caffeine = 77, water = 120),
  `Flat White` = list(caffeine = 77, water = 160),
  `Affogato` = list(caffeine = 64, water = 30),
  `Irish` = list(caffeine = 77, water = 150),
  `Turkish` = list(caffeine = 95, water = 240),
  `Greek` = list(caffeine = 95, water = 240),
  `Vietnamese` = list(caffeine = 77, water = 150),
  `Iced` = list(caffeine = 77, water = 150),
  `Decaf` = list(caffeine = 2, water = 240)
)
wilbertdew commented 1 week ago

Hi Felix, will check this asap, but I am off tomorrow. definitely needs revision as espresso and americano should have different water volumes

Op do 14 nov. 2024 02:53 schreef Felix MIL @.***>:

Assigned #9 https://github.com/esqLABS/0buzz/issues/9 to @wilbertdew https://github.com/wilbertdew.

— Reply to this email directly, view it on GitHub https://github.com/esqLABS/0buzz/issues/9#event-15295745950, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACENWP5GM2J2ERJJM4DY3YD2ARXLBAVCNFSM6AAAAABRYPM2ROVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJVGI4TKNZUGU4TKMA . You are receiving this because you were assigned.Message ID: @.***>

Felixmil commented 1 week ago

Here is the list generated by chatGPT:

DRINK_TYPES <- list(
  # Coffee types
  "Espresso" = list(caffeine = 64, water = 30),             # Single shot (30 mL)
  "Double Espresso" = list(caffeine = 128, water = 60),     # Double shot (60 mL)
  "Americano" = list(caffeine = 64, water = 240),           # Espresso with water (240 mL)
  "Latte" = list(caffeine = 64, water = 240),               # Espresso with steamed milk (240 mL)
  "Cappuccino" = list(caffeine = 64, water = 180),          # Espresso with steamed milk & foam (180 mL)
  "Flat White" = list(caffeine = 64, water = 160),          # Espresso with steamed milk (160 mL)
  "Mocha" = list(caffeine = 64, water = 240),               # Espresso with chocolate & milk (240 mL)
  "Macchiato" = list(caffeine = 64, water = 45),            # Espresso with a dash of milk (45 mL)
  "Ristretto" = list(caffeine = 64, water = 15),            # Shorter espresso shot (15 mL)
  "Lungo" = list(caffeine = 64, water = 60),                # Extended espresso shot (60 mL)
  "Drip Coffee" = list(caffeine = 95, water = 240),         # Standard brew (240 mL)
  "Cold Brew" = list(caffeine = 100, water = 240),          # Coarse-ground steeped (240 mL)
  "Iced Coffee" = list(caffeine = 95, water = 240),         # Drip coffee served cold (240 mL)
  "French Press" = list(caffeine = 80, water = 240),        # Coarse-ground press (240 mL)
  "Turkish Coffee" = list(caffeine = 60, water = 60),       # Fine-ground simmered (60 mL)
  "Café au Lait" = list(caffeine = 95, water = 240),        # Drip coffee with milk (240 mL)

  # Decaf coffee options
  "Decaf Espresso" = list(caffeine = 2, water = 30),        # Single shot decaf (30 mL)
  "Decaf Drip Coffee" = list(caffeine = 5, water = 240),    # Standard brew decaf (240 mL)
  "Decaf Americano" = list(caffeine = 2, water = 240),      # Decaf espresso with water (240 mL)

  # Teas
  "Black Tea" = list(caffeine = 47, water = 240),           # Steeped black tea (240 mL)
  "Green Tea" = list(caffeine = 28, water = 240),           # Steeped green tea (240 mL)
  "White Tea" = list(caffeine = 15, water = 240),           # Steeped white tea (240 mL)
  "Oolong Tea" = list(caffeine = 37, water = 240),          # Steeped oolong tea (240 mL)
  "Matcha" = list(caffeine = 70, water = 60),               # Fine powder green tea (60 mL)
  "Chai Tea" = list(caffeine = 50, water = 240),            # Spiced black tea (240 mL)
  "Herbal Tea" = list(caffeine = 0, water = 240),           # Herbal infusion (240 mL)
  "Rooibos Tea" = list(caffeine = 0, water = 240)           # Caffeine-free rooibos (240 mL)
)
Felixmil commented 4 days ago

Maybe use U.S. Department of Agriculture as source ? For example for Espresso: https://fdc.nal.usda.gov/food-details/2710378/nutrients

wilbertdew commented 4 days ago

I was thinking it might be easiest to find one single reference with an overview. I think table 1 here is about what we need: https://pmc.ncbi.nlm.nih.gov/articles/PMC10459237/pdf/pharmaceuticals-16-01067.pdf We should also limit the options to avoid long lists I think, maybe pick espresso, americano, black tea, green tea, coke, red bull and chocolate? We can take the volume as liquid volume, except for chocolate where the liquid volume is 0

StephanSchaller commented 2 days ago

Comment in MSTeams chat:

(Let's make sure we have coffee types from start screens in selection: image

image