From 739fe7fe8a2534a50e7ec6bd9f74db9835eed939 Mon Sep 17 00:00:00 2001 From: Starfall Date: Tue, 29 Nov 2022 17:36:00 -0600 Subject: fix mistake --- weather.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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') -- cgit