My Weather Indicator won't activate World Weather Online
Bug #1595533 reported by
Mitch Claborn
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
my-weather-indicator |
New
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 16.04
my-weather-
Installed: 0.8.1-0extras16
When attempting to activate the Word Weather Online service, there is no response in the UI.
The log shows this error:
Error accessing url: 403
To post a comment you must log in.
Hi,
When trying to use World Weather Online service, looks like my-weather- indicator first tries to request timezone identification :
****** Requesting timezone identificacion
==== **** ====
Error accessing url: 403
==== **** ====
After a quick look into share/my- weather- indicator/ geocodeapi. py, I found the following :
json_response = read_json_from_url( api.geonames. org/timezoneJSO N?lat=\
%s& lng=%s& username= atareao' % (lat, lon)) keys(): 'timezoneId' ]
print( 'Error requesting timezone identification: %s' % (str(e)))
def get_timezoneId(lat, lon):
print('****** Requesting timezone identificacion')
try:
'http://
if json_response and 'timezoneId' in json_response.
return json_response[
except Exception as e:
return 'Europe/London'
I went manually visit http:// api.geonames. org and it does request authentication.
According to geocodeapi.py, the username should be atareao, but I can't find the password. Is it expected ?
I think the main problem comes from here, because 403 returned is not handled