First pass at Pirates
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user