yes.
This commit is contained in:
parent
6c8d34a125
commit
d5ce18db05
1 changed files with 3 additions and 3 deletions
6
main.py
6
main.py
|
@ -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=45)
|
||||
clock_font = ImageFont.truetype(font='BebasNeue_Regular_1.otf', size=60)
|
||||
|
||||
|
||||
def get_track():
|
||||
|
@ -220,10 +220,10 @@ def main():
|
|||
|
||||
def drawClock():
|
||||
while True:
|
||||
time.sleep(0.6)
|
||||
time.sleep(20)
|
||||
canvas = Image.new('RGB', (128,64), color = 'black')
|
||||
clock_text = ImageDraw.Draw(canvas)
|
||||
clock_text.text((0,20), datetime.now().strftime("%H:%M:%S"), font = clock_font, align = "center")
|
||||
clock_text.text((0,0), datetime.now().strftime("%H:%M"), font = clock_font, align = "center")
|
||||
showImage(canvas, 32, 0)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue