about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xweather.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/weather.py b/weather.py
index 638d14d..2f769e6 100755
--- a/weather.py
+++ b/weather.py
@@ -66,7 +66,7 @@ def print_forecast(forecast_url):
     # but there's also relativeHumidity, apparentTemperature (and, separately, windChill), skyCover, windGust
     # downside, it appears to always convert the F/mph measurements into C/kph for no reason. e.g. all temps are measured in 9ths of C
 
-    print(f'{term.BOLD}Forecast}')
+    print(f'{term.BOLD}forecast')
     print(f'===================={term.RESET}')
     for period in forecast.get('periods'):
         # TODO parse isDaytime true/false to squish a day together
@@ -84,6 +84,10 @@ def main():
     zone = point.get('forecastZone').split('/')[-1]
     print_alerts(county, zone)
 
+    # TODO pick out location name from somewhere.
+    # city and state hide in point.relativeLocation.properties.city (and state)
+    # getting the county or zone's `name (id) state` is good too
+
     # TODO can hazardous weather outlook be gotten programatically?
 
     forecast_url = point.get('forecast')