emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: nicholas.dokos@hp.com,
	emacs-orgmode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Google weather
Date: Tue, 07 Jun 2011 09:40:37 -0400	[thread overview]
Message-ID: <11641.1307454037@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Carsten Dominik <carsten.dominik@gmail.com> of "Tue, 07 Jun 2011 08:53:11 +0200." <2FDBB154-BCB9-4EB7-ABFD-A13B1A2028C2@gmail.com>

Carsten Dominik <carsten.dominik@gmail.com> wrote:

> Hi everyone,
> 
> I am trying to use the google weather in Org-mode for the first time, =
> but I am always getting a 443 error when I evaluate something like
> 
> (org-google-weather "Amsterdam")
> 
> I am not sure where to look for what might causing this - any pointers =
> would be
> appreciated....
> 

As Ian points out, the https: version of the URL might be causing you
problems. I have this problem from work, where I'm behind the firewall
and the proxy does not seem to be able or willing to forward the
request - it works fine from home. But I would caution everybody that
Google seems to be changing the data they return on a daily basis
nowadays and google-weather cannot keep up. It might be a good idea to
wait a few days for the volatility to die down. See the related thread
"Icon problem with org-google-weather" for a blow-by-blow description
of the fight.

BTW, you can ask google-weather to use the http: protocol by

    (setq google-weather-use-https nil)

Nick

PS Here's a debugging function I wrote to bypass google-weather
altogether and check what Google was sending me. This in combination
with visiting the URLs in a browser, as Ian points out, should be
enough to get you through http/https/SSL/proxy problems:

(defun my-url-retrieve (url)
  (with-current-buffer (url-retrieve-synchronously url)
    (buffer-substring (point-min) (point-max))))

Try

        (my-url-retrieve "http://www.google.com/ig/api?weather=Amsterdam")

and/or the https version of it.

      parent reply	other threads:[~2011-06-07 13:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-07  6:53 Google weather Carsten Dominik
2011-06-07 12:14 ` Ian Barton
2011-06-07 12:19 ` Ian Barton
2011-06-07 13:40 ` Nick Dokos [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11641.1307454037@alphaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).