-
-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Barcode lookup via online database #6
Comments
It seems that the API of opengtindb.org is not free and also only available for commercial purposes. The information to get would be currently only the name and the quantity unit (would need a mapping to own quantity units). When the major bunch of products are added to the database, from my personal experience with grocy in nearly 1 year daily use, it's not a big problem:
|
Yes, it would better to establish a modular way. Edit: https://github.com/gruessung/IntelliFridge/blob/master/eanApi.php |
This is now also done - I added a kind of plugin like system to lookup products by barcodes, see the reference implementation of such a plugin in data/plugins/DemoBarcodeLookupPlugin.php In short: Additionally when also ?add=true is provided, on a successful lookup the product is also added to the database and in the output the new product id is included. Direct link to the API documentation: https://demo-en.grocy.info/api#/Stock/get_stock_external_barcode_lookup__barcode_ Maybe this works for you... :) |
To add a product it would be useful to only need the barcode.
grocy could look into different online "barcode to product" databases, like http://opengtindb.org to get all neccesary information.
The text was updated successfully, but these errors were encountered: