For quite some time now the indicator-weather applet in Ubuntu has been unable to do a Forecast. When I do it I get: "Forecast information cannot be fetched. Connection cannot be established".
I noticed that indicator-weather was written in Python and I decided to see what all the fuss was about Python (I'm a huge Perl guy but never saw a good reason to learn Python). I wanted to specifically learn the debugger so I said "Hey indicator-weather has this bug - let's see if I can debug it).
At around line 472 of indicator-weather.py it makes the following call:
self.forecast = pywapi.get_weather_from_google (location_name, hl = self.locale)
And I see in pywapi.py that it's using the GOOGLE_WEATHER_URL of http://www.google.com/ig/api?weather=%s&hl=%s. The %s's are filled in with ",,,32847270,-117274204" and "en". This call fails. If I use a browser to go to that URL with the %s's filled in I get:
We're sorry...
... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.
Google Help for more information
And going to the Google Help page talks about captcha's and the like. Is this just plain broken now?
Bookmarks