The CETA Label Queue is a desktop program that checks the iCFM server for label print requests, renders the matching HTML template into an image using Google Chrome, and sends that image to a local printer at the template's physical size.
Templates are stored only on the iCFM server, so the app never keeps a local copy that could go out of date. Each copy of the app serves one queue, and the queue's printer assignments are also held on the server.
Before you start
The computer that runs the app must meet these requirements:
- Windows 64-bit, Linux 64-bit, or macOS on Apple Silicon. The .NET runtime is bundled, so nothing else needs installing for .NET.
- Google Chrome is installed on the same computer. The app checks for Chrome at startup and will not run without it.
- The label printer is installed on that computer. Its name must match the printer name in the app exactly (not case-sensitive). On Linux and macOS this is the CUPS queue name.
- The computer can reach the iCFM server. Templates that load anything from the internet need internet access on this computer. Templates should not depend on it (see Writing and editing templates).
Installing and updating
The app is extracted over the existing folder. There is no installer. Recent builds also keep your settings separate from the program files, so an update does not overwrite your configuration.
- Quit the app.
- Download the zip your CETA contact gave you.
- Extract it over the existing folder. On Windows the default is C:\Program Files\CETA Label Queue\, or wherever the app was first installed.
- Start the app and check the version in the title bar, for example CETA Label Queue - v1.0.3.xx.
- Check the Clear Queue button is present. Builds from 1.0.3.02 onwards have it, so its absence means you are on an older build.
- Click Start and confirm the correct queue is selected.
If you have a second station, update each computer separately. Each one runs its own copy of the app.
Connecting to the iCFM API
Open the API dialog with the API button. Enter the values below and click Authenticate.
Field | What to enter |
|---|---|
iCFM URL | The address of your iCFM server, as your CETA contact gave it. The default format is a host name such as your-server.cetacloud.tv. |
Username | An iCFM User with permissions: |
Password | That User's password. It is stored encrypted on this computer. |
Poll every | How often the application checks for jobs. The default is 20 seconds and the minimum is 5. |
When you click Authenticate, the status reads API Credentials Valid if the server accepts the login. If it fails, the reason appears in red. The server's full message is written to EventLogger.txt.
After authentication, click Start on the main window. The app then polls the queue. Stop pauses polling.
Token renewal
Tokens expire after seven days. The app signs in again automatically using the saved username and password, and checks the token in the background every hour. You do not need to re-enter the password unless the account itself changes.
Settings files
Settings are kept in %APPDATA%\CETA Label Queue\ on Windows and ~/.config/CETA Label Queue/ on macOS and Linux. The main file is APIConfig.json.
Queue Name(s)
In iCFM, we set up label queues. These are text representation of a destination for labels. Examples might be "Basement" or "Despatch".
There are no limits to the amount of queues you can have. These are set up in the Admin Options -> Combo Box Options, under the category "labelqueue"
Each label queue can have its own Label Printer application, with its own labels and templates. Each Label Print application points at one queue. The User can specify the queue they want to print to in the Library header in iCFM (next to the B/C and 1-4 buttons)
Clear Queue
The Clear Queue button marks every unprinted label in the selected queue as printed. A confirmation appears first. Use it to empty a backlog, for example after an outage, so that old labels are not printed by mistake.
Printers and template assignment
Each template is assigned to one printer on this computer. Open Printers to see or change the assignments. Simply drag the template from the left and drop onto the printer you want to allocate to
If a template has no printer assigned, the job is logged as "No printer is assigned to template". Nothing prints in that case, so check the assignment first.
One template maps to one printer per queue. To print the same label on another printer, add a second station with its own copy of the app and select the same template on it.
In iCFM, each button on a Media item sends a print request for one template. For example, one site's B/C button uses the BARCODE1 template, and its numbered buttons use LIB1 to LIB4. Ask your CETA contact which template each button uses at your site.
Writing and editing templates
A template is an HTML page with its CSS in a <style> block. Open Templates to edit one. The editor shows a live preview, and Fit zooms the preview to the label. Click Save Changes (Ctrl+S) when you are done.
For the full list of fields, formats and examples, see LABEL_TEMPLATE_GUIDE.md. The most used placeholders are below.
Placeholder | Shows |
|---|---|
{{title}} | Item title |
{{barcode}} | Barcode value (as text) |
{{library.editor}} | Editor or operator who logged the item |
{{library.modate:dd-MM-yyyy}} | Library made-on date, in the format given |
{{now:dd-MM-yyyy}} | Current date when the label prints |
{{companyname}} | Client or Company name |
Placeholders are not case-sensitive. A placeholder with a misspelled name prints as literal text on the label, so check the spelling first if you see {{...}} on a printed label.
Size and orientation
The physical size of a label comes from the Width and Height settings in millimetres. It does not come from @page or width and height in the CSS. Enter the size in the direction the label is fed through the printer.
For example, a 90 mm by 29 mm label that is fed sideways needs Width 90 and Height 29. If the content is clipped, or the label prints sideways, check Width and Height before changing the design. The page is clipped at its edges, so reduce font size or spacing if text is cut off.
Keep templates self-contained
The label is rendered by Chrome on the printer computer, and Chrome waits up to 8 seconds for every link to load. A template that links to an external stylesheet, script, font, image or barcode font will be slow or blank on a computer without internet access.
To avoid this:
- Put all CSS in the <style> block.
- Embed images as base64 data URIs.
- Install any barcode or special font on the printer computer, and refer to it by its installed name.
The app lists any external URL it finds in a template in the log, and the editor shows a warning above the HTML.
Barcodes
{{barcode}} prints the barcode value as text. To print a scannable barcode, use a barcode font and wrap the value in the font's start and stop characters. For Code 39 that is *{{barcode}}*. Set the font size so the barcode scans. Smaller bars are harder to scan, so test a printed label with a scanner.
Troubleshooting common problems
Each row below is a problem customers reported in support tickets. Check the first step in each row before contacting support. If the problem remains, click Upload log in the app and quote the time of the failed print.
Symptom | Likely cause | What to do |
|---|---|---|
Jobs are picked up but nothing prints | Old build that no longer matches the server after an API change | Update to the current build (see Installing and updating) and restart |
Template is missing, blank or reverted | Old build, or a local copy of templates from before 1.0.3.03 | Update, restart, and check the template in Templates. Templates are always read from the server now |
One press prints several copies | Old build (fixed in 1.0.3.07) | Update to the current build |
Label fails with "could not render label", or prints blank | Chrome is missing on the printer computer, or the template links to something on the internet | Check Chrome is installed. Remove external links from the template (see Keep templates self-contained) |
Text is clipped at the edges | Width and Height do not match the label, or the content is too big | Check the orientation of Width and Height, then reduce font size or spacing |
Fonts suddenly look larger after an update | Chrome profile problem on the printer computer (fixed in 1.0.3.03) | Update. The app now uses its own Chrome profile |
Editor shows an old version of a template | Local cache from an older build (fixed in 1.0.3.03) | Quit the app, extract the current build, restart |
Labels take 10 to 20 seconds to print | Long poll interval | Lower the poll interval, down to 5 seconds, in the API dialog or on the server |
Barcode will not scan | Font too small, or the font is not installed on the printer computer | Increase the font size, or install the font on the printer computer and test with a scanner |
Brother QL label prints sideways or blank | Printer driver orientation setting, or a rotated template | Set the orientation in the printer properties, and try a simple template to isolate the problem |
Nothing happens after Start | Wrong queue selected, or polling has stopped | Check the queue name in the drop-down, then press Stop and Start |
Authentication fails | Wrong username or password, or the account has no print permission | Check the API dialog. The server's full message is in EventLogger.txt |
Media Movement batch upload fails | The file is tab-separated, or saved in the wrong format | Save the file as CSV with commas between fields. This is an iCFM upload, not a label queue problem |
If you change a template and the label still looks wrong, reprint one label after restarting the app. Old previews can show a version that is no longer saved.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article