master
Lukas Schulz 2020-12-20 21:31:38 +01:00
parent 23f0b15109
commit 8cad8faae1
1 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ token = None #oauth2.SpotifyOAuth(username, scope, client_id, client_secret, red
#token = util.prompt_for_user_token(username, scope, client_id, client_secret, redirect_uri)
font = ImageFont.load_default()
clock_font = ImageFont.truetype(font='BebasNeue_Regular_1.otf', size=20)
clock_font = ImageFont.truetype(font='BebasNeue_Regular_1.otf', size=40)
def get_track():
@ -220,10 +220,10 @@ def main():
def drawClock():
while True:
time.sleep(0.4)
#time.sleep(0.4)
canvas = Image.new('RGB', (128,64), color = 'black')
clock_text = ImageDraw.Draw(canvas)
clock_text.text((20,0), datetime.now().strftime("%H:%M:%S"), font = clock_font, align = "center")
clock_text.text((0,20), datetime.now().strftime("%H:%M:%S"), font = clock_font, align = "center")
showImage(canvas, 32, 0)