From 56ce08d0ff8d5d64950d6b588ebede35a95e0ce2 Mon Sep 17 00:00:00 2001 From: Curtis Adkins Date: Mon, 10 Jun 2019 09:58:14 -0400 Subject: [PATCH] Changing location of json data to pull city name (#752) --- i3pystatus/weather/weathercom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3pystatus/weather/weathercom.py b/i3pystatus/weather/weathercom.py index 60db85b..9043c22 100644 --- a/i3pystatus/weather/weathercom.py +++ b/i3pystatus/weather/weathercom.py @@ -252,7 +252,7 @@ class Weathercom(WeatherBackend): # Again, same technique as above used to get down to the # correct nested dict level. self.city_name = self.city_name[next(iter(self.city_name))] - self.city_name = self.city_name['data']['prsntNm'] + self.city_name = self.city_name['data']['location']['displayName'] except KeyError: self.logger.warning( 'Failed to get city name from API response, falling back '