2012-03-11 19:30:09 |
Tomasz Maciejewski |
description |
I had problems for a while with the weather for some Polish cities (especially Wrocław). After looking into the source I discovered that the indicator didn't receive any data:
[Fetcher] 2012-03-04 12:32:07,141 - ERROR - Weather: could not get weather icon from report
[Fetcher] 2012-03-04 12:32:07,141 - ERROR - Weather: got data '{}'
[Fetcher] 2012-03-04 12:32:07,141 - ERROR - ExtendedForecast: unknown Google weather condition ''
I could fix that by changing the location_id sent to the Google to the very label displayed in the menu. The fix is one-line change:
443c443
< self.location_details[loc_ids[valid_source]],
---
> self.location_details['label'],
This worked like charm. |
I had problems for a while with the weather for some Polish cities (especially Wrocław). After looking into the log I discovered that the indicator didn't receive any data:
[Fetcher] 2012-03-04 12:32:07,141 - ERROR - Weather: could not get weather icon from report
[Fetcher] 2012-03-04 12:32:07,141 - ERROR - Weather: got data '{}'
[Fetcher] 2012-03-04 12:32:07,141 - ERROR - ExtendedForecast: unknown Google weather condition ''
I could fix that by changing the location_id sent to the Google to the very label displayed in the menu. The fix is one-line change:
443c443
< self.location_details[loc_ids[valid_source]],
---
> self.location_details['label'],
This worked like charm. |
|