2015-02-16T09:07:47

Labels 2.0 recipe

Here are my notes from setting-up labels with barcodes for our warehousing.

Ingrediences

Directions

  1. have your Debian Linux ready
  2. install pbm2lwxl
    • cd /tmp
    • git clone https://github.com/jfuchs/receipt-printy.git
    • cd receipt-printy
    • gcc -o pbm2lwxl pbm2lwxl.c
    • sudo cp pbm2lwxl /usr/bin
  3. configure printer to connect to your WiFi network
  4. assign printer some static IP (ex. here: 192.168.0.150)
  5. via localhost:631 add new printer
  6. as connection select "ipp://192.168.0.150/" and upload this PPD
  7. now you can do "Print Test Page" and Linux print test page should come out of the printer on the sticker
  8. with your favorite program create some pdf that has 76x36mm dimensions
  9. from command line by `lp -d PRINTER_NAME label-location-X-5-01-2.pdf` you are now able to print your own labels
  10. with jQuery Mobile create a form that would be handled by your favourite server side programming language generating PDFs and feeding those to `lp` command.
  11. do BlueTooth pairing of barcode scanner with your phone
  12. launch any browser on your phone and scan barcodes right into your jQuery Mobile forms
  13. in case you would like to have barcode-scanning-printing mobile app look and feel:
    • build you jQuery Mobile page with just one location → index
    • set all the required <head>ers:
      <meta name="viewport" content="width=device-width, initial-scale=1"/>
      <meta name="description" content=""/>
      <meta name="author" content="meon"/>
      <meta name="apple-mobile-web-app-capable" content="yes"/>
      <meta name="mobile-web-app-capable" content="yes"/>
      <meta name="application-name" content="Eusahub" />
      <meta name="apple-mobile-web-app-title" content="Eusahub"/>
      <link rel="icon" sizes="192x192" href="/static/img/htouch-icon-192x192.png"/>
      <link rel="apple-touch-startup-image" href="/static/img/htouch-startup-320x460.png"/>
      <link rel="apple-touch-icon" href="/static/img/htouch-icon-60x60.png"/>
      <link rel="apple-touch-icon" sizes="76x76" href="/static/img/htouch-icon-76x76.png"/>
      <link rel="apple-touch-icon" sizes="120x120" href="/static/img/htouch-icon-120x120.png"/>
      <link rel="apple-touch-icon" sizes="152x152" href="/static/img/htouch-icon-152x152.png"/>
    • afterwards just add that location to home screen
  14. enjoy your own custom labels!

Update: Leitz released Linux drivers for Icon

Update: see also Brother QL-1060N for network label printing from Linux