emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Agenda and weather forecast
@ 2010-09-09  6:19 Julien Danjou
  2010-09-09  9:05 ` Simon Guest
                   ` (12 more replies)
  0 siblings, 13 replies; 37+ messages in thread
From: Julien Danjou @ 2010-09-09  6:19 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 418 bytes --]

Hi folks,

If anybody is interested, I've wrote an small extension to put some
weather forecasts in the agenda.

It can be found here[1]. I've blogged about it yesterday, so if you're
curious you can read the entry[2].

Happy hacking,

[1]  http://julien.danjou.info/google-weather-el.html
[2]  http://julien.danjou.info/blog/

-- 
Julien Danjou
// ᐰ <julien@danjou.info>   http://julien.danjou.info

[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-09  6:19 Agenda and weather forecast Julien Danjou
@ 2010-09-09  9:05 ` Simon Guest
  2010-09-09 13:30   ` George McNinch
  2010-09-09  9:37 ` Sven Bretfeld
                   ` (11 subsequent siblings)
  12 siblings, 1 reply; 37+ messages in thread
From: Simon Guest @ 2010-09-09  9:05 UTC (permalink / raw)
  To: Julien Danjou; +Cc: emacs-org list

At Thu, 09 Sep 2010 08:19:17 +0200,
Julien Danjou wrote:
> If anybody is interested, I've wrote an small extension to put some
> weather forecasts in the agenda.

Hi Julien,

This looks really cool.

I downloaded google-weather-el-236b269, and stuck 
%%(org-google-weather)
at the top of one of my org files, but when building the agenda, Emacs
complains, after contacting host www.google.com:80, 
bad sexp at line 1 in /home/sjg/share/notes/journal.org: (org-google-weather)

I tried calling directly
(google-weather-get-data "New York")
but I just get

Contacting host: www.google.com:80
Reading 453 bytes...
save-current-buffer: Search failed: "

"

It's not leaving anything around in a buffer for me to see what data
it did or didn't fetch.

Any suggestions?

cheers,
Simon

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-09  6:19 Agenda and weather forecast Julien Danjou
  2010-09-09  9:05 ` Simon Guest
@ 2010-09-09  9:37 ` Sven Bretfeld
  2010-09-09 11:22   ` Agenda and weather forecast | language and units Juan Pechiar
  2010-09-09 14:03   ` Agenda and weather forecast Julien Danjou
  2010-09-09 11:35 ` Agenda and weather forecast | alternative icon set Juan
                   ` (10 subsequent siblings)
  12 siblings, 2 replies; 37+ messages in thread
From: Sven Bretfeld @ 2010-09-09  9:37 UTC (permalink / raw)
  To: Julien Danjou; +Cc: emacs-orgmode

Hi Julien

Julien Danjou <julien@danjou.info> writes:

> If anybody is interested, I've wrote an small extension to put some
> weather forecasts in the agenda.
>
> It can be found here[1]. I've blogged about it yesterday, so if you're
> curious you can read the entry[2].

Wonderful. Works out of the box and looks nice. 

I had °F at first instead of °C what I would prefer. I'm in Germany;
adding ("DE" . "°C") in the customization of "Google Weather Unit System
Temperature Assoc" didn't help. In the screenshot I noticed that you
have a string "en-gb" which is not documented. Sounds like
"English-GB", although you are in Paris. I also added this string, and I
have °C now. Is that the correct way?

BTW, which color-theme are you using? Is it zenburn? Looks nice and
clean. 

Thanks for org-google-weather,

Sven

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast | language and units
  2010-09-09  9:37 ` Sven Bretfeld
@ 2010-09-09 11:22   ` Juan Pechiar
  2010-09-09 12:15     ` Sven Bretfeld
  2010-09-09 14:52     ` Rafael
  2010-09-09 14:03   ` Agenda and weather forecast Julien Danjou
  1 sibling, 2 replies; 37+ messages in thread
From: Juan Pechiar @ 2010-09-09 11:22 UTC (permalink / raw)
  To: Sven Bretfeld; +Cc: Julien Danjou, emacs-orgmode

Hi,

The google API determines the unit system (C or F) based on the
language parameter (smart guys?!).

Ths parameter goes after the city in the call to org-google-weather:

E.g. %%(org-google-weather "Montevideo,Uruguay" "es")

This extension is magic!

Regards,
.j.

P.S. Cannot install into Notepad.exe   :-)

On Thu, Sep 09, 2010 at 11:37:39AM +0200, Sven Bretfeld wrote:
> I had °F at first instead of °C what I would prefer. I'm in Germany;
> adding ("DE" . "°C") in the customization of "Google Weather Unit System
> Temperature Assoc" didn't help. In the screenshot I noticed that you
> have a string "en-gb" which is not documented. Sounds like
> "English-GB", although you are in Paris. I also added this string, and I
> have °C now. Is that the correct way?

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast | alternative icon set
  2010-09-09  6:19 Agenda and weather forecast Julien Danjou
  2010-09-09  9:05 ` Simon Guest
  2010-09-09  9:37 ` Sven Bretfeld
@ 2010-09-09 11:35 ` Juan
  2010-09-09 12:06 ` Agenda and weather forecast d.tchin
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 37+ messages in thread
From: Juan @ 2010-09-09 11:35 UTC (permalink / raw)
  To: Julien Danjou; +Cc: emacs-orgmode

On Thu, Sep 09, 2010 at 08:19:17AM +0200, Julien Danjou wrote:
> If anybody is interested, I've wrote an small extension to put some
> weather forecasts in the agenda.

For those not on a linux/gnome system, you can get an icon set from
google.

Ref: post at
http://www.google.com/support/forum/p/apps-apis/thread?tid=718560d8c2c913ff&hl=en

To get all icons:

----------------------------------------
curl -O http://www.google.ru/ig/images/weather/sunny.gif
curl -O http://www.google.ru/ig/images/weather/mostly_sunny.gif
curl -O http://www.google.ru/ig/images/weather/partly_cloudy.gif
curl -O http://www.google.ru/ig/images/weather/mostly_cloudy.gif
curl -O http://www.google.ru/ig/images/weather/chance_of_storm.gif
curl -O http://www.google.ru/ig/images/weather/rain.gif
curl -O http://www.google.ru/ig/images/weather/chance_of_rain.gif
curl -O http://www.google.ru/ig/images/weather/chance_of_snow.gif
curl -O http://www.google.ru/ig/images/weather/cloudy.gif
curl -O http://www.google.ru/ig/images/weather/mist.gif
curl -O http://www.google.ru/ig/images/weather/storm.gif
curl -O http://www.google.ru/ig/images/weather/thunderstorm.gif
curl -O http://www.google.ru/ig/images/weather/chance_of_tstorm.gif
curl -O http://www.google.ru/ig/images/weather/sleet.gif
curl -O http://www.google.ru/ig/images/weather/snow.gif
curl -O http://www.google.ru/ig/images/weather/icy.gif
curl -O http://www.google.ru/ig/images/weather/dust.gif
curl -O http://www.google.ru/ig/images/weather/fog.gif
curl -O http://www.google.ru/ig/images/weather/smoke.gif
curl -O http://www.google.ru/ig/images/weather/haze.gif
curl -O http://www.google.ru/ig/images/weather/flurries.gif
----------------------------------------

And the icon customization:

 '(org-google-weather-icon-alist (quote ((chance_of_rain .
 "chance_of_rain.gif") (chance_of_snow . "chance_of_snow.gif")
 (chance_of_storm . "chance_of_storm.gif") (cloudy . "cloudy.gif")
 (dust . "dust.gif") (flurries . "flurries.gif") (fog . "fog.gif")
 (haze . "haze.gif") (icy . "icy.gif") (mist . "mist.gif")
 (mostly_cloudy . "mostly_cloudy.gif") (mostly_sunny .
 "mostly_sunny.gif") (partly_cloudy . "partly_cloudy.gif") (rain .
 "rain.gif") (sleet . "sleet.gif") (smoke . "smoke.gif") (snow .
 "snow.gif") (storm . "storm.gif") (thunderstorm . "thunderstorm.gif")
 (sunny . "sunny.gif"))))

 '(org-google-weather-icon-directory "/wherever/you/saved/those")


Regards,
.j.

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-09  6:19 Agenda and weather forecast Julien Danjou
                   ` (2 preceding siblings ...)
  2010-09-09 11:35 ` Agenda and weather forecast | alternative icon set Juan
@ 2010-09-09 12:06 ` d.tchin
  2010-09-09 12:20   ` Sven Bretfeld
                     ` (3 more replies)
  2010-09-09 12:52 ` Richard Riley
                   ` (8 subsequent siblings)
  12 siblings, 4 replies; 37+ messages in thread
From: d.tchin @ 2010-09-09 12:06 UTC (permalink / raw)
  To: emacs-orgmode

Julien Danjou <julien <at> danjou.info> writes:

> 
> Hi folks,
> 
> If anybody is interested, I've wrote an small extension to put some
> weather forecasts in the agenda.
> 
> It can be found here[1]. I've blogged about it yesterday, so if you're
> curious you can read the entry[2].
> 
> Happy hacking,
> 
> [1]  http://julien.danjou.info/google-weather-el.html
> [2]  http://julien.danjou.info/blog/
> 


It is really beautiful extension. 

I would like to ask one question. I would like to be able
to do several forecast for different locations. 
For example I had the following entries : 
%%(org-google-weather "Paris" "FR")
%%(org-google-weather "Caen" "FR")

In the agenda I have the forecasts for the two locations but 
I have no idea on the output about the related locations. 
I have following ouput :

  Agenda:     icon Couverture nuageuse partielle, 13-24 °C
  Agenda:     icon Brouillard, 13-23 °C

How can we had the locations. Something like :

  Agenda:     *Paris*, icon Couverture nuageuse partielle, 13-24 °C
  Agenda:     *Caen*, icon Brouillard, 13-23 °C

Regards

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast | language and units
  2010-09-09 11:22   ` Agenda and weather forecast | language and units Juan Pechiar
@ 2010-09-09 12:15     ` Sven Bretfeld
  2010-09-09 14:52     ` Rafael
  1 sibling, 0 replies; 37+ messages in thread
From: Sven Bretfeld @ 2010-09-09 12:15 UTC (permalink / raw)
  To: emacs-orgmode

Hi Juan

Juan Pechiar <pechiar@computer.org> writes:

> The google API determines the unit system (C or F) based on the
> language parameter (smart guys?!).
>
> Ths parameter goes after the city in the call to org-google-weather:
>
> E.g. %%(org-google-weather "Montevideo,Uruguay" "es")

Ah. I see. It's working after I've added "de".

Thank you

Sven

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Re: Agenda and weather forecast
  2010-09-09 12:06 ` Agenda and weather forecast d.tchin
@ 2010-09-09 12:20   ` Sven Bretfeld
  2010-09-09 12:33   ` Re: Agenda and weather forecast | multiple forecasts Juan
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 37+ messages in thread
From: Sven Bretfeld @ 2010-09-09 12:20 UTC (permalink / raw)
  To: d.tchin; +Cc: emacs-orgmode

d.tchin <d.tchin@voila.fr> writes:

> In the agenda I have the forecasts for the two locations but 
> I have no idea on the output about the related locations. 
> I have following ouput :
>
>   Agenda:     icon Couverture nuageuse partielle, 13-24 °C
>   Agenda:     icon Brouillard, 13-23 °C
>
> How can we had the locations. Something like :
>
>   Agenda:     *Paris*, icon Couverture nuageuse partielle, 13-24 °C
>   Agenda:     *Caen*, icon Brouillard, 13-23 °C

I have done that this way:

** Wetter
*** Bochum
   :PROPERTIES:
   :CATEGORY: Wetter in BO
   :END:
%%(org-google-weather "Bochum" "de")
*** Heidelberg
    :PROPERTIES:
    :CATEGORY: Wetter in HD
    :END:
%%(org-google-weather "Heidelberg" "de")

Greetings,

Sven

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Re: Agenda and weather forecast | multiple forecasts
  2010-09-09 12:06 ` Agenda and weather forecast d.tchin
  2010-09-09 12:20   ` Sven Bretfeld
@ 2010-09-09 12:33   ` Juan
  2010-09-09 14:17     ` d.tchin
  2010-09-09 14:09   ` Re: Agenda and weather forecast Julien Danjou
  2010-09-09 14:29   ` d.tchin
  3 siblings, 1 reply; 37+ messages in thread
From: Juan @ 2010-09-09 12:33 UTC (permalink / raw)
  To: d.tchin; +Cc: emacs-orgmode

A simple way is to use the category declaration:

#+CATEGORY: Paris
%%(org-google-weather "Paris" "FR")
#+CATEGORY: Caen
%%(org-google-weather "Caen" "FR")
#+CATEGORY: Agenda
... other stuff

Regards,
.j.

On Thu, Sep 09, 2010 at 12:06:22PM +0000, d.tchin wrote:
> I would like to ask one question. I would like to be able
> to do several forecast for different locations.
> For example I had the following entries :
> %%(org-google-weather "Paris" "FR")
> %%(org-google-weather "Caen" "FR")
>
> In the agenda I have the forecasts for the two locations but
> I have no idea on the output about the related locations.
> I have following ouput :
>
>   Agenda:     icon Couverture nuageuse partielle, 13-24 °C
>   Agenda:     icon Brouillard, 13-23 °C
>
> How can we had the locations. Something like :
>
>   Agenda:     *Paris*, icon Couverture nuageuse partielle, 13-24 °C
>   Agenda:     *Caen*, icon Brouillard, 13-23 °C

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-09  6:19 Agenda and weather forecast Julien Danjou
                   ` (3 preceding siblings ...)
  2010-09-09 12:06 ` Agenda and weather forecast d.tchin
@ 2010-09-09 12:52 ` Richard Riley
  2010-09-09 14:23 ` Bernt Hansen
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 37+ messages in thread
From: Richard Riley @ 2010-09-09 12:52 UTC (permalink / raw)
  To: emacs-orgmode


Julien Danjou <julien@danjou.info> writes:

> Hi folks,
>
> If anybody is interested, I've wrote an small extension to put some
> weather forecasts in the agenda.
>
> It can be found here[1]. I've blogged about it yesterday, so if you're
> curious you can read the entry[2].
>
> Happy hacking,
>
> [1]  http://julien.danjou.info/google-weather-el.html

That is really, really, really neat ;)

> [2]  http://julien.danjou.info/blog/

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-09  9:05 ` Simon Guest
@ 2010-09-09 13:30   ` George McNinch
  2010-09-09 18:18     ` Ian Barton
  2010-09-09 21:31     ` Simon Guest
  0 siblings, 2 replies; 37+ messages in thread
From: George McNinch @ 2010-09-09 13:30 UTC (permalink / raw)
  To: emacs-orgmode


>>>>> "Simon" == Simon Guest <simon.guest@tesujimath.org> writes:

    Simon> I downloaded google-weather-el-236b269, and stuck
    Simon> %%(org-google-weather) at the top of one of my org files, but
    Simon> when building the agenda, Emacs complains [...]

I had the same trouble at first. Fixed by making sure
that 

%%(org-google-weather) 

isn't literally "at the top" of a .org file. 

I'm a newbie for org-mode, but it seems that entry needs to be below
at least one "*"; the following works, e.g.

(top of file)
%-----------------------------------
* Weather
#+CATEGORY: Weather
%%(org-google-weather "Boston" "en-us")

-gm

-- 
  |=|   George McNinch <gmcninch@gmail.com>
  |=|   http://www.tufts.edu/~gmcnin01

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-09  9:37 ` Sven Bretfeld
  2010-09-09 11:22   ` Agenda and weather forecast | language and units Juan Pechiar
@ 2010-09-09 14:03   ` Julien Danjou
  2010-09-10 15:10     ` Eric Abrahamsen
  1 sibling, 1 reply; 37+ messages in thread
From: Julien Danjou @ 2010-09-09 14:03 UTC (permalink / raw)
  To: Sven Bretfeld; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 793 bytes --]

On Thu, Sep 09 2010, Sven Bretfeld wrote:

> I had °F at first instead of °C what I would prefer. I'm in Germany;
> adding ("DE" . "°C") in the customization of "Google Weather Unit System
> Temperature Assoc" didn't help. In the screenshot I noticed that you
> have a string "en-gb" which is not documented. Sounds like
> "English-GB", although you are in Paris. I also added this string, and I
> have °C now. Is that the correct way?

Yeah, but this is totally undocumented. I found the "en-gb" by trying
various random strings.

I wanted english text in °C, and that's the way I found. If you put "en"
you will have °F.

If you want german in °F… I think you're screwed up I think. :-)

-- 
Julien Danjou
// ᐰ <julien@danjou.info>   http://julien.danjou.info

[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Re: Agenda and weather forecast
  2010-09-09 12:06 ` Agenda and weather forecast d.tchin
  2010-09-09 12:20   ` Sven Bretfeld
  2010-09-09 12:33   ` Re: Agenda and weather forecast | multiple forecasts Juan
@ 2010-09-09 14:09   ` Julien Danjou
  2010-09-09 14:29   ` d.tchin
  3 siblings, 0 replies; 37+ messages in thread
From: Julien Danjou @ 2010-09-09 14:09 UTC (permalink / raw)
  To: d.tchin; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 415 bytes --]

On Thu, Sep 09 2010, d.tchin wrote:

> How can we had the locations. Something like :
>
>   Agenda:     *Paris*, icon Couverture nuageuse partielle, 13-24 °C
>   Agenda:     *Caen*, icon Brouillard, 13-23 °C

People gave you the category trick already.

OTOH, I'll add the possibility to customize the returned string soon.

-- 
Julien Danjou
// ᐰ <julien@danjou.info>   http://julien.danjou.info

[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast | multiple forecasts
  2010-09-09 12:33   ` Re: Agenda and weather forecast | multiple forecasts Juan
@ 2010-09-09 14:17     ` d.tchin
  0 siblings, 0 replies; 37+ messages in thread
From: d.tchin @ 2010-09-09 14:17 UTC (permalink / raw)
  To: emacs-orgmode

Juan <Pechiar <at> computer.org> writes:

> 
> A simple way is to use the category declaration:
> 
> #+CATEGORY: Paris
> %%(org-google-weather "Paris" "FR")
> #+CATEGORY: Caen
> %%(org-google-weather "Caen" "FR")
> #+CATEGORY: Agenda
> ... other stuff
> 
> Regards,
> .j.
> 

Thank you for your answer. 

In fact I was thought that the information was already
in expression (org-google-weather "Paris" "FR") and 
the way was to extract it. But I like your suggestion.

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-09  6:19 Agenda and weather forecast Julien Danjou
                   ` (4 preceding siblings ...)
  2010-09-09 12:52 ` Richard Riley
@ 2010-09-09 14:23 ` Bernt Hansen
  2010-09-09 15:39   ` Julien Danjou
  2010-09-09 15:02 ` Jason McBrayer
                   ` (6 subsequent siblings)
  12 siblings, 1 reply; 37+ messages in thread
From: Bernt Hansen @ 2010-09-09 14:23 UTC (permalink / raw)
  To: Julien Danjou; +Cc: emacs-orgmode

Julien Danjou <julien@danjou.info> writes:

> If anybody is interested, I've wrote an small extension to put some
> weather forecasts in the agenda.
>
> It can be found here[1]. I've blogged about it yesterday, so if you're
> curious you can read the entry[2].
>
> Happy hacking,
>
> [1]  http://julien.danjou.info/google-weather-el.html
> [2]  http://julien.danjou.info/blog/

Hi Julien,

I like this a lot!  Thanks!

Would it be possible to have the weather entry inherit the tags of the
parent task?  This would allow multiple location entries like this with
tag filtering to limit the display to the desired items only.

As it is now multiple entries in the agenda are always present.

,----[ todo.org ]
| ** Weather
| [2010-09-09 Thu 08:54]
| *** Farm                                                            :@farm:
| :PROPERTIES:
| :Category: Farm
| :END:
| [2010-09-09 Thu 09:03]
| %%(org-google-weather "enterprise ontario" "en-gb")
| *** Caledon                                                         :@home:
| :PROPERTIES:
| :Category: Caledon
| :END:
| [2010-09-09 Thu 09:03]
| %%(org-google-weather "caledon village" "en-gb")
| *** Markham                                                       :@office:
| :PROPERTIES:
| :Category: Markham
| :END:
| [2010-09-09 Thu 09:03]
| %%(org-google-weather "markham" "en-gb")
`----

Regards,
Bernt

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-09 12:06 ` Agenda and weather forecast d.tchin
                     ` (2 preceding siblings ...)
  2010-09-09 14:09   ` Re: Agenda and weather forecast Julien Danjou
@ 2010-09-09 14:29   ` d.tchin
  2010-09-10 19:52     ` d.tchin
  3 siblings, 1 reply; 37+ messages in thread
From: d.tchin @ 2010-09-09 14:29 UTC (permalink / raw)
  To: emacs-orgmode

 <d.tchin> writes:

I didn't use the level I would like to use for answering.
As I reply to Juan, I like your suggestion of using CATEGORY. 

Thank you for your help.

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast | language and units
  2010-09-09 11:22   ` Agenda and weather forecast | language and units Juan Pechiar
  2010-09-09 12:15     ` Sven Bretfeld
@ 2010-09-09 14:52     ` Rafael
  2010-09-09 15:08       ` Jason McBrayer
  1 sibling, 1 reply; 37+ messages in thread
From: Rafael @ 2010-09-09 14:52 UTC (permalink / raw)
  To: emacs-orgmode

Juan Pechiar <pechiar@computer.org> writes:

> E.g. %%(org-google-weather "Montevideo,Uruguay" "es")

Unfortunately, none of "Pachuca", "Pachuca,Mexico",
"Pachuca,Hidalgo,Mexico" work for me (I get a Bad sexp error) :(
("New York" is fine, however..).

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-09  6:19 Agenda and weather forecast Julien Danjou
                   ` (5 preceding siblings ...)
  2010-09-09 14:23 ` Bernt Hansen
@ 2010-09-09 15:02 ` Jason McBrayer
  2010-09-09 15:41   ` Julien Danjou
  2010-09-09 19:33 ` Ivan Vilata i Balaguer
                   ` (5 subsequent siblings)
  12 siblings, 1 reply; 37+ messages in thread
From: Jason McBrayer @ 2010-09-09 15:02 UTC (permalink / raw)
  To: Julien Danjou; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 135 bytes --]

Awesome tool. I've fixed a tiny bug, which was causing the "invalid
sexp" error for me.

-- 
Jason F. McBrayer
http://jfm.carcosa.net/

[-- Attachment #2: 0001-Missing-.-in-org-google-weather-icon-alist.patch --]
[-- Type: application/octet-stream, Size: 816 bytes --]

From fbf326d53cec203345a92c0e98689c941ad9633d Mon Sep 17 00:00:00 2001
From: Jason F. McBrayer <McBrayerJ@dnr.sc.gov>
Date: Thu, 9 Sep 2010 11:00:49 -0400
Subject: [PATCH] Missing . in org-google-weather-icon-alist

---
 org-google-weather.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/org-google-weather.el b/org-google-weather.el
index 9961601..34ad6eb 100644
--- a/org-google-weather.el
+++ b/org-google-weather.el
@@ -62,7 +62,7 @@
 (defcustom org-google-weather-icon-alist
   '((chance_of_rain . "weather-showers-scattered.png")
     (chance_of_snow . "weather-snow.png")
-    (chance_of_storm "weather-storm.png")
+    (chance_of_storm . "weather-storm.png")
     (cloudy . "weather-overcast.png")
     (dust . "weather-fog.png")
     (flurries . "weather-storm.png")
-- 
1.7.1


[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply related	[flat|nested] 37+ messages in thread

* Re: Re: Agenda and weather forecast | language and units
  2010-09-09 14:52     ` Rafael
@ 2010-09-09 15:08       ` Jason McBrayer
  0 siblings, 0 replies; 37+ messages in thread
From: Jason McBrayer @ 2010-09-09 15:08 UTC (permalink / raw)
  To: Rafael; +Cc: emacs-orgmode

On Thu, Sep 9, 2010 at 10:52 AM, Rafael <rvf0068@gmail.com> wrote:
> Juan Pechiar <pechiar@computer.org> writes:
>
>> E.g. %%(org-google-weather "Montevideo,Uruguay" "es")
>
> Unfortunately, none of "Pachuca", "Pachuca,Mexico",
> "Pachuca,Hidalgo,Mexico" work for me (I get a Bad sexp error) :(
> ("New York" is fine, however..).

Apply my tiny patch from the other thread (or just customize
org-google-icon-alist to fix the missing "." in chance_of_storm).
Strangely, it's the chance of a storm in your location, and not the
location itself that's causing the bad sexp error. Talk about a bug
depending on the weather!

-- 
Jason F. McBrayer
http://jfm.carcosa.net/

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-09 14:23 ` Bernt Hansen
@ 2010-09-09 15:39   ` Julien Danjou
  2010-09-09 15:46     ` Bernt Hansen
  0 siblings, 1 reply; 37+ messages in thread
From: Julien Danjou @ 2010-09-09 15:39 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 459 bytes --]

On Thu, Sep 09 2010, Bernt Hansen wrote:

> Would it be possible to have the weather entry inherit the tags of the
> parent task?  This would allow multiple location entries like this with
> tag filtering to limit the display to the desired items only.

I don't think this is something related to org-google-weather. Isn't
is related to Org property inheritance directly?

-- 
Julien Danjou
// ᐰ <julien@danjou.info>   http://julien.danjou.info

[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-09 15:02 ` Jason McBrayer
@ 2010-09-09 15:41   ` Julien Danjou
  0 siblings, 0 replies; 37+ messages in thread
From: Julien Danjou @ 2010-09-09 15:41 UTC (permalink / raw)
  To: Jason McBrayer; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 282 bytes --]

On Thu, Sep 09 2010, Jason McBrayer wrote:

> Awesome tool. I've fixed a tiny bug, which was causing the "invalid
> sexp" error for me.

Good catch, patch applied.

And good luck with the storm.

-- 
Julien Danjou
// ᐰ <julien@danjou.info>   http://julien.danjou.info

[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-09 15:39   ` Julien Danjou
@ 2010-09-09 15:46     ` Bernt Hansen
  0 siblings, 0 replies; 37+ messages in thread
From: Bernt Hansen @ 2010-09-09 15:46 UTC (permalink / raw)
  To: Julien Danjou; +Cc: emacs-orgmode

Julien Danjou <julien@danjou.info> writes:

> On Thu, Sep 09 2010, Bernt Hansen wrote:
>
>> Would it be possible to have the weather entry inherit the tags of the
>> parent task?  This would allow multiple location entries like this with
>> tag filtering to limit the display to the desired items only.
>
> I don't think this is something related to org-google-weather. Isn't
> is related to Org property inheritance directly?

It's not the property I'm interested in -- but the tag on the parent
task.  Other agenda entries show the tag on the right for filtering but
no tags are included on the weather entry.

-Bernt

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Re: Agenda and weather forecast
  2010-09-09 13:30   ` George McNinch
@ 2010-09-09 18:18     ` Ian Barton
  2010-09-10  8:51       ` Ian Barton
  2010-09-09 21:31     ` Simon Guest
  1 sibling, 1 reply; 37+ messages in thread
From: Ian Barton @ 2010-09-09 18:18 UTC (permalink / raw)
  To: emacs-orgmode


>
>>>>>> "Simon" == Simon Guest<simon.guest@tesujimath.org>  writes:
>
>      Simon>  I downloaded google-weather-el-236b269, and stuck
>      Simon>  %%(org-google-weather) at the top of one of my org files, but
>      Simon>  when building the agenda, Emacs complains [...]
>
> I had the same trouble at first. Fixed by making sure
> that
>
> %%(org-google-weather)
>
> isn't literally "at the top" of a .org file.
>
> I'm a newbie for org-mode, but it seems that entry needs to be below
> at least one "*"; the following works, e.g.
>
> (top of file)
> %-----------------------------------
> * Weather
> #+CATEGORY: Weather
> %%(org-google-weather "Boston" "en-us")
>
> -gm
>

I am also getting the sexp error. This is what I ave in my org file:

* Weather.
#+CATEGORY: London

%%(org-google-weather "London" "en-gb")

I have tried several other locations with the same result. Any 
suggestions on how to get more debugging info?

Thanks,

Ian.

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-09  6:19 Agenda and weather forecast Julien Danjou
                   ` (6 preceding siblings ...)
  2010-09-09 15:02 ` Jason McBrayer
@ 2010-09-09 19:33 ` Ivan Vilata i Balaguer
  2010-09-10  0:06 ` Flavio Souza
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 37+ messages in thread
From: Ivan Vilata i Balaguer @ 2010-09-09 19:33 UTC (permalink / raw)
  To: emacs-orgmode

Julien Danjou (2010-09-09 08:19:17 +0200) wrote:

> If anybody is interested, I've wrote an small extension to put some
> weather forecasts in the agenda.

Certainly impressive!  Your fellow Debian developer Jordi Mallach just
told me about your Emacs projects this morning and I've been having a
look at them.  For instance, the OfflineIMAP and Google Maps modes also
look great.  Keep the good work! :)

-- 
Ivan Vilata i Balaguer -- http://ivan.lovesgazpacho.net/

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Re: Agenda and weather forecast
  2010-09-09 13:30   ` George McNinch
  2010-09-09 18:18     ` Ian Barton
@ 2010-09-09 21:31     ` Simon Guest
  1 sibling, 0 replies; 37+ messages in thread
From: Simon Guest @ 2010-09-09 21:31 UTC (permalink / raw)
  To: emacs-org list

At Thu, 09 Sep 2010 09:30:11 -0400,
George McNinch wrote:
> I had the same trouble at first. Fixed by making sure
> that 
> 
> %%(org-google-weather) 
> 
> isn't literally "at the top" of a .org file. 

Together with the recent patch, this works just fine.  Now using
version 5bea6c8 from Thursday 9th September.  All is good.

cheers,
Simon

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-09  6:19 Agenda and weather forecast Julien Danjou
                   ` (7 preceding siblings ...)
  2010-09-09 19:33 ` Ivan Vilata i Balaguer
@ 2010-09-10  0:06 ` Flavio Souza
  2010-09-10  9:11 ` Eric S Fraga
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 37+ messages in thread
From: Flavio Souza @ 2010-09-10  0:06 UTC (permalink / raw)
  To: Julien Danjou; +Cc: emacs-orgmode


This is a very nice add-on for orgmode. Cool!

-- 
Flávio Souza
http://www.flaviosouza.org

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Re: Agenda and weather forecast
  2010-09-09 18:18     ` Ian Barton
@ 2010-09-10  8:51       ` Ian Barton
  0 siblings, 0 replies; 37+ messages in thread
From: Ian Barton @ 2010-09-10  8:51 UTC (permalink / raw)
  To: emacs-orgmode

On 09/09/10 19:18, Ian Barton wrote:
> 
>>
>>>>>>> "Simon" == Simon Guest<simon.guest@tesujimath.org>  writes:
>>
>>      Simon>  I downloaded google-weather-el-236b269, and stuck
>>      Simon>  %%(org-google-weather) at the top of one of my org files,
>> but
>>      Simon>  when building the agenda, Emacs complains [...]
>>
>> I had the same trouble at first. Fixed by making sure
>> that
>>
>> %%(org-google-weather)
>>
>> isn't literally "at the top" of a .org file.
>>
>> I'm a newbie for org-mode, but it seems that entry needs to be below
>> at least one "*"; the following works, e.g.
>>
>> (top of file)
>> %-----------------------------------
>> * Weather
>> #+CATEGORY: Weather
>> %%(org-google-weather "Boston" "en-us")
>>
>> -gm
>>
> 
> I am also getting the sexp error. This is what I ave in my org file:
> 
> * Weather.
> #+CATEGORY: London
> 
> %%(org-google-weather "London" "en-gb")
> 
> I have tried several other locations with the same result. Any
> suggestions on how to get more debugging info?
> 
Sorted now. It was something to do with the order that things were
listed in my .emacs. Thanks for this great addition to org!

Ian.

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-09  6:19 Agenda and weather forecast Julien Danjou
                   ` (8 preceding siblings ...)
  2010-09-10  0:06 ` Flavio Souza
@ 2010-09-10  9:11 ` Eric S Fraga
  2010-09-10  9:12 ` Eric S Fraga
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 37+ messages in thread
From: Eric S Fraga @ 2010-09-10  9:11 UTC (permalink / raw)
  To: Julien Danjou; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 658 bytes --]

On Thu, 09 Sep 2010 08:19:17 +0200, Julien Danjou <julien@danjou.info> wrote:
> 
> [1  <multipart/signed (7bit)>]
> [1.1  <text/plain; utf-8 (quoted-printable)>]
> Hi folks,
> 
> If anybody is interested, I've wrote an small extension to put some
> weather forecasts in the agenda.
> 
> It can be found here[1]. I've blogged about it yesterday, so if you're
> curious you can read the entry[2].
> 
> Happy hacking,
> 
> [1]  http://julien.danjou.info/google-weather-el.html
> [2]  http://julien.danjou.info/blog/

Julien,

this works very well!  Thanks.

I have one simple question: how can I ask it to give me temperatures
in degrees C?

Thanks again,
eric

[-- Attachment #2: Type: text/plain, Size: 75 bytes --]

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-09  6:19 Agenda and weather forecast Julien Danjou
                   ` (9 preceding siblings ...)
  2010-09-10  9:11 ` Eric S Fraga
@ 2010-09-10  9:12 ` Eric S Fraga
  2010-09-11 18:59 ` Christopher Allan Webber
  2010-09-12  0:02 ` Richard Riley
  12 siblings, 0 replies; 37+ messages in thread
From: Eric S Fraga @ 2010-09-10  9:12 UTC (permalink / raw)
  To: Julien Danjou; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 105 bytes --]

Apologies for noise: I got the answer from one of the other messages
in the list <blush>.

Thanks again!

[-- Attachment #2: Type: text/plain, Size: 75 bytes --]

-- 
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D

[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-09 14:03   ` Agenda and weather forecast Julien Danjou
@ 2010-09-10 15:10     ` Eric Abrahamsen
  2010-09-11  9:05       ` Julien Danjou
  0 siblings, 1 reply; 37+ messages in thread
From: Eric Abrahamsen @ 2010-09-10 15:10 UTC (permalink / raw)
  To: emacs-orgmode

On Thu, Sep 09 2010, Julien Danjou wrote:

> On Thu, Sep 09 2010, Sven Bretfeld wrote:
>
>> I had °F at first instead of °C what I would prefer. I'm in Germany;
>> adding ("DE" . "°C") in the customization of "Google Weather Unit System
>> Temperature Assoc" didn't help. In the screenshot I noticed that you
>> have a string "en-gb" which is not documented. Sounds like
>> "English-GB", although you are in Paris. I also added this string, and I
>> have °C now. Is that the correct way?
>
> Yeah, but this is totally undocumented. I found the "en-gb" by trying
> various random strings.
>
> I wanted english text in °C, and that's the way I found. If you put "en"
> you will have °F.
>
> If you want german in °F… I think you're screwed up I think. :-)

So following suit I set my google weather thing to:

%%(org-google-weather "Beijing" "ZH-CN")

Because I'm in China, right? But when the entries show up in my agenda,
that all look like:

domestic:   icon  Çç, 17-33 ℃

(icon is a sun, "domestic" is the name of the file I put the weather
statement in). So the cedillas... Something's definitely off with
encoding -- where do I start to look? My language environment is utf-8,
I've got Chinese fonts, if that's the problem... What else?

Thanks!
Eric

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-09 14:29   ` d.tchin
@ 2010-09-10 19:52     ` d.tchin
  0 siblings, 0 replies; 37+ messages in thread
From: d.tchin @ 2010-09-10 19:52 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

Just to follow previous discussion about having city.

Julien Danjou add a new entry in org-google-weather-format
that allows to get City for which the weather is asked for.
It is possible to customize this variable. 

The default format is "%i %c, %l-%h %s" . 
If you can add %C for city : "%C %i %c, %l-%h %s".

For example I have the following entry :

#+CATEGORY: Meteo 
%%(org-google-weather "Caen" "FR")


When I display agenda, I have the following :

 Meteo:      Caen, Lower-Normandy icon  Couverture nuageuse partielle, 12-22 ℃

Curiously, I have the city following by the region in english whereas the 
other outputs are in french as expected.

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Re: Agenda and weather forecast
  2010-09-10 15:10     ` Eric Abrahamsen
@ 2010-09-11  9:05       ` Julien Danjou
  0 siblings, 0 replies; 37+ messages in thread
From: Julien Danjou @ 2010-09-11  9:05 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 945 bytes --]

On Fri, Sep 10 2010, Eric Abrahamsen wrote:

> (icon is a sun, "domestic" is the name of the file I put the weather
> statement in). So the cedillas... Something's definitely off with
> encoding -- where do I start to look? My language environment is utf-8,
> I've got Chinese fonts, if that's the problem... What else?

That's probably my fault. I don't know well the Emacs API, and my
tempting to encode correctly the data fetched from the Web is probably
not bullet-proof. So it might be that.

The code is in `google-weather-retrieve-data':

      (decode-coding-region
       (point) (point-max)
       (detect-coding-region (point) (point-max) t))
      (set-buffer-multibyte t)
      (setq data (xml-parse-region (point) (point-max)))

This may not be the good way to do it. zh-cn pages seems to be in GB2312
encoding.

Any hint welcome.
-- 
Julien Danjou
// ᐰ <julien@danjou.info>   http://julien.danjou.info

[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-09  6:19 Agenda and weather forecast Julien Danjou
                   ` (10 preceding siblings ...)
  2010-09-10  9:12 ` Eric S Fraga
@ 2010-09-11 18:59 ` Christopher Allan Webber
  2010-09-11 19:09   ` Christopher Allan Webber
  2010-09-12  0:02 ` Richard Riley
  12 siblings, 1 reply; 37+ messages in thread
From: Christopher Allan Webber @ 2010-09-11 18:59 UTC (permalink / raw)
  To: Julien Danjou; +Cc: emacs-orgmode

There have been a number of complaints about missing sexp that seem to
be unrelated to the "storm" bug.  It seems that if "loop" from the
cl-macs package is not already loaded a sexp error appears.

Julien Danjou <julien@danjou.info> writes:

> Hi folks,
>
> If anybody is interested, I've wrote an small extension to put some
> weather forecasts in the agenda.
>
> It can be found here[1]. I've blogged about it yesterday, so if you're
> curious you can read the entry[2].
>
> Happy hacking,
>
> [1]  http://julien.danjou.info/google-weather-el.html
> [2]  http://julien.danjou.info/blog/

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-11 18:59 ` Christopher Allan Webber
@ 2010-09-11 19:09   ` Christopher Allan Webber
  2010-09-11 19:30     ` Julien Danjou
  0 siblings, 1 reply; 37+ messages in thread
From: Christopher Allan Webber @ 2010-09-11 19:09 UTC (permalink / raw)
  To: Julien Danjou; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 59 bytes --]

Adding (require 'cl) seems to fix things; patch included.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: cl-fix.diff --]
[-- Type: text/x-diff, Size: 233 bytes --]

diff --git a/google-weather.el b/google-weather.el
index d86165d..bc4c7d0 100644
--- a/google-weather.el
+++ b/google-weather.el
@@ -26,6 +26,7 @@
 ;;
 ;;; Code:
 
+(require 'cl)
 (require 'url)
 (require 'url-cache)
 (require 'xml)

[-- Attachment #3: Type: text/plain, Size: 673 bytes --]



Christopher Allan Webber <cwebber@dustycloud.org> writes:

> There have been a number of complaints about missing sexp that seem to
> be unrelated to the "storm" bug.  It seems that if "loop" from the
> cl-macs package is not already loaded a sexp error appears.
>
> Julien Danjou <julien@danjou.info> writes:
>
>> Hi folks,
>>
>> If anybody is interested, I've wrote an small extension to put some
>> weather forecasts in the agenda.
>>
>> It can be found here[1]. I've blogged about it yesterday, so if you're
>> curious you can read the entry[2].
>>
>> Happy hacking,
>>
>> [1]  http://julien.danjou.info/google-weather-el.html
>> [2]  http://julien.danjou.info/blog/

[-- Attachment #4: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply related	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-11 19:09   ` Christopher Allan Webber
@ 2010-09-11 19:30     ` Julien Danjou
  0 siblings, 0 replies; 37+ messages in thread
From: Julien Danjou @ 2010-09-11 19:30 UTC (permalink / raw)
  To: Christopher Allan Webber; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 214 bytes --]

On Sat, Sep 11 2010, Christopher Allan Webber wrote:

> Adding (require 'cl) seems to fix things; patch included.

Added, thanks.

-- 
Julien Danjou
// ᐰ <julien@danjou.info>   http://julien.danjou.info

[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 37+ messages in thread

* Re: Agenda and weather forecast
  2010-09-09  6:19 Agenda and weather forecast Julien Danjou
                   ` (11 preceding siblings ...)
  2010-09-11 18:59 ` Christopher Allan Webber
@ 2010-09-12  0:02 ` Richard Riley
  2010-09-12 11:14   ` Julien Danjou
  12 siblings, 1 reply; 37+ messages in thread
From: Richard Riley @ 2010-09-12  0:02 UTC (permalink / raw)
  To: emacs-orgmode


Julien Danjou <julien@danjou.info> writes:

> Hi folks,
>
> If anybody is interested, I've wrote an small extension to put some
> weather forecasts in the agenda.
>
> It can be found here[1]. I've blogged about it yesterday, so if you're
> curious you can read the entry[2].
>
> Happy hacking,
>
> [1]  http://julien.danjou.info/google-weather-el.html
> [2]  http://julien.danjou.info/blog/

Here is a small patch to make it a bit cleaner in non GUI emacs (-nw) :-

--8<---------------cut here---------------start------------->8---
	Modified google-weather.el
diff --git a/google-weather.el b/google-weather.el
index 393a3cf..898c91b 100644
--- a/google-weather.el
+++ b/google-weather.el
@@ -162,8 +162,8 @@ See `google-weather-retrieve-data' for the use of EXPIRE-TIME."
          `(,forecast-encoded-date
            (low ,(google-weather-assoc 'low forecast))
            (high ,(google-weather-assoc 'high forecast))
-           (icon ,(concat google-weather-image-url
-                          (google-weather-assoc 'icon forecast)))
+           (icon ,(if (window-system) (concat google-weather-image-url
+                          (google-weather-assoc 'icon forecast)) ""))
            (condition ,(google-weather-assoc 'condition forecast)))))
      (loop for entry in (google-weather-data->weather data)
            when (eq (car entry) 'forecast_conditions)
--8<---------------cut here---------------end--------------->8---


-- 
☘ http://www.shamrockirishbar.com, http://www.richardriley.net

"Learning French is trivial: the word for horse is 'cheval' and
 everything follows thusly."

^ permalink raw reply related	[flat|nested] 37+ messages in thread

* Re: Re: Agenda and weather forecast
  2010-09-12  0:02 ` Richard Riley
@ 2010-09-12 11:14   ` Julien Danjou
  0 siblings, 0 replies; 37+ messages in thread
From: Julien Danjou @ 2010-09-12 11:14 UTC (permalink / raw)
  To: Richard Riley; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 230 bytes --]

On Sun, Sep 12 2010, Richard Riley wrote:

> Here is a small patch to make it a bit cleaner in non GUI emacs (-nw) :-

Good idea, merged, thanks.

-- 
Julien Danjou
// ᐰ <julien@danjou.info>   http://julien.danjou.info

[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2010-09-12 11:14 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-09  6:19 Agenda and weather forecast Julien Danjou
2010-09-09  9:05 ` Simon Guest
2010-09-09 13:30   ` George McNinch
2010-09-09 18:18     ` Ian Barton
2010-09-10  8:51       ` Ian Barton
2010-09-09 21:31     ` Simon Guest
2010-09-09  9:37 ` Sven Bretfeld
2010-09-09 11:22   ` Agenda and weather forecast | language and units Juan Pechiar
2010-09-09 12:15     ` Sven Bretfeld
2010-09-09 14:52     ` Rafael
2010-09-09 15:08       ` Jason McBrayer
2010-09-09 14:03   ` Agenda and weather forecast Julien Danjou
2010-09-10 15:10     ` Eric Abrahamsen
2010-09-11  9:05       ` Julien Danjou
2010-09-09 11:35 ` Agenda and weather forecast | alternative icon set Juan
2010-09-09 12:06 ` Agenda and weather forecast d.tchin
2010-09-09 12:20   ` Sven Bretfeld
2010-09-09 12:33   ` Re: Agenda and weather forecast | multiple forecasts Juan
2010-09-09 14:17     ` d.tchin
2010-09-09 14:09   ` Re: Agenda and weather forecast Julien Danjou
2010-09-09 14:29   ` d.tchin
2010-09-10 19:52     ` d.tchin
2010-09-09 12:52 ` Richard Riley
2010-09-09 14:23 ` Bernt Hansen
2010-09-09 15:39   ` Julien Danjou
2010-09-09 15:46     ` Bernt Hansen
2010-09-09 15:02 ` Jason McBrayer
2010-09-09 15:41   ` Julien Danjou
2010-09-09 19:33 ` Ivan Vilata i Balaguer
2010-09-10  0:06 ` Flavio Souza
2010-09-10  9:11 ` Eric S Fraga
2010-09-10  9:12 ` Eric S Fraga
2010-09-11 18:59 ` Christopher Allan Webber
2010-09-11 19:09   ` Christopher Allan Webber
2010-09-11 19:30     ` Julien Danjou
2010-09-12  0:02 ` Richard Riley
2010-09-12 11:14   ` Julien Danjou

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