my-weather-indicator stopped working on ubuntu 20.10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
my-weather-indicator |
New
|
Undecided
|
Unassigned |
Bug Description
my-weather-
janw-MS-
<gettext.
#######
System: Linux
Machine: x86_64
Node: janw-MS-7522
Release: 5.8.0-31-generic
Version: #33-Ubuntu SMP Mon Nov 23 18:44:54 UTC 2020
Platform: Linux-5.
My-Weather-
#######
My-Weather-
#######
****** Requesting timezone identificacion
** OWM **
2669772 18.1182 59.446201
****** Requesting timezone identificacion
** OWM **
2688250 18.59506 59.59389
1
***** refreshing weather *****
OK. Internet connection. HTTPConnection: www.google.com
--- Updating data in location 0 ---
****** Updating weather
****** Calculating rawOffset
-------
OpenWeatherMap Weather Service url:http://
-------
Traceback (most recent call last):
File "/opt/extras.
main()
File "/opt/extras.
MWI()
File "/opt/extras.
self.
File "/opt/extras.
self.
File "/opt/extras.
self.
File "/opt/extras.
weather = self.weatherser
File "/opt/extras.
condition = CONDITION[
KeyError: 616
My config file is this:
more my-weather-
{
"24h": true,
"autolocation": false,
"first-time": false,
"icon-light": true,
"latitude": 59.446201,
"latitude2": 59.59389,
"location": "H\u00e4gern\
"location2": "Bergshamra",
"longitude": 18.1182,
"longitude2": 18.59506,
"main-
"onalldeskt
"onalldeskt
"onwidget1h
"onwidget1top": false,
"onwidget2h
"onwidget2top": false,
"pressure": "mb",
"rain": "mm",
"refresh": 1.0,
"second-
"show-
"show-
"show-
"show-
"showintask
"showintask
"skin1": "/opt/extras.
ator/skins/simple",
"skin2": "/opt/extras.
ator/skins/simple",
"snow": "cm",
"temperature": "C",
"version": "0.9.5-
"visibility": "km",
"weather-
"widget1": false,
"widget2": false,
"wind": "km/h",
"wp1-x": 0,
"wp1-y": 0,
"wp2-x": 0,
"wp2-y": 0,
"wu-key": "",
"wwo-key": ""
}
I did some more testing on this. I actually reinstalled the package and then I set latitude2 and longitude2 to 0. And location2 to be blank. That seems to have stopped the crash with that KeyError. And it seems to be working with one location. SO perhaps that Bergshamra location is a problem for openweathermap suddenly. Note I use exactly the same latitude and longitude and location for the only remaining destination. Perhaps openweathermap requires something extra for this suddenly......
This is the modified configuration file:
{ u00e4s" , location" : true, op1": true, op2": true, ide": false, ide": false, location" : false, notifications" : true, notifications2" : true, temperature" : true, temperature2" : true, bar1": false, bar2": false, my-weather- indicator/ skins/little" , my-weather- indicator/ skins/little" , 0extras20. 04.09", service" : "openweathermap",
"24h": true,
"autolocation": false,
"first-time": false,
"http-port": 0,
"http-proxy": "",
"https-port": 0,
"https-proxy": "",
"icon-light": true,
"latitude": 59.446201,
"latitude2": 0,
"location": "H\u00e4gern\
"location2": "",
"longitude": 18.1182,
"longitude2": 0,
"main-
"onalldeskt
"onalldeskt
"onwidget1h
"onwidget1top": false,
"onwidget2h
"onwidget2top": false,
"pressure": "mb",
"rain": "mm",
"refresh": 1.0,
"second-
"show-
"show-
"show-
"show-
"showintask
"showintask
"skin1": "/usr/share/
"skin2": "/usr/share/
"snow": "cm",
"temperature": "C",
"version": "0.9.5-
"visibility": "km",
"weather-
"widget1": false,
"widget2": false,
"wind": "km/h",
"wp1-x": 0,
"wp1-y": 0,
"wp2-x": 0,
"wp2-y": 0,
"wu-key": "",
"wwo-key": ""