diff --git a/examples/date-diff.py b/examples/date-diff.py index 662ef42..fae5e3d 100644 --- a/examples/date-diff.py +++ b/examples/date-diff.py @@ -63,7 +63,7 @@ def init_monitor(): # Drawing on the Horizontal image logging.info("1.Drawing on the Horizontal image...") - drawblack.text((4, 0), 'Noch: ' + duration + 'bis', font = font16, fill = 0) + drawblack.text((4, 0), 'Noch: ' + str(duration) + 'bis', font = font16, fill = 0) drawblack.text((4, 16), 'Hausverbrauch', font = font16, fill = 0) drawblack.text((4, 32), 'Strom Import', font = font16, fill = 0) drawblack.text((4, 48), 'Batterie', font = font16, fill = 0)