Forceu / barcodebuddy

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

Custom provider #232

Open josvink66 opened 9 months ago

josvink66 commented 9 months ago

Hi,

First of all, great addon to Grocy!

I was wondering, is it possible to create a custom provider? I have a big csv file with products and there barcode of our local supermarket. It would be great to include this to barcodebuddy as the data set is to big to just all insert it to Grocy.

I can change the format of the dataset if needed.

Forceu commented 9 months ago

Hi, thanks for your input! I might add support for custom providers at some point, as it would be rather trivial. In the meantime, you can send me the dataset, that way I can add it to BarcodeBuddy Federation and the data would be available to your instance as well (if you want to)

josvink66 commented 9 months ago

Hi @Forceu thanks for your response. A custom integration would be great as data changes all of the time. For now, adding the dataset to BarcodeBuddy Federation would be awesome. See the attached files. The file ProductsEANDirty has all of the products but the EAN code has many duplicates. The file ProductsEANClean has been filtered on EAN code, so some issue may occure. [Uploading naming ProductsEANClean.csv…]() [Uploading ProductsEANDirty.csv…]()

Forceu commented 9 months ago

Sure, I will add them right away. The server detects duplicates anyway, so all options will be added. However I think the files were not uploaded correctly? Maybe try to upload them as a zip file here

josvink66 commented 8 months ago

Sorry for the very late reply! The upload does not seem to work for me. So I have uploaded them here: https://file.io/jDS8gz7jXoVD

Forceu commented 8 months ago

Thanks, I added them to the federation, they should be available now to all users

Imported 20999 barcodes 12604 new barcodes added

In the future I will also add a provider for local csv files, see #222