add weather

This commit is contained in:
2022-05-26 14:45:16 -05:00
parent 8569d17f23
commit dc90143c09
13 changed files with 7476 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ caldav_url = os.getenv('caldav_url')
username = os.getenv('username')
password = os.getenv('password')
cal_id = os.getenv('cal_id')
from .weather import weather
def remove_emoji(string):
import re
@@ -89,5 +90,7 @@ def dashboard():
# r = "<br>".join([event.vobject_instance.vevent.summary.value for event in events_fetched if event.vobject_instance.vevent.dtstart.value < datetime.now()])
return render_template("dashboard.html",
days=days,
today=today)
today=today,
weather=weather()
)