Re: [O] Google-weather.el and the Latest Git Version of Org-mode

2012-09-05 Thread Ian Barton

On 04/09/12 08:54, Ian Barton wrote:

On 31/08/12 14:19, Carson Chittom wrote:

Jude DaShiell  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.&lon=yy.&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.





Re: [O] Google-weather.el and the Latest Git Version of Org-mode

2012-09-04 Thread Ian Barton

On 31/08/12 14:19, Carson Chittom wrote:

Jude DaShiell  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.&lon=yy.&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.


Ian.




Re: [O] Google-weather.el and the Latest Git Version of Org-mode

2012-09-03 Thread Robert Horn
Charles Philip Chan  writes:

> Jude DaShiell  writes:
>
> Hi Jude:
>
>> 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.
>

Followup: 

For world-wide sites, there is http://api.yr.no/weatherapi/documentation

This does not specify limits to geographic coverage and detail, but the
models listed as source include the ECMWF EC.GEO.0.25 which is global.
Forecasts for Norway and surrounding areas use a more accurate local
model.

R Horn
rjh...@alum.mit.edu



Re: [O] Google-weather.el and the Latest Git Version of Org-mode

2012-09-03 Thread Robert Horn
Charles Philip Chan  writes:

> Jude DaShiell  writes:
>
> Hi Jude:
>
>> 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.
>

wunderground.com wants a developer ID and in some situations wants a
paid account.

For US locations, take a look at the NOAA/NWS services.
http://graphical.weather.gov/xml/rest.php is a similar service, freely
available to the public.  Parseing the NDFD response will take a while
to understand, but it's a simple schema and will be a tiny computational
burden.  That page has links to all the relevant documents.

I don't have time to go through all that, but a quick look indicates
that it has all the information that Google was providing.  There will
just be more work involved in organizing it into a tidy little line of
text. 

R Horn
rjh...@alum.mit.edu



Re: [O] Google-weather.el and the Latest Git Version of Org-mode

2012-08-31 Thread Jude DaShiell
I think for individuals wunderground.com is free, but for organizations 
it's a paid arrangement. On Fri, 31 Aug 2012, Nick Dokos wrote:

> Jude DaShiell  wrote:
> 
> > 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.
> > 
> 
> Yup, I believe google gets its weather data from wunderground.com. But
> I don't know if they make their data available for free. Presumably google
> pays them some money for the use.
> 
> Nick
> 
> 
> 

---
jude 
Adobe fiend for failing to Flash





Re: [O] Google-weather.el and the Latest Git Version of Org-mode

2012-08-31 Thread Carson Chittom
Jude DaShiell  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.&lon=yy.&FcastType=dwml






Re: [O] Google-weather.el and the Latest Git Version of Org-mode

2012-08-31 Thread Charles Philip Chan
Jude DaShiell  writes:

Hi Jude:

> 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.

I agree.

Charles

-- 
Dijkstra probably hates me
(Linus Torvalds, in kernel/sched.c)


pgpBlyaxmjS4d.pgp
Description: PGP signature


Re: [O] Google-weather.el and the Latest Git Version of Org-mode

2012-08-31 Thread Nick Dokos
Jude DaShiell  wrote:

> 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.
> 

Yup, I believe google gets its weather data from wunderground.com. But
I don't know if they make their data available for free. Presumably google
pays them some money for the use.

Nick




Re: [O] Google-weather.el and the Latest Git Version of Org-mode

2012-08-31 Thread Jude DaShiell
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.

---
jude 
Adobe fiend for failing to Flash





Re: [O] Google-weather.el and the Latest Git Version of Org-mode

2012-08-30 Thread Charles Philip Chan
Nick Dokos  writes:

Hi Nick:

> BTW, if you visit 
>
>   http://www.google.com/ig
>
> it also says
>
> ,
> | iGoogle will not be available after November 1, 2013. Learn more
> `
>
> So google-weather's days are numbered (420 days or so) even if the
> first problem gets resolved.

OK, thanks for the info. :-(

Cheers.
Charles

-- 
How do I type "for i in *.dvi do xdvi i done" in a GUI?
(Discussion in comp.os.linux.misc on the intuitiveness of interfaces.)


pgpapbDNfjamV.pgp
Description: PGP signature


Re: [O] Google-weather.el and the Latest Git Version of Org-mode

2012-08-30 Thread Charles Philip Chan
Nick Dokos  writes:

Hi Nick:

> When I go to
>
>http://www.google.com/ig/api?weather=Boston&hl=en-GB
>
> Google slaps me and says:
>
> ,
> | Google  
> | Sorry...
> | 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 Google Help for more information.
> | 
> `

You are right, I just looked at the cached files and that is what I
see. :-(

Charles

-- 
"Besides, I think [Slackware] sounds better than 'Microsoft,' don't you?"
(By Patrick Volkerding)


pgpQPv2SKbAUm.pgp
Description: PGP signature


Re: [O] Google-weather.el and the Latest Git Version of Org-mode

2012-08-30 Thread Nick Dokos
Nick Dokos  wrote:

> Charles Philip Chan  wrote:
> 
> > Hello all:
> > 
> > After updating to the latest git version of Org-mode, google weather
> > entries are not showing up in the Agenda buffer any more. Does any one
> > else have the same problem?
> > 
> 
> Yup - I got an error on startup and turned it off. When I turned it back
> on and tried again (possibly after another org update), I got no error
> but no results either. Haven't investigated further.
> 

When I go to

   http://www.google.com/ig/api?weather=Boston&hl=en-GB

Google slaps me and says:

,
| Google
| Sorry...
| 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 Google Help for more information.
| 
`


BTW, if you visit 

  http://www.google.com/ig

it also says

,
| iGoogle will not be available after November 1, 2013. Learn more
`

So google-weather's days are numbered (420 days or so) even if the
first problem gets resolved.

Nick






Re: [O] Google-weather.el and the Latest Git Version of Org-mode

2012-08-30 Thread Charles Philip Chan
Nick Dokos  writes:

Hi Nick:

> Yup - I got an error on startup and turned it off. When I turned it
> back on and tried again (possibly after another org update), I got no
> error but no results either. Haven't investigated further.

Thanks for the confirmation. I know that the weather info is download
and cached judging by the timestamps of the files. They are just not
showing in the Agenda buffer.

Cheers,
Charles

-- 
"Nature abhors a Vacuum"

  -- Brian Behlendorf on OSS (Open Sources, 1999 O'Reilly and Associates)


pgpz0DOfy73Jy.pgp
Description: PGP signature


Re: [O] Google-weather.el and the Latest Git Version of Org-mode

2012-08-30 Thread Nick Dokos
Charles Philip Chan  wrote:

> Hello all:
> 
> After updating to the latest git version of Org-mode, google weather
> entries are not showing up in the Agenda buffer any more. Does any one
> else have the same problem?
> 

Yup - I got an error on startup and turned it off. When I turned it back
on and tried again (possibly after another org update), I got no error
but no results either. Haven't investigated further.

Nick





[O] Google-weather.el and the Latest Git Version of Org-mode

2012-08-30 Thread Charles Philip Chan
Hello all:

After updating to the latest git version of Org-mode, google weather
entries are not showing up in the Agenda buffer any more. Does any one
else have the same problem?

Thanks.

Charles

-- 
"MSDOS didn't get as bad as it is overnight -- it took over ten years
of careful development."
(By dmegg...@aix1.uottawa.ca)


pgpiv2D0bHlwL.pgp
Description: PGP signature