Skip to content

Script to generate barcodes based on houses #1

Description

@cdparra
  • For each geo-located house in the TopaDengue map, generate a barcode from its identifier and type.
    • Input: XXXXXYYYT where
    • XXXXX = Nro. de Manzana (e.g., 99999)
    • YYY = Nro. de Casa (e.g., 001, 012...)
    • T = Tipo de Predio (up to 2 characters, e.g., V, C, Ch, etc.)

Use the free and open source library: https://www.gnu.org/software/barcode/
Mak sure you can provide as an input a CSV with the list of codes we want to encode into barcode. The output should be a PNG or JPG for each code containing the Barcode
Notes:

The following barcode formats are supported by ODK

  • UPC-A
  • UPC-E
  • EAN-8
  • EAN-13
  • Code 39
  • Code 93
  • Code 128
  • Codabar
  • ITF
  • RSS-14
  • RSS-Expanded
  • QR Code
  • Data Matrix
  • Aztec (beta)
  • PDF 417 (beta)
  • MaxiCode

For testing, I have already generated some barcodes with this online free generator, using the query param code to establish what we want to encode. This is done directly on GSheets using the online free generator, by simply using the IMAGE formula: =IMAGE("https://www.barcodesinc.com/generator/image.php?code="&A2&"&style=196&type=C128B&width=440&height=100&xres=3&font=4"; 3)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions