PantryParty / pantry_party

Apache License 2.0
70 stars 8 forks source link

scan-selector: enable DATA_MATRIX #127

Closed grahamc closed 2 years ago

grahamc commented 2 years ago

The 2D barcodes from Grocy are data matrix.

I haven't built and tested this: I don't know how :(. But I'd love to know how so that I can!

bmalinconico commented 2 years ago

The easiest way to test it is to load the custom build on your phone. If you can't do that I'll try and get it tested. Do you have an example barcode you want it to scan?

grahamc commented 2 years ago

These are all different sizes of the same barcode:

Screenshot 2021-12-28 at 21-50-38 Triscuit original Screenshot 2021-12-28 at 21-49-38 Triscuit original Screenshot 2021-12-28 at 21-48-09 Triscuit original grocycode

I don't think I can build and install it since I don't have a mac, I don't suppose it is possible for you to do that, sending me the app using Testflight or something?

arjes commented 2 years ago

I've tested this and it will scan the barcode, however the value is grcy:p:4:6186fc9bf095b

Testing the barcode's on the grocy demo site shows this is correct. I'll go ahead a merge this, but I need to fix a couple other bugs while i'm at it.