Forecast cannot be fetched. Connection cannot be established. Weather Indicator Questions Question #207013Forecast cannot be fetched. Connection cannot be established.

Asked by Henri

As Question #207013, I can't have weather forecast. I upgrade weather-indicator to cloudy 10.
Do you have an explanation
Thank you in advance
regards

Question information

Language:
English Edit question
Status:
Expired
For:
Weather Indicator Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Richard Mann (richard-mann) said :
#1

Weather Indicator 11.11.28 'Cloudy 9'

I was running into the error "Forecast information cannot be fetched. Connection cannot be established." but observed the network traffic with Wireshark. I show the weather utility tries to make an HTTP connection to Google (regardless of whether "Yahoo" or "Google" is selected in the settings), but Google comes back with this:

"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. See http://www.google.com/support/bin/answer.py?answer=86640 Google Help for more information"

The URL it had been trying to get to was http://www.google.com/ig/api?weather=,,,40110588,-88207270&hl=en , which would be an "iGoogle" page or applet (and BTW when you go to iGoogle at http://google.com/ig , it cautions the service will be shut down November 1st, 2013).

So IMO it's not so much that Indicator-Weather is broken, but it needs a different query source.

Rich

Revision history for this message
samuel (sam-simplicitycomputers) said :
#2

I'm also affected by this, same error message.

Revision history for this message
Bob (bbrazie) said :
#3

Me too in Ubuntu 12.04

Revision history for this message
Chris (kyfho23) said :
#4

Regrettably, it seems the package isn't being maintained any more. Hope someone with the coding skills I lack takes it over, as Unity needs a weather indicator applet.

Revision history for this message
Bob (bbrazie) said :
#5

I hope so too.........

Revision history for this message
Alchera (barrysuridge) said :
#6

Check-out Stormcloud on omgubuntu.co.uk

Revision history for this message
Joshua Tasker (jtasker) said :
#7

I rewrote this so the forecast works, but a) it can't use stock pywapi anymore, and b) I'm not sure where to post my changes.

Ideally I would want to publish the pywapi changes and the indicator-weather changes. How should I go about doing that?

Revision history for this message
Vadim Rutkovsky (roignac) said :
#8

Please post a merge request to weather indicator branch. On pywapi changes - please contact pywapi ubuntu maintaner or developers

Revision history for this message
Joshua Tasker (jtasker) said :
#9

If anyone stumbles across this, I made a PPA with my changes to Weather-Indicator:
https://code.launchpad.net/~jtasker/+archive/weather-indicator

It also has a link to the new version of pywapi, available both as source and as .deb packages.

Hope somebody finds this helpful!

Revision history for this message
Gene Bray (genebray) said :
#10

Joshua, found you post of 2013-4-9 indicating a fix to the weather forecast problem caused by Google shutting down it weather api/portal. Installed it and it works from the Ubuntu 12.04 desktop (i386) on my computer. Starting from the command line I did get one warning:

gbray@C2U:~$ indicator-weather
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed import gobject._gobject

First, thank you for the fix. Secondly, not a python programmer but will download and look at the code. Was willing to try and help but my programming skills have aged a lot after 40+ years of not using them much. (Doubt there is much Cobol, Fortran IV or V, or IBM 360 Assembly Programming going on now days. Seems that replacing Google with NOAA or one of the other entities that provides weather and forecast info would be helpful for the project. My stumble around on my own to see if I can do anything productive to help.

Third, before finding your post, I was going to ask why no fix? Is/was there a problem with using Yahoo for forecast weather? Or, just a lack of resources/time to fix the issue? If any of these questions are still pertainent I would appreciate your answer.

I can be reached at <email address hidden> for a reply directly to me, if you prefer that.

Again thanks for the fix. I have missed the forecast information ever since Google stopped their service.

gene

Revision history for this message
Joshua Tasker (jtasker) said :
#11

Gene:
What version of Gtk do you have installed?
Also, do you have the following packages installed?
gir1.2-glib-2.0, python-gi

Revision history for this message
Gene Bray (genebray) said :
#12

Synaptic shows gtk2-engines v. 1:2.20.2-2ubuntu1, gtk2-engines-murrine v. 0.98.2-ubuntu2, and gtk3-engines-unico v. 1.0.2+r+139-0ubuntu2 when I filter on "gtk".

Filtering on "gir1.2-glib" shows gir1.2-glib-2.0 installed and it is version 1.33.14-1

python-gi is installed and is version 3.4.0-1ubuntu0.1

Revision history for this message
Joshua Tasker (jtasker) said :
#13

Gene, since Weather Indicator was updated to use gtk3, you need to install libgtk-3-bin; it should have required you to install it when you installed the package, but I don't know if the dependencies were set correctly.

Revision history for this message
Gene Bray (genebray) said :
#14

libgtk-3-bin is installed. Version 3.6.0-0ubuntu3.2

Revision history for this message
Joshua Tasker (jtasker) said :
#15

What version of Weather Indicator are you running? I believe the issue you are experiencing has been fixed in the latest release; the deb package is scheduled to be built in 5 hours from the time of this post -- please check the Weather Indicator Team PPA for the newest version (13.05.17 'Rainy') and let me know if you still experience the problem.

Thanks,
Joshua

Revision history for this message
Gene Bray (genebray) said :
#16

I was using the version located at https://code.launchpad.net/~jtasker/+archive/weather-indicator. However, this is no longer available. Will try the 13.05.17 version. While using the version located at the link, the forecast was working.

Revision history for this message
Gene Bray (genebray) said :
#17

Installed the new version. Took a few minutes to get the proper python-pywapi installed first. New weather indicator installed an appears to be working. Will post if I see any issues. Forecast does work. Thank you.

Revision history for this message
Launchpad Janitor (janitor) said :
#18

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.