Skip to main content

Version 4.0.x

Version 4.0.x introduced support for multiple printers in a single controller, as well as support for multiple printer types. While all requests will continue to work when the controller only has a single NoLabel or Colorize printer configured, many requests require an extra parameter when more than one printer is configured.

Several requests that are specific to s certain printer type have been renamed. The old names are still supported, but are deprecated.

The settings object has also changed dramatically from earlier versions.

Renamed GPIO signals

All GPIO signals now require a prefix to indicate which equipment the signal is connected to. The prefix is the eqiupment ID and a period. The default eqipment ID is MASTER, so the output signal OUT1 must be specified as MASTER.OUT1.

Renamed GPIO conditions

All GPIO conditions (except always and never) have been renamed to support multiple printers. Assuming a printer ID of NoLabel, and an equipment ID of MASTER, the conditions are renamed like this:

Old nameNew name
printer:readyprinter.Colorize.ready
printer:greenprinter.Colorize.green
printer:amberprinter.Colorize.amber
printer:redprinter.Colorize.red
printer:ink:lowprinter.Colorize.ink_low
printer:ink:emptyprinter.Colorize.ink_empty
label:selectedprinter.Colorize.label_selected
label:readyprinter.Colorize.label_ready
uv_light:onprinter.Colorize.uv_light1
uv_light:onprinter.Colorize.uv_light1
input:IN1gpio.MASTER.IN1

Printer specifier

All requests that directly affect a printer has a new parameter printer. This parameters is required if more than one printer is configured, but it is strongly recommended to always be set in order to avoid problems if a new printer is added later.

The following requests now support a printer attribute:

Renamed requests

Old nameNew name
getSettingsgetPrinterSettings
setSettingssetPrinterSettings
disablePrintheadMaintenancemarvin1:disablePrintheadMaintenance
enablePrintheadMaintenancemarvin1:enablePrintheadMaintenance
haltInkSystemmarvin1:haltInkSystem
standbyInkSystemmarvin1:standbyInkSystem
startInkSystemmarvin1:startInkSystem
stopInkSystemmarvin1:stopInkSystem

New requests