First pass at Pirates

This commit is contained in:
2026-05-24 23:42:36 +00:00
parent 52cb4a4b46
commit 897f41da72
5 changed files with 37 additions and 30 deletions

View File

@@ -3,6 +3,7 @@ import datetime
import pytz
import asyncio
import google_weather
import mlb
#from getweather import getweather
# create an image
out = Image.new("L", (800, 480),255)
@@ -25,8 +26,8 @@ txt2 = " Current: "+weather["current"] \
+"\n Today's forecast: "+weather["forecast_today"] \
+"\n Tomorrow: "+weather["forecast_tomorrow"]
d.multiline_text((1, 60), txt2, font=fnt, fill=0)
d.multiline_text((1, 135), "-----", font=fnt, fill=0)
d.multiline_text((1, 135), "Pirates:", font=fnt, fill=0)
d.multiline_text((3,160), mlb.get_pirates(), font=fnt, fill=0)
out.save("/mnt/nfs/HomeAutomation/ForHA.jpg","JPEG")
#out.show()