Forecast Map API Key Required - Not working

Bug #1784016 reported by nilandenterprise
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
my-weather-indicator
New
Undecided
Unassigned

Bug Description

July 27 2018
My Ubuntu is Version 14.04.5 with Metacity desktop on Gnome flashback/fallback. Version '0.9.0-0extras17.10.4' of the my-weather-indicator. The old versions in 'Synaptic package manager' or 'Software Center' DO NOT work at all.

Bug # 1589556 suggests registering/subscribing to an Openweather API key,[https://openweathermap.org//api_keys].
I tried the fix not only on the 'wopenweathermapapi.py' but also 'worldweatheronlineapi.py', but the error continues!
The city Map for the Forecast page works, but no weather in apparent and if the cycle map is selected the Map disappears and "API key Required" is printed on the page. I have waited for any delays (several days) for the API Key to activate. The other 3 options to get the weather are no better and are more cumbersome to use. So I have not idea why the "Bug # 1589556" worked for some one else and not myself?

Also the default key included with the package is defunct! according to OpenWeather support from over use as there API key can only be used every 10 seconds without be banded. I would like to suggest as part of the setup that the API key be an Entry field on the preferences setup, since any API key would be naturally over Used!

If there are any Log files I can't find them in /var/logs/ Directory, so not included today for consumption.

The Construct for the use of the API key Variables and statements is beyond my Ability (I wasted 20K at university to learn programming, but Discovered I hate it), so I will leave this to others! I can see what is trying to do, but however have no clue?

###This included default key is out of scope!!!###
<code>
APPID = '5aa718e771170840121008'

OWMURL = 'http://api.openweathermap.org/data/2.5'
URL_FIND_CITY = OWMURL + '/find?lat=%s&lon=%s&cnt=1&appid='+APPID
URL_CURRENT_CITY_ID = OWMURL + '/weather?id=%s&appid='+APPID
URL_FORECAST_CITY_ID = OWMURL + '/forecast/daily?id=%s&cnt=7&\
mode=json&appid='+APPID
URL_HOURLY_CITY_ID = OWMURL + '/forecast?id=%s&appid='+APPID
URL_CURRENT_CITY_LL = OWMURL + '/weather?lat=%s&lon=%s&appid='+APPID
URL_FORECAST_CITY_LL = OWMURL + '/forecast/daily?lat=%s&lon=%s&appid='+APPID
URL_HOURLY_CITY_LL = OWMURL + '/forecast?lat=%s&lon=%s&appid='+APPID
</code>

 Thanks James N

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.