I "fixed" this by editing /opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/wopenweathermapapi.py line 263 so that it no longer crashes if the downloaded weather condition is not a known one.
Changed to:
if data['weather'][0]['id'] not in CONDITION.keys():
condition = 'not available'
else:
condition = CONDITION[data['weather'][0]['id']]
You could probably alternatively fix this by adding the missing condition to the list of condition strings (found between lines 44 and 92) by clicking on the "OpenWeatherMap Weather Service url" (eg, in your case http://api.openweathermap.org/data/2.5/weather?id=4985601&appid=4516154e5c8a6494e7e13b550408c863) and looking for the "id" of the first "weather" element and ensuring that there is a corresponding CONDITION entry for that id which reflects the weather condition.
I "fixed" this by editing /opt/extras. ubuntu. com/my- weather- indicator/ share/my- weather- indicator/ wopenweathermap api.py line 263 so that it no longer crashes if the downloaded weather condition is not a known one.
Was: data['weather' ][0]['id' ]]
condition = CONDITION[
Changed to: ][0]['id' ] not in CONDITION.keys(): data['weather' ][0]['id' ]]
if data['weather'
condition = 'not available'
else:
condition = CONDITION[
You could probably alternatively fix this by adding the missing condition to the list of condition strings (found between lines 44 and 92) by clicking on the "OpenWeatherMap Weather Service url" (eg, in your case http:// api.openweather map.org/ data/2. 5/weather? id=4985601& appid=4516154e5 c8a6494e7e13b55 0408c863) and looking for the "id" of the first "weather" element and ensuring that there is a corresponding CONDITION entry for that id which reflects the weather condition.