'Forecast' is N/A when 'Open Weather Map' is set in Preferences

Bug #1589556 reported by igi
36
This bug affects 8 people
Affects Status Importance Assigned to Milestone
my-weather-indicator
New
Undecided
Unassigned

Bug Description

Occurs after last update in Ubuntu Trusty (0.8.1-0extras16.04.1).

Changing service to Yahoo cleans the issue; changing service back to OWM triggers the issue again at next application startup.

Attached the log: pasting the service url in the browser gives following message:
    "{"cod":401, "message": "Invalid API key. Please see http://openweathermap.org/faq#error401 for more info."}"

Revision history for this message
igi (igor-cali) wrote :
Revision history for this message
cement_head (andorjkiss) wrote :

Also happening in Xenial. Weather service choice doesn't seem to matter - just N/A

Revision history for this message
Dimon2242 (dimon2242) wrote :

Please, fix it!
This indicator the best!

Revision history for this message
Rafael Rodrigues Centeio (rcenteio) wrote :

Here is a workaround:
1) Create an account at openweathermap.org;

2) Sign-in and get you own API key;

3) Find the file "wopenweathermapapi.py" and open it with a file editor (you'll need super user privilege). You can make a backup of this file before editing if you prefer;

4) Find the line that begins with "APPID = ". After the equal sign, you'll find a 31 characters-long key. Replace this key by the one you got at openweathermap.org;

5) Now you just need to restart the application and, if everything else is well configured, it should work properly about 10 minutes after you created your account. (At least it worked for me).

Revision history for this message
Vladimyr (vladimyr) wrote :

this workaround doesn't work and it can't.
actual reason is that the reported weather condition code is not listed in "wopenweathermapapi.py".
example: "weather":[{"id":620,"main":"Snow","description":"light shower snow","icon":"13n"}]
when you add this one (and probably other) new codes to the file, everything works fine.

Revision history for this message
Vladimyr (vladimyr) wrote :

they are: 313, 314, 531, 612, 615, 616, 620, 622, 751, 761, 762, 771, 781.
https://openweathermap.org/weather-conditions

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.