emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-weather for openweathermap.org
@ 2014-06-14 13:11 Chris Raschl
  2014-06-14 13:41 ` Fletcher Charest
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Chris Raschl @ 2014-06-14 13:11 UTC (permalink / raw)
  To: org mode


Hi everybody,

recently I wanted to add a weather forecast to my org-agenda. I found
org-google-weather, but this package is obsolete since 2012, because the
API is not available any more. So I wrote my own version which is backed
by the openweathermap.org API.

I implemented the minimal usecase which works for me, if somebody else
dares to use it, its available here:

https://github.com/kautsig/org-weather

Regards,
Chris

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

* Re: org-weather for openweathermap.org
  2014-06-14 13:11 org-weather for openweathermap.org Chris Raschl
@ 2014-06-14 13:41 ` Fletcher Charest
  2014-06-14 14:02 ` Thorsten Jolitz
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 16+ messages in thread
From: Fletcher Charest @ 2014-06-14 13:41 UTC (permalink / raw)
  To: Chris Raschl; +Cc: org mode

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

Hi,

Nothing particular to say except that it is nice, and working well!

Thank you for this!

FC


On Sat, Jun 14, 2014 at 3:11 PM, Chris Raschl <cr@kautsig.org> wrote:

>
> Hi everybody,
>
> recently I wanted to add a weather forecast to my org-agenda. I found
> org-google-weather, but this package is obsolete since 2012, because the
> API is not available any more. So I wrote my own version which is backed
> by the openweathermap.org API.
>
> I implemented the minimal usecase which works for me, if somebody else
> dares to use it, its available here:
>
> https://github.com/kautsig/org-weather
>
> Regards,
> Chris
>
>

[-- Attachment #2: Type: text/html, Size: 1132 bytes --]

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

* Re: org-weather for openweathermap.org
  2014-06-14 13:11 org-weather for openweathermap.org Chris Raschl
  2014-06-14 13:41 ` Fletcher Charest
@ 2014-06-14 14:02 ` Thorsten Jolitz
  2014-06-15  9:47   ` Chris Raschl
  2014-06-16  8:04 ` Rüdiger Sonderfeld
  2014-06-16 14:40 ` Doyley, Marvin
  3 siblings, 1 reply; 16+ messages in thread
From: Thorsten Jolitz @ 2014-06-14 14:02 UTC (permalink / raw)
  To: emacs-orgmode

Chris Raschl <cr@kautsig.org> writes:

> Hi everybody,
>
> recently I wanted to add a weather forecast to my org-agenda. I found
> org-google-weather, but this package is obsolete since 2012, because the
> API is not available any more. So I wrote my own version which is backed
> by the openweathermap.org API.
>
> I implemented the minimal usecase which works for me, if somebody else
> dares to use it, its available here:
>
> https://github.com/kautsig/org-weather

Nice, thank you, never made org-google-weather, but this works
out-of-the-box:

  ,-------------------------------------------------
  | City:     Weather: light rain, 10.43°C - 17.58°C
  `-------------------------------------------------

A few suggestions wrt

,--------------------------------------------------------------------------
| (defun org-weather-add-to-cache (item)
|   "Adds the one result 'list' item to the data cache"
|   (let* ((timestr (cdr (assoc 'dt item)))
|          (cache-key (format-time-string "%F" (seconds-to-time timestr)))
|          (weather (cdr (assoc 'weather item)))
|          (temperature (cdr (assoc 'temp item)))
|          (temp-min (number-to-string (org-weather-temp-min temperature)))
|          (temp-max (number-to-string (org-weather-temp-max temperature)))
|          (data (concat (org-weather-description weather) ", "
|          temp-min org-weather-unit " - " temp-max org-weather-unit)))
|     (puthash cache-key data  org-weather-data)))
`--------------------------------------------------------------------------

- why not use (round ...) for the temperature data, 10-17°C would be
  more than accurate enough?

- why not include city/country info in the weather string? I added 

  * Weather
    :PROPERTIES:
    :CATEGORY: City
    :END:
  %%(org-weather)

  to get the above, but it would be much better to take the return
  values for city/country and include them in the weather string, to
  make sure one did not mess up the configuration and gets the weather
  from another place than expected.

- maybe make the whole thing a bit customizable by adding a few
  defcustoms, so the user can decide which info he wants to print in the
  agenda

  the return string looks like this, there are many options:

,-------------------------------------------------------------------------
| Contacting host: api.openweathermap.org:80 ((list . [((rain . 0.5)
| (clouds . 92) (deg . 353) (speed . 4.41) (weather . [((icon . 10d)
| (description . light rain) (main . Rain) (id . 500))]) (humidity . 88)
| (pressure . 1023.69) (temp (morn . 18.53) (eve . 17.32) (night . 11.63)
| (max . 19.01) (min . 11.63) (day . 18.53)) (dt . 1402743600)) ((clouds
| . 68) (deg . 334) (speed . 2.97) (weather . [((icon . 04d) (description
| . broken clouds) (main . Clouds) (id . 803))]) (humidity . 75) (pressure
| . 1027.85) (temp (morn . 15.35) (eve . 18.45) (night . 9.04) (max
| . 19.62) (min . 9.04) (day . 19.62)) (dt . 1402830000)) ((rain . 0.5)
| (clouds . 80) (deg . 264) (speed . 3.46) (weather . [((icon . 10d)
| (description . light rain) (main . Rain) (id . 500))]) (humidity . 75)
| (pressure . 1024.55) (temp (morn . 14.54) (eve . 16.83) (night . 14.58)
| (max . 19.07) (min . 14.54) (day . 19.07)) (dt . 1402916400)) ((clouds
| . 0) (deg . 248) (speed . 2.25) (weather . [((icon . 01d) (description
| . sky is clear) (main . Clear) (id . 800))]) (humidity . 88) (pressure
| . 1024.46) (temp (morn . 14.99) (eve . 17.74) (night . 9.9) (max
| . 20.82) (min . 9.9) (day . 20.82)) (dt . 1403002800)) ((clouds . 76)
| (deg . 261) (speed . 6.56) (weather . [((icon . 04d) (description
| . broken clouds) (main . Clouds) (id . 803))]) (humidity . 78) (pressure
| . 1024.87) (temp (morn . 14.25) (eve . 19.07) (night . 14.95) (max
| . 19.37) (min . 14.25) (day . 18.81)) (dt . 1403089200)) ((rain . 4.45)
| (clouds . 35) (deg . 288) (speed . 6.29) (weather . [((icon . 10d)
| (description . moderate rain) (main . Rain) (id . 501))]) (humidity . 0)
| (pressure . 1016.64) (temp (morn . 15.26) (eve . 18.07) (night . 13.78)
| (max . 19.68) (min . 13.78) (day . 19.68)) (dt . 1403175600)) ((rain
| . 1.34) (clouds . 36) (deg . 289) (speed . 5.59) (weather . [((icon
| . 10d) (description . light rain) (main . Rain) (id . 500))]) (humidity
| . 0) (pressure . 1016.73) (temp (morn . 15.05) (eve . 18.08) (night
| . 15.57) (max . 18.86) (min . 15.05) (day . 18.86)) (dt . 1403262000))])
| (cnt . 7) (city (sys (population . 0)) (population . 0) [...]
`-------------------------------------------------------------------------



-- 
cheers,
Thorsten

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

* Re: org-weather for openweathermap.org
  2014-06-14 14:02 ` Thorsten Jolitz
@ 2014-06-15  9:47   ` Chris Raschl
  2014-06-15 11:54     ` Thorsten Jolitz
  2014-06-16  9:59     ` Thorsten Jolitz
  0 siblings, 2 replies; 16+ messages in thread
From: Chris Raschl @ 2014-06-15  9:47 UTC (permalink / raw)
  To: emacs-orgmode


Hi Thorsten,
first of all, thanks for your suggestions, I really appreciate it.

tjolitz@gmail.com writes:

> Chris Raschl <cr@kautsig.org> writes:
>
>> Hi everybody,
>>
>> recently I wanted to add a weather forecast to my org-agenda. I found
>> org-google-weather, but this package is obsolete since 2012, because the
>> API is not available any more. So I wrote my own version which is backed
>> by the openweathermap.org API.
>>
>> I implemented the minimal usecase which works for me, if somebody else
>> dares to use it, its available here:
>>
>> https://github.com/kautsig/org-weather
>
> Nice, thank you, never made org-google-weather, but this works
> out-of-the-box:
>
>   ,-------------------------------------------------
>   | City:     Weather: light rain, 10.43°C - 17.58°C
>   `-------------------------------------------------
>
> A few suggestions wrt

[...]

> - why not use (round ...) for the temperature data, 10-17°C would be
>   more than accurate enough?

I added this. Additionally I removed the temperature unit being
displayed twice, this was unnecessary and looks much nicer in the format
you suggested.

> - why not include city/country info in the weather string? I added
>
>   * Weather
>     :PROPERTIES:
>     :CATEGORY: City
>     :END:
>   %%(org-weather)
>
>   to get the above, but it would be much better to take the return
>   values for city/country and include them in the weather string, to
>   make sure one did not mess up the configuration and gets the weather
>   from another place than expected.

Also thought about this, but I think I will go with the method which was
also used in org-google-weather. It looks like:

* Weather
%%(org-google-weather "New York")

This is much simpler for me, as I'm not so familiar with lisp and the
org-mode api. But I'll have to change the data structure for caching the
data a bit, so it might take a while.

> - maybe make the whole thing a bit customizable by adding a few
>   defcustoms, so the user can decide which info he wants to print in the
>   agenda
>
>   the return string looks like this, there are many options:

[...]

I improved result processing a little bit and added a formatting string
(org-weather-format). You can now also add different temperature fields,
as well as humidity, pressure and wind speed.

Regards,
Chris

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

* Re: org-weather for openweathermap.org
  2014-06-15  9:47   ` Chris Raschl
@ 2014-06-15 11:54     ` Thorsten Jolitz
  2014-06-16 10:07       ` Ian Barton
  2014-06-16  9:59     ` Thorsten Jolitz
  1 sibling, 1 reply; 16+ messages in thread
From: Thorsten Jolitz @ 2014-06-15 11:54 UTC (permalink / raw)
  To: emacs-orgmode

Chris Raschl <cr@kautsig.org> writes:

Hi Chris,

> first of all, thanks for your suggestions, I really appreciate it.

thanks to you for this nice library

> I improved result processing a little bit and added a formatting string
> (org-weather-format). You can now also add different temperature fields,
> as well as humidity, pressure and wind speed.

and for your improvements

  ,--------------------------------------------------------------
  | City:     Weather: broken clouds, 11-22°C, 1028hpa, 75%, 3m/s
  `--------------------------------------------------------------

this fits my needs perfectly (living in a city right now). 

PS
Coming from a coastal area, I know that high tide, low tide, water temp
as well as moon phase are also very important for "fishermen" and
friends (just like wind speed and direction). 

This would probably make a nice accompagnient library for yours,
displaying something like this below the line above in the agenda:

,----------------------------------------------------------------------
| Coast: high: 06:43/19:25 low: 13:12/02:30 water: 18°C moon: ++++ wind: SE
`----------------------------------------------------------------------

with moon: ++++ meaning 4/4 visible (full-moon), moon: ++ meaning 2/4
visible (half-moon), moon: - meaning 0/4 visible (no moon), and wind: SE
meaning South-East.

Maybe someday if I need it again and have time ;-)

Not sure though if this data (except the moon phase) is as universally
and easily available as the data you display .... Sunset and rise would
be interesting too of course. 

-- 
cheers,
Thorsten

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

* Re: org-weather for openweathermap.org
  2014-06-14 13:11 org-weather for openweathermap.org Chris Raschl
  2014-06-14 13:41 ` Fletcher Charest
  2014-06-14 14:02 ` Thorsten Jolitz
@ 2014-06-16  8:04 ` Rüdiger Sonderfeld
  2014-06-16 13:10   ` Alan Schmitt
  2014-06-27 12:50   ` Andreas Leha
  2014-06-16 14:40 ` Doyley, Marvin
  3 siblings, 2 replies; 16+ messages in thread
From: Rüdiger Sonderfeld @ 2014-06-16  8:04 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Chris Raschl

Hi,

On Saturday 14 June 2014 15:11:21 Chris Raschl wrote: 
> recently I wanted to add a weather forecast to my org-agenda. I found
> org-google-weather, but this package is obsolete since 2012, because the
> API is not available any more. So I wrote my own version which is backed
> by the openweathermap.org API.

I've written the `weather-metno-el' package.  Which uses the weather data from 
met.no (CC licensed).  It supports showing weather data in the org-agenda as 
well.

https://github.com/ruediger/weather-metno-el

Regards,
Rüdiger

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

* Re: org-weather for openweathermap.org
  2014-06-15  9:47   ` Chris Raschl
  2014-06-15 11:54     ` Thorsten Jolitz
@ 2014-06-16  9:59     ` Thorsten Jolitz
  1 sibling, 0 replies; 16+ messages in thread
From: Thorsten Jolitz @ 2014-06-16  9:59 UTC (permalink / raw)
  To: emacs-orgmode

Chris Raschl <cr@kautsig.org> writes:

Hi, 

I made a little table comparing Beaufort and m/s with data from
Deutscher Wetterdienst, text is in German therefore, but the numbers are
not fortunately, so the table might be usefull for others too (after
deleting the text columns). 

* Windwarnskala

Quelle:
[[http://www.wettergefahren.de/warnungen/windwarnskala.html][Deutscher Wetterdienst]]


| Beaufort | Label              | m/s       | Beschreibung                                                                                 |
|----------+--------------------+-----------+----------------------------------------------------------------------------------------------|
|        0 | Windstille         | 0         | Rauch steigt senkrecht auf                                                                   |
|        1 | leiser Zug         | 1         | Windrichtung angezeigt durch den Zug des Rauches                                             |
|        2 | leichte Brise      | 2 bis 3   | Wind im Gesicht spürbar, Blätter und Windfahnen bewegen sich                                 |
|        3 | schwache Brise     | 4 bis     | Wind bewegt dünne Zweige und strecktWimpel                                                   |
|          | schwacher Wind     | 5         |                                                                                              |
|        4 | mäßige Brise       | 6 bis     | Wind bewegt Zweige und dünnere Äste,hebt Staub und loses Papier                              |
|          | mäßiger Wind       | 7         |                                                                                              |
|        5 | frische Brise      | 8 bis     | kleine Laubbäume beginnen zu schwanken, Schaumkronen bilden sich auf See                     |
|          | frischer Wind      | 10        |                                                                                              |
|        6 | starker Wind       | 11 bis    | starke Äste schwanken, Regenschirme sind nur schwer zu halten, Telegrafenleitungen           |
|          | pfeifen im Wind    | 13        |                                                                                              |
|        7 | steifer Wind       | 14 bis 17 | fühlbare Hemmungen beim Gehen gegen den Wind, ganze Bäume bewegen sich                       |
|        8 | stürmischer Wind   | 18 bis 20 | Zweige brechen von Bäumen, erschwert erheblich das Gehen im Freien                           |
|        9 | Sturm              | 21 bis 24 | Äste brechen von Bäumen, kleinere Schäden an Häusern (Dachziegel oder Rauchhauben abgehoben) |
|       10 | schwerer Sturm     | 25 bis 28 | Wind bricht Bäume, großere Schäden an Häusern                                                |
|       11 | orkanartiger Sturm | 29 bis 32 | Wind entwurzelt Bäume, verbreitet Sturmschäden                                               |
|       12 | Orkan              | ab 33     | schwere Verwüstungen                                                                         |
                                                                                                                                   

-- 
cheers,
Thorsten

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

* Re: org-weather for openweathermap.org
  2014-06-15 11:54     ` Thorsten Jolitz
@ 2014-06-16 10:07       ` Ian Barton
  2014-06-16 10:45         ` Thorsten Jolitz
  0 siblings, 1 reply; 16+ messages in thread
From: Ian Barton @ 2014-06-16 10:07 UTC (permalink / raw)
  To: Thorsten Jolitz, emacs-orgmode

On 15/06/14 12:54, Thorsten Jolitz wrote:



>
> Not sure though if this data (except the moon phase) is as universally
> and easily available as the data you display .... Sunset and rise would
> be interesting too of course.
>

You can get sunrise and sunset by doing something like in an Agenda file:

* Weather.

Lat N 51 57.931
Long W 03 33.191

#+CATEGORY: Day/Year
&%%(diary-day-of-year)
#+CATEGORY: Weather

%%(diary-sunrise)
%%(diary-sunset)

Ian.

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

* Re: org-weather for openweathermap.org
  2014-06-16 10:07       ` Ian Barton
@ 2014-06-16 10:45         ` Thorsten Jolitz
  2014-06-16 15:04           ` Ian Barton
  0 siblings, 1 reply; 16+ messages in thread
From: Thorsten Jolitz @ 2014-06-16 10:45 UTC (permalink / raw)
  To: emacs-orgmode

Ian Barton <lists@wilkesley.net> writes:

> On 15/06/14 12:54, Thorsten Jolitz wrote:
>
>
>
>>
>> Not sure though if this data (except the moon phase) is as universally
>> and easily available as the data you display .... Sunset and rise would
>> be interesting too of course.
>>
>
> You can get sunrise and sunset by doing something like in an Agenda file:
>
> * Weather.
>
> Lat N 51 57.931
> Long W 03 33.191
>
> #+CATEGORY: Day/Year
> &%%(diary-day-of-year)
> #+CATEGORY: Weather
>
> %%(diary-sunrise)
> %%(diary-sunset)

Thanks, had to use this to make it work:

#+CATEGORY: Citiy
%%(diary-sunrise-sunset)


 City:      6:32...... Sunrise (CEST), sunset 11:16pm (CEST)

But somehow lat/long are right, but time is 2h off ... I'm GMT+2 (CEST) here. 
Where is the time adjusted for diary entries?

-- 
cheers,
Thorsten

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

* Re: org-weather for openweathermap.org
  2014-06-16  8:04 ` Rüdiger Sonderfeld
@ 2014-06-16 13:10   ` Alan Schmitt
  2014-06-27 12:50   ` Andreas Leha
  1 sibling, 0 replies; 16+ messages in thread
From: Alan Schmitt @ 2014-06-16 13:10 UTC (permalink / raw)
  To: Rüdiger Sonderfeld; +Cc: emacs-orgmode, Chris Raschl

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

On 2014-06-16 10:04, Rüdiger Sonderfeld <ruediger@c-plusplus.de> writes:

> Hi,
>
> On Saturday 14 June 2014 15:11:21 Chris Raschl wrote: 
>> recently I wanted to add a weather forecast to my org-agenda. I found
>> org-google-weather, but this package is obsolete since 2012, because the
>> API is not available any more. So I wrote my own version which is backed
>> by the openweathermap.org API.
>
> I've written the `weather-metno-el' package.  Which uses the weather data from 
> met.no (CC licensed).  It supports showing weather data in the org-agenda as 
> well.
>
> https://github.com/ruediger/weather-metno-el

When it rains it pours (sorry ...)

I've tried both packages and they are very nice. Thanks a lot!

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7

[-- Attachment #2: Type: application/pgp-signature, Size: 494 bytes --]

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

* Re: org-weather for openweathermap.org
  2014-06-14 13:11 org-weather for openweathermap.org Chris Raschl
                   ` (2 preceding siblings ...)
  2014-06-16  8:04 ` Rüdiger Sonderfeld
@ 2014-06-16 14:40 ` Doyley, Marvin
  2014-06-16 15:47   ` Nick Dokos
  3 siblings, 1 reply; 16+ messages in thread
From: Doyley, Marvin @ 2014-06-16 14:40 UTC (permalink / raw)
  To: emacs-orgmode

I love this app, but there is only one snag. Changing the temperature units
from Celsius to Fahrenheit doesn't work. I get the same results regards
of the units  in specified in the org-weather-unit variable

cheers,
M
--

Marvin Doyley
Associate Professor
343 Hopeman Engineering Building
University of Rochester
Department of Electrical and Computer Engineering
Rochester NY 14627
585-275-3774
http://www.ece.rochester.edu/projects/doyley_lab/

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

* Re: org-weather for openweathermap.org
  2014-06-16 10:45         ` Thorsten Jolitz
@ 2014-06-16 15:04           ` Ian Barton
  2014-06-17 10:34             ` Thorsten Jolitz
  0 siblings, 1 reply; 16+ messages in thread
From: Ian Barton @ 2014-06-16 15:04 UTC (permalink / raw)
  To: Thorsten Jolitz, emacs-orgmode

On 16/06/14 11:45, Thorsten Jolitz wrote:
> Ian Barton <lists@wilkesley.net> writes:
>
>> On 15/06/14 12:54, Thorsten Jolitz wrote:
>>
>>
>>
>>>
>>> Not sure though if this data (except the moon phase) is as universally
>>> and easily available as the data you display .... Sunset and rise would
>>> be interesting too of course.
>>>
>>
>> You can get sunrise and sunset by doing something like in an Agenda file:
>>
>> * Weather.
>>
>> Lat N 51 57.931
>> Long W 03 33.191
>>
>> #+CATEGORY: Day/Year
>> &%%(diary-day-of-year)
>> #+CATEGORY: Weather
>>
>> %%(diary-sunrise)
>> %%(diary-sunset)
>
> Thanks, had to use this to make it work:
>
> #+CATEGORY: Citiy
> %%(diary-sunrise-sunset)
>
>
>   City:      6:32...... Sunrise (CEST), sunset 11:16pm (CEST)
>
> But somehow lat/long are right, but time is 2h off ... I'm GMT+2 (CEST) here.
> Where is the time adjusted for diary entries?
>
The Emacs manual has the information: 
https://www.gnu.org/software/emacs/manual/html_node/emacs/Daylight-Saving.html#Daylight-Saving

Also information on Lunar phases: 
https://www.gnu.org/software/emacs/manual/html_node/emacs/Lunar-Phases.html#Lunar-Phases

Ian.

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

* Re: org-weather for openweathermap.org
  2014-06-16 14:40 ` Doyley, Marvin
@ 2014-06-16 15:47   ` Nick Dokos
  2014-06-16 16:11     ` Doyley, Marvin
  0 siblings, 1 reply; 16+ messages in thread
From: Nick Dokos @ 2014-06-16 15:47 UTC (permalink / raw)
  To: emacs-orgmode

mdoyley@ur.rochester.edu (Doyley, Marvin) writes:

> I love this app, but there is only one snag. Changing the temperature units
> from Celsius to Fahrenheit doesn't work. I get the same results regards
> of the units  in specified in the org-weather-unit variable

[I don't have an org-weather-unit variable, so I presume you mean
org-weather-temperature-unit.]

Yes, one needs to change the API URL as well to get different units:

,----
| (defvar org-weather-api-url "http://api.openweathermap.org/data/2.5/forecast/daily?q=%s&mode=json&units=metric&cnt=7")
`----

AFAICT, they provide "metric", "imperial" and "internal" (don't know
what the last one means).

org-weather.el itself does not do any units conversions.

Nick

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

* Re: org-weather for openweathermap.org
  2014-06-16 15:47   ` Nick Dokos
@ 2014-06-16 16:11     ` Doyley, Marvin
  0 siblings, 0 replies; 16+ messages in thread
From: Doyley, Marvin @ 2014-06-16 16:11 UTC (permalink / raw)
  To: emacs-orgmode

Thanks,

I will change the api
cheers,
M
-- 

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

* Re: org-weather for openweathermap.org
  2014-06-16 15:04           ` Ian Barton
@ 2014-06-17 10:34             ` Thorsten Jolitz
  0 siblings, 0 replies; 16+ messages in thread
From: Thorsten Jolitz @ 2014-06-17 10:34 UTC (permalink / raw)
  To: emacs-orgmode

Ian Barton <lists@wilkesley.net> writes:

>> Thanks, had to use this to make it work:
>>
>> #+CATEGORY: Citiy
>> %%(diary-sunrise-sunset)
>>
>>
>>   City:      6:32...... Sunrise (CEST), sunset 11:16pm (CEST)
>>
>> But somehow lat/long are right, but time is 2h off ... I'm GMT+2
>> (CEST) here.
>> Where is the time adjusted for diary entries?
>>
> The Emacs manual has the information:
> https://www.gnu.org/software/emacs/manual/html_node/emacs/Daylight-Saving.html#Daylight-Saving
>
> Also information on Lunar phases:
> https://www.gnu.org/software/emacs/manual/html_node/emacs/Lunar-Phases.html#Lunar-Phases

Thanks for the info!

-- 
cheers,
Thorsten

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

* Re: org-weather for openweathermap.org
  2014-06-16  8:04 ` Rüdiger Sonderfeld
  2014-06-16 13:10   ` Alan Schmitt
@ 2014-06-27 12:50   ` Andreas Leha
  1 sibling, 0 replies; 16+ messages in thread
From: Andreas Leha @ 2014-06-27 12:50 UTC (permalink / raw)
  To: emacs-orgmode

Hi Rüdiger,

Rüdiger Sonderfeld <ruediger@c-plusplus.de> writes:

> Hi,
>
> On Saturday 14 June 2014 15:11:21 Chris Raschl wrote: 
>> recently I wanted to add a weather forecast to my org-agenda. I found
>> org-google-weather, but this package is obsolete since 2012, because the
>> API is not available any more. So I wrote my own version which is backed
>> by the openweathermap.org API.
>
> I've written the `weather-metno-el' package.  Which uses the weather data from 
> met.no (CC licensed).  It supports showing weather data in the org-agenda as 
> well.
>
> https://github.com/ruediger/weather-metno-el
>
> Regards,
> Rüdiger

just trying this package.  Also really nice!  Thanks for sharing.

I have a few questions/comments/feature requests, though:

1. Documentation of available targets.
   I wanted to include the wind speed.  Looking at the schema [fn:1] I
   tried 'windspeed' which did not work.  It took some time until I
   found the 'weather-metno--data' variable, which revealed that it
   is 'windSpeed' instead.
   Some table with all the available measurements would be handy.
   | parameter | representation | unit   | example   |
   |-----------+----------------+--------+-----------|
   | windSpeed | name           | string | Svak vind |
2. How can I get a textual representation of the symbol?
   I would like to get (additionally to the symbol) get a textual
   description (like 'partly cloudy').  I did not see an obvious way
   how to get that.
3. Two or three entries per day
   How can I have two (night/day) or better three
   (night/morning/afternoon) entries for each day?  I would like these
   to sum user-defined times.  E.g. night: 20-08, morning: 08-13 and
   afternoon 13:20.  Is that (easily) possible?
4. The org agenda entry does not point to anything.
   It would be cool (I think) if the org agenda entry pointed to a
   *Weather* buffer with detailed information from weather-metno-forecast
5. The Readme for the manual installation could remind the user to put
     (require 'weather-metno)
     (require 'org-weather-metno)
   in the .emacs
6. The documentation of 'org-weather-metno-format' points to
   'weather-query-format' which should
   probably be 'weather-metno-query-format'

Regards,
Andreas


Footnotes:

[fn:1] http://api.met.no/weatherapi/locationforecast/1.9/schema

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

end of thread, other threads:[~2014-06-27 12:50 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-14 13:11 org-weather for openweathermap.org Chris Raschl
2014-06-14 13:41 ` Fletcher Charest
2014-06-14 14:02 ` Thorsten Jolitz
2014-06-15  9:47   ` Chris Raschl
2014-06-15 11:54     ` Thorsten Jolitz
2014-06-16 10:07       ` Ian Barton
2014-06-16 10:45         ` Thorsten Jolitz
2014-06-16 15:04           ` Ian Barton
2014-06-17 10:34             ` Thorsten Jolitz
2014-06-16  9:59     ` Thorsten Jolitz
2014-06-16  8:04 ` Rüdiger Sonderfeld
2014-06-16 13:10   ` Alan Schmitt
2014-06-27 12:50   ` Andreas Leha
2014-06-16 14:40 ` Doyley, Marvin
2014-06-16 15:47   ` Nick Dokos
2014-06-16 16:11     ` Doyley, Marvin

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