diff options
-rwxr-xr-x | meteor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meteor.py b/meteor.py index 0188f06..4fc5e09 100755 --- a/meteor.py +++ b/meteor.py @@ -57,7 +57,7 @@ def print_alerts(county, zone): def print_forecast(point): # TODO pick up gridId AFC (AER/ALU), AFG, AJK, BOX< CAE, DLH, FSD, HGX, HNX, LIX, LWX, MAF, MFR, MLB, MRX, MTR, PIH and reduce gridX and gridY by 1 - known issue - cache_key = f'{point.get("gridId")}-{point.get("gridX")}-{point.get("gridY")}' + cache_key = f'{point.get("gridId")}-{point.get("gridX")},{point.get("gridY")}' try: print(cache.read(cache_key)) @@ -73,7 +73,7 @@ def print_forecast(point): # 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 - buffer = f'{term.BOLD}forecast for {point.get("relativeLocation").get("city")}, {point.get("relativeLocation").get("state")}' + buffer = f'{term.BOLD}forecast for {point.get("relativeLocation").get("city")}, {point.get("relativeLocation").get("state")} ({cache_key})' buffer += '\n' + f'===================={term.RESET}' periods = forecast.get('periods') # print today and tonight in long format |