Can't launch it when weatherUnderground selected

Bug #1646728 reported by Felipe Castillo
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
my-weather-indicator
New
Undecided
Unassigned
Ubuntu
Confirmed
Undecided
Unassigned

Bug Description

It was working without problems until I switched to weather underground. It simply won't start. After running from terminal this is the output and it seems weather underground is to blame.
I have replaced my API key on the code for privacy, but trust me that the right key is shown on the output. I'm attaching the response I receive when using my API key.

<gettext.GNUTranslations object at 0x7fac23053d30>
#####################################################
System: Linux
Machine: x86_64
Node: felipe-desktop
Release: 4.4.0-51-generic
Version: #72-Ubuntu SMP Thu Nov 24 18:29:54 UTC 2016
Platform: Linux-4.4.0-51-generic-x86_64-with-Ubuntu-16.04-xenial
My-Weather-Indicator version: 0.8.1-0extras16.04.1
#####################################################

****** Requesting timezone identificacion
1
***** refreshing weather *****
<urlopen error unknown url type: https>
--- Updating data in location 0 ---
****** Updating weather
****** Calculating rawOffset
-------------------------------------------------------
-------------------------------------------------------
Underground Weather Service url: http://api.wunderground.com/api/xxxxxxxxxxxxxxxx/conditions/forecast/lang:EN/pws:1/q/49.2067004,-122.9108977.json
-------------------------------------------------------
-------------------------------------------------------
Traceback (most recent call last):
  File "./my-weather-indicator", line 69, in <module>
    mwi = MWI()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 143, in __init__
    self.load_preferences()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 369, in load_preferences
    self.update_weather()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 158, in update_weather
    self.update_menu(i)
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 682, in update_menu
    weather = self.weatherservices[index].get_weather()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/wundergroundapi.py", line 225, in get_weather
    weather_data = self._get_weather()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/wundergroundapi.py", line 165, in _get_weather
    gvff('low', i, parsed_json)['fahrenheit'],
TypeError: string indices must be integers

Revision history for this message
Felipe Castillo (fcastillo.ec) wrote :
Revision history for this message
pemartins (paulo76-algarve) wrote :

I have exactly the same issue. I've tried uninstalling and installing again but there's no way I can execute the app, it always crashes just and mentioned above.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu:
status: New → Confirmed
Revision history for this message
iPadGuy (ipad-guy-100) wrote :

I have exactly the same issue. It has been working fine for months, and then a couple of days ago, this error popped-up.

Revision history for this message
mchid (mchid) wrote :

I also have the exact same issue. I have been using my Weather Underground api key for years and this problem just started happening in March of 2019.

I checked the URL in the output of my terminal in my browser and the json page said: "key not found".

According to Weather Underground at: https://www.wunderground.com/weather/api/

"To improve our services and enhance our relationship with our users, **we will no longer provide free weather API keys as part of our program.** If you have been directed to download our Weather Underground free API key by a third party provider, please contact your vendor for resolution."

According to: https://apicommunity.wunderground.com/weatherapi/topics/end-of-service-for-the-weather-underground-api

If you are currently operating a PWS and uploading data, you can get a new API key for free. If you do not operate a PWS that uploads data, then you have to pay for a new key and free keys are no longer available to developers and users.

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.