grocy-android icon indicating copy to clipboard operation
grocy-android copied to clipboard

[Feature Request] - Use Grocy external barcode API lookup

Open pantherale0 opened this issue 4 months ago • 3 comments

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.

pantherale0 avatar Mar 03 '24 15:03 pantherale0

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 avatar Mar 20 '24 10:03 Gerben321

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?

Gerben321 avatar Mar 20 '24 21:03 Gerben321

@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.

pantherale0 avatar Mar 20 '24 21:03 pantherale0