From: Ian Barton <lists@wilkesley.net>
To: emacs-orgmode@gnu.org
Subject: Re: Google-weather.el and the Latest Git Version of Org-mode
Date: Wed, 05 Sep 2012 08:37:29 +0100 [thread overview]
Message-ID: <50470139.7010106@wilkesley.net> (raw)
In-Reply-To: <5045B3B4.2020804@wilkesley.net>
On 04/09/12 08:54, Ian Barton wrote:
> On 31/08/12 14:19, Carson Chittom wrote:
>> Jude DaShiell <jdashiel@shellworld.net> writes:
>>
>>> It might be near time to investigate wunderground.com and loose
>>> google for
>>> weather before igoogle disappears. Other weather sites capable of text
>>> output may also be available, I haven't investigated that yet.
>>
>> For those in the US, the National Weather Service has forecasts
>> available in XML, which could be parsed, requestable via latitude and
>> longitude. I haven't done anything with that other than noting its
>> existence. URL seems to be
>> http://forecast.weather.gov/MapClick.php?lat=xx.xxxx&lon=yy.yyyy&FcastType=dwml
>>
>>
>>
>>
>>
> There is also Yahoo, which uses The Weather Channel. Their official
> interface is documented at http://developer.yahoo.com/weather/ This
> returns a three day forecast. However, there is an undocumented
> interface that returns a five day forecast. See
> http://xml.weather.yahoo.com/forecastrss/UKXX0718_c.xml for an example
> forecast.
>
> I have a python script that uses the undocumented interface, which I'll
> put on Github when I have tidied it up a bit. It doesn't look too hard
> to adapt the current googleweather.el script to use Yahoo.
>
I have pushed my python script to
https://github.com/geekinthesticks/python-yahoo-weather
This shows how to retrieve the five day forecast from Yahoo, with an
example XML page of the results returned by Yahoo. As an added benefit
Yahoo also returns the lat, long, sunrise and sunset data. For people in
the UK, there is a complete list of all location codes for towns and cities.
I have also included a copy of Julien Danjou's original library for
Google in the repo. As a first step I renamed all occurrences of Google
to Yahoo. Other than that it doesn't do anything useful yet.
Since my elisp skills are very limited, if anyone else wants to hack on
this too, I would be more than happy to merge your changes.
Ian.
next prev parent reply other threads:[~2012-09-05 7:40 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-31 1:30 Google-weather.el and the Latest Git Version of Org-mode Charles Philip Chan
2012-08-31 5:01 ` Nick Dokos
2012-08-31 5:21 ` Nick Dokos
2012-08-31 5:50 ` Charles Philip Chan
2012-08-31 6:07 ` Charles Philip Chan
2012-08-31 7:01 ` Jude DaShiell
2012-08-31 7:05 ` Nick Dokos
2012-08-31 21:19 ` Jude DaShiell
2012-08-31 7:12 ` Charles Philip Chan
2012-09-03 14:31 ` Robert Horn
2012-09-03 14:47 ` Robert Horn
2012-08-31 13:19 ` Carson Chittom
2012-09-04 7:54 ` Ian Barton
2012-09-05 7:37 ` Ian Barton [this message]
2012-08-31 5:24 ` Charles Philip Chan
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=50470139.7010106@wilkesley.net \
--to=lists@wilkesley.net \
--cc=emacs-orgmode@gnu.org \
--cc=ian@manor-farm.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).