Cannot use API after last update (end of June 2014)

Bug #1338753 reported by JW
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
my-weather-indicator
Fix Released
High
Lorenzo Carbonell

Bug Description

Indicator was working fine with World Weather Online API key activated on multiple computers running both Ubuntu 13.10 and 14.04. After the update the indicator started showing N/A for temperature data. I tried to reactivate World Weather Online and couldn't get it to work, so I switched to Open Weather Map and the temperature data returned. I then signed up for a new Weather Underground API key. After activating the new Weather Underground API key, the indicator crashes and won't start. Starting the indicator from command line I get the following:

#####################################################
LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 13.10
Release: 13.10
Codename: saucy
Version: x86_64
#####################################################

My-Weather-Indicator version: 0.6.8-0extras14.04.5
#####################################################
/home/jwiklund/.config/my-weather-indicator/my-weather-indicator.conf True
****** Requesting timezone identificacion
--- Updating data in location 1 ---
****** Updating weather
****** Calculating rawOffset
********************************************************
********************************************************
05:15 << 15:31 << 20:23
********************************************************
********************************************************
Traceback (most recent call last):
  File "/opt/extras.ubuntu.com/my-weather-indicator/bin/my-weather-indicator", line 50, in <module>
    mwi=MWI()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 135, in __init__
    self.load_preferences()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 368, in load_preferences
    self.work()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 192, in work
    self.set_menu()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/myweatherindicator.py", line 504, in set_menu
    weather = self.weatherservice1.get_weather()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/wundergroundapi.py", line 146, in get_weather
    weather_data = self._get_weather()
  File "/opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/wundergroundapi.py", line 85, in _get_weather
    if weatherservice.is_day_now(weather_data['current_conditions']['sunrise_time_utc'],weather_data['current_conditions']['sunset_time_utc']):
TypeError: is_day_now() missing 1 required positional argument: 'rawOffset'

Changed in my-weather-indicator:
status: New → Confirmed
Changed in my-weather-indicator:
assignee: nobody → Lorenzo Carbonell (lorenzo-carbonell)
importance: Undecided → High
status: Confirmed → Fix Released
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.