This commit is contained in:
Borzutzki Robert 2024-11-25 23:12:47 +01:00
parent addd26004c
commit 99c0ab9705

View File

@ -69,7 +69,8 @@ def init_monitor():
drawblack.text((4, 28), 'Oder ' + str(round(duration.days / 30,2)) + " Monate", font = font14, fill = 0) drawblack.text((4, 28), 'Oder ' + str(round(duration.days / 30,2)) + " Monate", font = font14, fill = 0)
drawblack.text((4, 43), 'Oder ' + str(duration.days * 24) + " Stunden", font = font14, fill = 0) drawblack.text((4, 43), 'Oder ' + str(duration.days * 24) + " Stunden", font = font14, fill = 0)
drawblack.text((4, 58), 'Oder ' + str(round(duration.days / 365,2)) + " Jahre", font = font14, fill = 0) drawblack.text((4, 58), 'Oder ' + str(round(duration.days / 365,2)) + " Jahre", font = font14, fill = 0)
drawblack.text((4, 73), "Bis du am " + str(ruhestand.strftime("%A %B %d.%m.%Y")), font = font14, fill = 0) drawblack.text((4, 73), "Bis du am: " + str(ruhestand.strftime("%A %B %d.%m.%Y")), font = font14, fill = 0)
drawblack.text((4, 88), str(ruhestand.strftime("%A %B %d.%m.%Y")) + " in den Ruhestand gehen!", font = font14, fill = 0)
epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRYimage)) epd.display(epd.getbuffer(HBlackimage), epd.getbuffer(HRYimage))