patzly / grocy-android

ERP beyond your fridge, now on your phone – An awesome companion app for grocy
https://patrickzedler.com/grocy/
GNU General Public License v3.0
829 stars 80 forks source link

[Feature Request] - Use Grocy external barcode API lookup #844

Open pantherale0 opened 4 months ago

pantherale0 commented 4 months ago

This app is fantastic, thank you for everything put into it.

I'm currently working on extracting data from UK supermarkets to integrate into Grocy using the external barcode lookup (https://github.com/grocy/grocy/issues/6). It would be good if this app could use that as an option for external lookups on products that don't exist rather than open food facts / open beauty facts.

There are a large number of products missing on Open Food Facts, yet polling the custom APIs I've built I can return the vast majority of information (including weights, prices, units, storage locations etc.) from all of the major UK supermarkets (Tesco, Morrisons, Waitrose, Sainsbury's etc.) and retailers such as B&M.

Gerben321 commented 3 months ago

This is exactly what I am looking for as well. I've built a similar system for Dutch supermarkets that I have configured in Grocy. However, most/all of the scanning is done within the app.

Where in the existing code is a product search by its barcode? Maybe we can make an option to search externally if there's nothing found internally.

Gerben321 commented 3 months ago

Would be great to have it as an option like with the Open Food Facts option. And chain it, so it checks them all.

I've been digging around the code a bit, and I can try to implement it. But I'm sure it won't be very pretty haha. I haven't worked that much in Java. @patzly Should I give it a go, or can someone else work on this? Sorry if I ping you, not sure what the way of working here is. Hopefully less hostile than the Grocy GH. 😂

@pantherale0 Have you ever gotten further?

pantherale0 commented 3 months ago

@Gerben321 I've mostly built my backend API and is currently running in a Azure App Service instance. I've not done anything with the app as mobile apps aren't really in my expertise so to speak.