diff --git a/inky-lovelace.py b/inky-lovelace.py index 5526be2..0e25c40 100644 --- a/inky-lovelace.py +++ b/inky-lovelace.py @@ -53,8 +53,10 @@ def display_image(j, filename): # write the date/time at the top year, month, day, hour, minute, second, dow, _ = time.localtime(time.time() + tz_seconds) - graphics.text(f"{hour:02}:{minute:02} {year}-{month}-{day}", 1, 0) graphics.set_pen(0) + graphics.set_font('sans') + # display.text(text, x, y, wordwrap, scale, angle, spacing) + graphics.text(f"{hour:02}:{minute:02} {year}-{month}-{day}", 230, 10, scale=0.5) def show_error(text,y): WIDTH = 600