From: "Eric Schulte" <schulte.eric@gmail.com>
To: Mikael Fornius <mfo@abc.se>
Cc: emacs-orgmode@gnu.org, David O'Toole <dto@gnu.org>
Subject: Re: Re: orgmode and physical fitness training
Date: Thu, 06 Nov 2008 08:56:42 -0800 [thread overview]
Message-ID: <87abccu71x.fsf@gmail.com> (raw)
In-Reply-To: <87abceez2z.fsf@abc.se> (Mikael Fornius's message of "Wed, 05 Nov 2008 20:45:40 +0100")
[-- Attachment #1: Type: text/plain, Size: 1161 bytes --]
Mikael Fornius <mfo@abc.se> writes:
> David O'Toole <dto@gnu.org> writes:
>
>> Does anyone else here use org-mode for fitness and/or health tracking?
[...]
> Lately I have been thinking of and trying to implement a true org-mode
> running diary. Which means to use the org-mode file as raw-data file
> (properties) instead of my parallell sexp-assoc-list-elisp-data-file.
>
> I tried column mode but it is far too slow for 300 headings and the
> calculations possible is only sums but I need much more.
>
Hi Mikael,
I ran into a very similar issue with column view lately while trying to
use org-mode to collect experimental results. I created the attached
file, which can be used to collect data from properties in a manner
similar to column view, but using a simpler method meant only for table
display, rather than column viewing, and allowing for the application of
general elisp to the values before they are dumped into the table. I
think it would work in your case as well.
I applied it to the data you posted with the following results. The
mechanics are working, but it could use some display cleaning. The file
`org-collector.el' is attached
[-- Attachment #2: org-collector.el --]
[-- Type: application/emacs-lisp, Size: 3883 bytes --]
[-- Attachment #3: Type: text/plain, Size: 1971 bytes --]
and is available at http://github.com/eschulte/org-contrib/tree/master
Best -- Eric
** exercise
#+BEGIN: propview :id "nov" :cols (ITEM TIME DISTANCE (/ DISTANCE TIME) HEARTRATE)
| "ITEM" | "TIME" | "DISTANCE" | "(/ DISTANCE TIME)" | "HEARTRATE" |
|------------------------------------------------------------+--------+------------+---------------------+-------------|
| "<2008-11-01 sat> :running:hill:" | 20 | 3.0 | 0.15 | 169 |
| "<2008-11-02 sun> :skiing:alpine:" | 27 | 4.0 | 0.14814814814814814 | 198 |
| "<2008-11-04 tue> :running:lake:" | 27 | 6.0 | 0.2222222222222222 | 169 |
| | | | | |
#+END:
*** 2008-11 :november:
:PROPERTIES:
:ID: nov
:END:
**** <2008-11-01 sat> :running:hill:
:PROPERTIES:
:TIME: 20:08
:DISTANCE: 3.0
:HEARTRATE: 169
:MAXHEARTRATE: 183
:PACE: 4:36
:SHAPEINDEX: -8.4%
:WEATHER: +5 cloudy
:CALORIES: 370
:SHOES: nb858-1
:STATFLAG: t
:END:
**** <2008-11-02 sun> :skiing:alpine:
:PROPERTIES:
:TIME: 27:34
:DISTANCE: 4.0
:HEARTRATE: 198
:MAXHEARTRATE: 145
:PACE: 4:36
:SHAPEINDEX: -8.4%
:WEATHER: +5 cloudy
:CALORIES: 370
:SHOES: nb858-1
:STATFLAG: t
:END:
**** <2008-11-04 tue> :running:lake:
:PROPERTIES:
:TIME: 27:34
:DISTANCE: 6.0
:HEARTRATE: 169
:MAXHEARTRATE: 183
:PACE: 4:36
:SHAPEINDEX: -8.4%
:WEATHER: +5 cloudy
:CALORIES: 370
:SHOES: nb858-1
:STATFLAG: t
:END:
[-- Attachment #4: Type: text/plain, Size: 204 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2008-11-06 17:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-14 14:28 orgmode and physical fitness training David O'Toole
2008-10-14 16:53 ` Nick Dokos
2008-11-05 19:45 ` Mikael Fornius
2008-11-06 16:56 ` Eric Schulte [this message]
2008-11-06 21:33 ` Mikael Fornius
2008-11-07 17:54 ` Mikael Fornius
2008-11-07 18:02 ` Eric Schulte
2008-11-07 20:25 ` Mikael Fornius
2008-11-07 21:25 ` Eric Schulte
2008-11-10 9:29 ` Mikael Fornius
2008-11-07 20:52 ` Carsten Dominik
2008-11-07 21:52 ` Mikael Fornius
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87abccu71x.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=dto@gnu.org \
--cc=emacs-orgmode@gnu.org \
--cc=mfo@abc.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).