diff --git a/render.py b/render.py index 40722bf..d62d510 100644 --- a/render.py +++ b/render.py @@ -23,7 +23,7 @@ app = App(__name__) class Renderer(object): INCH_PER_MM = 0.039 DPI = 300 - def __init__(self, size=(19,51)): + def __init__(self, size=(36,89)): width, height = [int(s * self.INCH_PER_MM * self.DPI) for s in size] surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, width, height) context = cairo.Context(surface) @@ -86,6 +86,8 @@ def healthcheck(): for line in output.split('\n'): line = line.strip() if line.startswith('printer DYMO_LabelWriter_450'): + if 'is idle.' in line: + return True, 'Idle' mark = True continue if mark: