← All posts

2026-11-19

Running a Label Printing System on a Raspberry Pi

Running a Label Printing System on a Raspberry Pi
pdf labels barcodes label merge browser based graphical layout editor google sheets addin microsoft excel addon electronic shelf labels esl barcode3 labels label editor

Running a Label Printing System on a Raspberry Pi

Maya is a freelance developer. A roastery two towns over hired her to build a packing station: a Raspberry Pi in a wooden enclosure, a touchscreen, a barcode scanner, and a thermal label printer. Scan a batch, print a label with the roast date, lot code, weight, and a 2D barcode that the shop’s inventory app can read.

The hardware was the easy part. The question that ate a week of her estimates was simpler and much more annoying: can this little box run a full label printing system, or do I have to bolt a server onto a packing table?

This article is the answer she needed, written for the same audience she represents — freelancers and small teams shipping professional-looking labels on constrained hardware, plus the end users who will actually press the print button. If you are evaluating label printing for Raspberry Pi embedded systems, the playbook below is the shortest path from a bare board to a working print queue.

Why Embedded Label Printing Matters for Developers and End Users

A label is a small artefact with a large blast radius. Get the lot code wrong and a recall gets messy. Get the layout wrong and a retail shelf looks improvised. Get the printer integration wrong and someone stands at a packing table at 6 a.m. waiting for a job that never arrives.

That is a lot of responsibility to put on a device the size of a deck of cards — which is exactly why single-board computers are a good fit for it:

  • Low cost per station. A Pi plus a printer costs less than a workstation, so you can put labeling where the work happens instead of routing everything through an office PC.
  • Small footprint. No tower under the desk, no fan noise on a packing line, no rack space.
  • Deployment at the edge. The device sits next to the scanner, the scale, or the shelf. It can keep working when the office network or the internet does not.
  • One image, many stations. You configure a board once and clone the setup across sites.

The catch is the software. A Pi will happily run a browser and a print daemon, but “professional-looking labels” means a real design surface, data binding, barcodes, a job queue, and a way for other systems to submit work. That is a full application — and asking a freelance developer to also become a print-protocol specialist is how projects slip.

This is the gap the Embedded Edition of Next Generation Label Printing System fills: the complete label printing platform from RSJ Software GmbH, running entirely on a single-board computer such as a Raspberry Pi. The same core functionality present in every edition — web UI, label studio, job queue, PDF generation, and the web service interface — on one board, no separate server.

The Playbook: Deploying Labels on a Pi in Five Steps

The order matters. Design first, wire data second, automate third, integrate last. Doing it the other way around means debugging three unknowns at once.

Step 1: Install the Embedded Edition

Start from a clean, updated Raspberry Pi OS image and install the Embedded Edition package that ships with your LPSNG distribution. The Embedded Edition documentation covers the package format and how the service is registered, so the commands below are the preparation, not the install itself:

# On the Pi — base system first
sudo apt update && sudo apt full-upgrade -y
sudo apt install -y curl ca-certificates

# Then install the Embedded Edition package provided with your
# distribution. See the Embedded Edition guide for the exact
# package and how the service is started on boot.

Once the service is up, LPSNG is reachable on the Pi’s address from any browser on the same network. Nothing else needs to be provisioned — the application described in the product overview is the whole system.

Step 2: Design the label in the web-based label studio

Open a browser on your laptop, point it at the Pi, and use the label studio to lay out the label: text blocks, images, barcodes, and printer-safe margins. Because the studio is served by the Pi, what you design is exactly what the Pi will render — no export step, no “works on my machine”.

Two things are worth knowing while you design:

  • Barcodes. The system supports a range of 1D and 2D formats. Pick the symbology before you finalize the layout, because quiet zones and module size affect how much space you have. Our 1D vs 2D barcode comparison covers the trade-offs.
  • Field scripts. Fields can carry Python script blocks via the Field Script API, so a value can be computed or normalized at print time rather than pre-processed upstream. Useful for lot-code formatting or trimming supplier data:
# Sketch of a Field Script attached to a label field.
# The script receives the field's value and returns what gets printed.
# Check the Python API reference for the exact context object and helpers.

def main(value, ctx):
    lot = (value or "").strip().upper()
    return f"{lot}-{ctx.get('line', 'A')}"

Step 3: Connect the data

The Pi is only useful if it stops being a manual entry terminal. Three practical routes:

  • Excel files as data files and lookup files, which fits most small operations. The Excel walkthrough shows the shape of a real setup.
  • Google Sheets, via the add-on, for teams that already live in a spreadsheet. This one needs network access from the Pi.
  • The web service API, for anything programmatic — an ERP, a warehouse app, or your own kiosk code.

Map your spreadsheet or payload columns to fields once, then reuse the layout for every batch.

Step 4: Automate the print job

Two entry points, depending on how hands-off you want to be.

For event-driven printing, submit jobs to the web service API. The API covers print job submission, rendering single labels to PDF or PNG, and direct print — plus the same OAuth2 model used for external integrations. Endpoint paths and payloads belong to the Web Service API reference; the snippet below shows the flow with the reference substituted in:

export LPSNG_HOST="http://labels.local"    # the Pi on your network
export LPSNG_TOKEN="…"                     # token from your OAuth2 registration

# Submit a print job. Use the path and payload from the Web Service API
# reference; the same API family also renders single labels to PDF or PNG.
curl -sS -X POST "$LPSNG_HOST/<print-job-endpoint>" \
  -H "Authorization: Bearer $LPSNG_TOKEN" \
  -H "Content-Type: application/json" \
  --data @job.json

For scheduled or batch work — a nightly set of shelf labels, say — the LPSNG Player is a standalone command-line print engine: package plus data in; PDF, PNG, JSON, a direct print, or an ESL update out. It is the same engine, driven from a script instead of a browser:

# Package + data in, artefacts out. Flag names are illustrative —
# see the LPSNG Player reference for the exact invocation.
lpsng-player <package> <data> --out preview.pdf

That pairing of API and CLI is covered in more depth in Batch Label Printing With a Command-Line Print Engine.

Step 5: Connect external systems with OAuth2

If the Pi has to talk to something outside itself — an ESL base station, for example — use the OAuth2 registration flow rather than pasting credentials into a config file. It is deliberately simplified: you register the external system and get a single URL to hand over. One URL, one registration, no hand-written token dance. The OAuth2 documentation walks through it.

What to Avoid When the Box Is Also the Print Shop

  • Don’t hand-roll the plumbing. You can spend two weeks implementing raw printer control and an OAuth2 handshake by hand. That is the hard way, and it is precisely the layer a managed system already automates for you.
  • Don’t undersize the board. Label rendering — especially 2D barcodes and image-heavy layouts — is real work. Give the Pi enough memory and storage headroom, and keep the job queue from filling up with orphaned jobs.
  • Don’t skip the preview. Render to PDF or PNG and look at it before the first production run. Previewing on the Pi also confirms the fonts and barcode settings actually made it onto the device. Our pre-production testing checklist is a good gate.
  • Don’t ignore security. A Pi on a shop network is still a network device. Use OAuth2 for external integrations, keep tokens out of shell history and source control, and treat the printer’s LAN segment as untrusted.
  • Don’t assume connectivity. Design the workflow so the Pi can print from a local data source when the internet is down, and only depend on the cloud for the integrations that genuinely need it.

FAQ

Can I run Next Generation Label Printing System on a Raspberry Pi?

Yes — the Embedded Edition is designed to run on single-board computers like the Raspberry Pi, providing the full label printing system in a compact form.

Do I need internet access for label printing on a Pi?

No. The Embedded Edition can operate locally without internet access, though some integrations — Google Sheets, for instance — do require connectivity.

How do I integrate electronic shelf labels (ESL) with a Raspberry Pi setup?

Use the ESL Interface, a vendor-neutral JSON file interface (ESLSEND), together with the ESL Binding API for binding tags to items — handy for handheld units without a web interface. Both work with the Embedded Edition. Hardware-specific installation notes, such as the CATIC ESL guide, are in the documentation.

What are the hardware requirements for the Embedded Edition?

The Embedded Edition is designed for single-board computers like the Raspberry Pi. Specific model recommendations are listed in the documentation, so check there before ordering boards for a rollout.

Conclusion: Start Printing Labels on Your Pi Today

Maya’s packing station ended up as one board, one printer, and one browser tab. The roastery staff design a label in the studio, scan a batch, and the Pi handles the rest — including a nightly shelf-label run for the retail side of the shop.

That is the appeal of running label printing on a Raspberry Pi: the hardware is cheap and disposable, the workflow is professional, and nothing needs a server closet. Next Generation Label Printing System ships an Embedded Edition built for exactly this, with the label studio, job queue, PDF generation, web service API, ESL interface, and the LPSNG Player available on a single board.

Start with the Embedded Edition documentation, install it on the Pi you already have on your desk, and print your first label today.


Related posts

EU label: AI-generated content