This commit is contained in:
Borzutzki Robert 2024-11-25 23:02:48 +01:00
parent 656ed147b5
commit 4a793d4018

View File

@ -65,11 +65,11 @@ def init_monitor():
# Drawing on the Horizontal image
logging.info("1.Drawing on the Horizontal image...")
drawblack.text((4, 0), 'Lieber Reinhold, in nur noch: ' + str(duration.days) + " Tagen", font = font12, fill = 0)
drawblack.text((4, 16), 'Oder ' + str(round(duration.days / 7,2)) + " Wochen", font = font14, fill = 0)
drawblack.text((4, 32), 'Oder ' + str(round(duration.days / 30,2)) + " Monate", font = font14, fill = 0)
drawblack.text((4, 48), 'Oder ' + str(duration.days * 24) + " Stunden", font = font14, fill = 0)
drawblack.text((4, 64), 'Oder ' + str(round(duration.days / 365,2)) + " Jahre", font = font14, fill = 0)
drawblack.text((4, 80), "Bis du am " + str(ruhestand.strftime("%A %B %d.%m.%Y")), font = font14, fill = 0)
drawblack.text((4, 14), 'Oder ' + str(round(duration.days / 7,2)) + " Wochen", font = font14, fill = 0)
drawblack.text((4, 30), 'Oder ' + str(round(duration.days / 30,2)) + " Monate", font = font14, fill = 0)
drawblack.text((4, 46), 'Oder ' + str(duration.days * 24) + " Stunden", font = font14, fill = 0)
drawblack.text((4, 62), 'Oder ' + str(round(duration.days / 365,2)) + " Jahre", font = font14, fill = 0)
drawblack.text((4, 78), "Bis du am " + str(ruhestand.strftime("%A %B %d.%m.%Y")), font = font14, fill = 0)
epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRYimage))