Made the used grocycode barcode type configurable

DataMatrix reading via Quagga2 doesn't work currently, so default to an supported 1D barcode (=> Code128)
This commit is contained in:
Bernd Bestel
2021-07-09 23:08:47 +02:00
parent 2638bce851
commit 8ff8c1ac5d
7 changed files with 25 additions and 25803 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,9 +1,5 @@
Grocy.Components.BarcodeScanner = {};
//import Quagga2DatamatrixReader from '../../components_unmanaged/quagga2-reader-datamatrix/index.js'
Quagga.registerReader("datamatrix", Quagga2DatamatrixReader);
Grocy.Components.BarcodeScanner.LiveVideoSizeAdjusted = false;
Grocy.Components.BarcodeScanner.CheckCapabilities = async function()
{
@@ -101,7 +97,6 @@ Grocy.Components.BarcodeScanner.StartScanning = function()
"ean_reader",
"ean_8_reader",
"code_128_reader",
"datamatrix",
"code_39_reader"
],
debug: {