From 307446e5962d808f54872e440b95edafe36a7b36 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 6 Jun 2019 16:15:04 +0200 Subject: [PATCH] + weather header --- ungleich_weather.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ungleich_weather.py b/ungleich_weather.py index 5333f2c..0cb073e 100644 --- a/ungleich_weather.py +++ b/ungleich_weather.py @@ -23,6 +23,7 @@ class ungleichWeather(object): def forecast_weather(args): _city, _country_code = get_loc() + print("Weather for {}\n".format(_city)) client = ApixuClient("cc33a1e3237a4b78b3174104190206") @@ -30,4 +31,4 @@ class ungleichWeather(object): print(f"{'Date':^12}|{'Min Temp':^10}|{'Max Temp':^10}|{'Condition':^15}") print(f"{'*'*47:^47}") for day in forecast['forecast']['forecastday']: - print(f"{day['date']:^12}|{day['day']['mintemp_c']:^10}|{day['day']['maxtemp_c']:^10}|{day['day']['condition']['text']:^15}") \ No newline at end of file + print(f"{day['date']:^12}|{day['day']['mintemp_c']:^10}|{day['day']['maxtemp_c']:^10}|{day['day']['condition']['text']:^15}")