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}")