diff options
author | Starfall <us@starfall.systems> | 2022-11-29 17:36:00 -0600 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2022-11-29 17:36:00 -0600 |
commit | 739fe7fe8a2534a50e7ec6bd9f74db9835eed939 (patch) | |
tree | aa5b455365bb229bf43b56dc80784584164f333b /weather.py | |
parent | 63957d69e4c27e803c50dcc42c1c8e5fe01fc3d2 (diff) |
fix mistake
Diffstat (limited to 'weather.py')
-rwxr-xr-x | weather.py | 6 |
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') |