From cc7821de5140554c420b4199f19cd3e0198718d1 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 13 Apr 2024 10:21:48 +0200 Subject: [PATCH] Add darkness setting to the doku --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 019afe5..c5ad122 100644 --- a/README.md +++ b/README.md @@ -90,13 +90,14 @@ address in the label meta data: ``` {"ip_address":"xxx.yyy.zzz.eee"} +{"darkness":xx} ``` If the printer driver finds that key, the IP address from the printer settings is overwritten with the address from the meta data. So the print will end up in another printer. -Only the IP address can be overwritten so far. All other settings remain. +Only the IP address and darkness can be overwritten so far. All other settings remain. ## How it works First import all the stuff you need. Here we use the translation mechanism from Django for multi language support. @@ -178,7 +179,7 @@ We can put the result of this directly into the ZPL library. ```python l = zpl.Label(Height, Width, dpmm) -l.origin(0, 0) +li.set_darkness(darkness) ... l.write_graphic(label_image, Width) l.endorigin()