Re: [Orgmode] Agenda and weather forecast
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 jul...@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/ ___ 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
Re: [Orgmode] Agenda and weather forecast
Adding (require 'cl) seems to fix things; patch included. 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) Christopher Allan Webber cweb...@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 jul...@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/ ___ 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
Re: [Orgmode] Agenda and weather forecast
On Sat, Sep 11 2010, Christopher Allan Webber wrote: Adding (require 'cl) seems to fix things; patch included. Added, thanks. -- Julien Danjou // ᐰ jul...@danjou.info http://julien.danjou.info pgpdf9Mamf2I3.pgp Description: PGP signature ___ 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
Re: [Orgmode] Agenda and weather forecast
On Thu, 09 Sep 2010 08:19:17 +0200, Julien Danjou jul...@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 -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ 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
Re: [Orgmode] Agenda and weather forecast
Apologies for noise: I got the answer from one of the other messages in the list blush. Thanks again! -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D ___ 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
[Orgmode] Agenda and weather forecast
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 // ᐰ jul...@danjou.info http://julien.danjou.info pgpQ7gyTKCyMS.pgp Description: PGP signature ___ 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
Re: [Orgmode] Agenda and weather forecast
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 ___ 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
Re: [Orgmode] Agenda and weather forecast
Hi Julien Julien Danjou jul...@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 ___ 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
Re: [Orgmode] Agenda and weather forecast | language and units
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? ___ 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
Re: [Orgmode] Agenda and weather forecast | alternative icon set
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=718560d8c2c913ffhl=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. ___ 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
Re: [Orgmode] Agenda and weather forecast | language and units
Hi Juan Juan Pechiar pech...@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 ___ 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
Re: [Orgmode] Agenda and weather forecast
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 // ᐰ jul...@danjou.info http://julien.danjou.info pgpR4eSPS9tHD.pgp Description: PGP signature ___ 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
Re: [Orgmode] Agenda and weather forecast
Awesome tool. I've fixed a tiny bug, which was causing the invalid sexp error for me. -- Jason F. McBrayer http://jfm.carcosa.net/ 0001-Missing-.-in-org-google-weather-icon-alist.patch Description: Binary data ___ 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
Re: [Orgmode] Agenda and weather forecast
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 // ᐰ jul...@danjou.info http://julien.danjou.info pgpmcCcNig3tp.pgp Description: PGP signature ___ 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