such a pain too.. enjoy my weather forecast and coffee in the morning(now I use
HTC weather for android instead).. looks like there is an API change..:
gps
http://developer.yahoo.com/maps/rest/V1/geocode.html
forecast
http://developer.yahoo.com/weather/
code looks to be in
bin/indicator-weather @@331
# Get YAHOO WOEID by english name of location
baseurl = 'http://where.yahooapis.com/geocode?[location]'
params = {'location': displayed_city_name, 'appid': 'mOawLd4s',
'flags': 'J'}
url = '?'.join((baseurl, urlencode(params)))
log.debug("Location: Get Yahoo WOEID, url %s" % url)
f = urllib2.urlopen(url)
s=f.read()
null = None
not sure if its a simple address change or a whole rewrite..
let me know!
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to indicator-weather in Ubuntu.
https://bugs.launchpad.net/bugs/1048193
Title:
"Forecast Information Cannot be fetched. Connection cannot be
established"
Status in “indicator-weather” package in Ubuntu:
Fix Committed
Bug description:
For days the weather bug Forecast button's usefullness has been
replaced with this error message "Forecast Information Cannot be
fetched. Connection cannot be established" I've tried both the google
and Yahoo option and neither works.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: indicator-weather 11.11.28-0ubuntu1.2
ProcVersionSignature: Ubuntu 3.2.0-30.48-generic 3.2.27
Uname: Linux 3.2.0-30-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu12
Architecture: amd64
Date: Sun Sep 9 07:09:32 2012
ExecutablePath: /usr/bin/indicator-weather
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64
(20120425)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
SourcePackage: indicator-weather
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/indicator-weather/+bug/1048193/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp