UPC search plugin for grocy; connects to upc.shamacon.us.
- Copy
ShamaconBarcodeLookupPlugin.php
to thedata/plugins/
directory of your grocy installation. - Configure the
STOCK_BARCODE_LOOKUP_PLUGIN
setting indata/config.php
:Setting('STOCK_BARCODE_LOOKUP_PLUGIN', 'ShamaconBarcodeLookupPlugin');
Used by the grocy API, this plugin searches upc.shamacon.us for product names for a given barcode, then returns an associative array which can be used to add a product to grocy's stock.