#!/usr/bin/env python3
+# © Copyright 2021-2022, Scott Gasch
+
+"""How's the weather going to be tomorrow?"""
+
import datetime
import logging
import os
last_dt = now
dt = now
for (day, txt) in zip(
- forecast.find_all('b'), forecast.find_all(class_='col-sm-10 forecast-text')
+ forecast.find_all('b'),
+ forecast.find_all(class_='col-sm-10 forecast-text'),
):
last_dt = dt
try:
assert dt is not None
# Compute sunrise/sunset times on dt.
- city = astral.LocationInfo(
- "Bellevue", "USA", "US/Pacific", 47.653, -122.171
- )
+ city = astral.LocationInfo("Bellevue", "USA", "US/Pacific", 47.653, -122.171)
s = sun(city.observer, date=dt, tzinfo=pytz.timezone("US/Pacific"))
sunrise = s['sunrise']
sunset = s['sunset']