Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Barcode lookup via online database #6
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.
added a commit
Apr 22, 2018
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
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...