Forceu / barcodebuddy

Barcode system for Grocy
GNU Affero General Public License v3.0
433 stars 58 forks source link

Integrate barcode resolver/database for Czechia #233

Open moookino opened 9 months ago

moookino commented 9 months ago

Hi,

Is it possible to use something like https://www.kaloricketabulky.cz to resolve barcodes after scan? It seems they have https://www.kaloricketabulky.cz/autocomplete/foodstuff-activity-meal?query=<barcodenumber>&format=json which could be used to list product and all relevant info in json format and map those

Here's response example (there's might be duplicates for the same barcode as those are user entered)

[
  {
    "clazz": "foodstuff",
    "id": "debcb64b88104a59aface5fc2cc178e2",
    "url": "freche-freunde-knusper-flips-mais-karotte-erdbar",
    "title": "Freche Freunde Knusper-Flips Mais & Karotte erdbär",
    "type": null,
    "unit": "g",
    "value": "396",
    "favorite": false,
    "energy": null,
    "energyUnit": "kcal",
    "status": 2,
    "visibility": "public",
    "isLiquid": false,
    "hasImage": false,
    "multiplier": null,
    "locked": false
  }
Forceu commented 8 months ago

Thanks, I will add this in the future