From: OSiUX <xuiso@osiux.com.ar>
To: emacs-orgmode@gnu.org
Subject: Re: Reports on habits?
Date: Tue, 18 Mar 2014 09:38:54 -0300 [thread overview]
Message-ID: <20140318123854.GA12586@localhost> (raw)
In-Reply-To: <20140316001932.319475d9@aga-netbook>
[-- Attachment #1: Type: text/plain, Size: 4262 bytes --]
El dom, 16 mar 2014, Marcin Borkowski decía:
> Hi list,
>
> We all know that org-habit is great, but the only case when I actually
> see the consistency graph is in the agenda, when I did *not* do my habit
> today. Is there a way to display the consistency graph on demand, e.g.
> in the echo area? (Also, a dynamic table with a summary of my
> consistency for the last week/month/year, with a few stats, would be
> great for gamification-prone geeks like me...)
>
> Best,
Could be adapted org-timeline to display a graph
according to the habits.
Currently indicating a file name and a date
displays:
#+BEGIN_SRC sh :session :results output :exports both
org-clock 2014-02 almuerzo.org
#+END_SRC
#+RESULTS:
#+begin_example
13:50 14:28 2014-02-04
14:37 15:17 2014-02-06
14:14 15:20 2014-02-07
13:50 14:38 2014-02-10
13:55 14:48 2014-02-13
13:42 14:42 2014-02-14
11:50 14:50 2014-02-17
13:40 15:04 2014-02-18
13:37 13:48 2014-02-20
14:02 15:00 2014-02-20
14:00 14:49 2014-02-24
14:00 15:00 2014-02-25
13:09 13:40 2014-02-28
#+end_example
Adding =org-timeline= display the following graph:
#+BEGIN_SRC sh :session :results output :exports both
org-clock 2014-02 almuerzo.org | org-timeline
#+END_SRC
#+RESULTS:
#+begin_example
11: 12: 13: 14: 15: 16:
┊ ┊ ┊ ┊ ┊ ┊
┊□□□□▣▣┊□□□□□□┊□□□□□□┊□□□□□□┊□□□□□□┊ 2014-02-17 =====> 180
┊□□□□□□┊□□□□□□┊□□□▣▣▣┊□□□□□□┊□□□□□□┊ 2014-02-18 =====> 84
┊□□□□□□┊□□□□□□┊□▣▣▣□□┊□□□□□□┊□□□□□□┊ 2014-02-28 =====> 31
┊□□□□□□┊□□□□□□┊□□□□▣▣┊□□□□□□┊□□□□□□┊ 2014-02-10 =====> 48
┊□□□□□□┊□□□□□□┊□□□▣▣□┊▣▣▣▣▣▣┊□□□□□□┊ 2014-02-20 =====> 69
┊□□□□□□┊□□□□□□┊□□□□□▨┊□□□□□□┊□□□□□□┊ 2014-02-13 =====> 53
┊□□□□□□┊□□□□□□┊□□□□▣▣┊□□□□□□┊□□□□□□┊ 2014-02-04 =====> 38
┊□□□□□□┊□□□□□□┊□□□▣▣▣┊□□□□□□┊□□□□□□┊ 2014-02-14 =====> 60
┊□□□□□□┊□□□□□□┊□□□□□□┊▣▣▣▣▣□┊□□□□□□┊ 2014-02-24 =====> 49
┊□□□□□□┊□□□□□□┊□□□□□□┊□□□▣▣▣┊□□□□□□┊ 2014-02-06 =====> 40
┊□□□□□□┊□□□□□□┊□□□□□□┊▣▣▣▣▣▣┊□□□□□□┊ 2014-02-25 =====> 60
┊□□□□□□┊□□□□□□┊□□□□□□┊□▨▣▣▣▣┊□□□□□□┊ 2014-02-07 =====> 66
┊ ┊ ┊ ┊ ┊ ┊ TOTAL =====> 778
#+end_example
I need to improve the scripts to make them more
friendly, but maybe you can try.
Maybe a =org-habits= should show:
#+begin_example
| 01| 02| 03| 04| 05| 06| 07| 08| 09| 10| 11| 12| 13| 14| 15| 16| 17| 18| 19| 20| 21| 22| 23| 24| 25| 26| 27| 28|
| | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| □ | □ | □ | ▣ | □ | ▣ | ▣ | □ | □ | ▣ | □ | □ | ▣ | ▣ | □ | □ | ▣ | ▣ | □ | □ | □ | □ | □ | ▣ | ▣ | □ | □ | ▣ | almuerzo
| | | | | | | | | | | | | | | | | | | | | | | | | | | | |
| | | | 38| | 40| 66| | | 48| | | 53| 60| | |180| 84| | | | | | 49| 60| | | 31|
#+end_example
I like the ASCII/UTF8 Art :-P
http://github.com/osiris/org-bash-utils
::
Osiris Alejandro Gomez (OSiUX) osiux@osiux.com.ar
DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
http://www.osiux.com.ar http://www.altermundi.net
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
prev parent reply other threads:[~2014-03-18 12:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-15 23:19 Reports on habits? Marcin Borkowski
2014-03-17 1:25 ` Bastien
2014-03-18 12:38 ` OSiUX [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140318123854.GA12586@localhost \
--to=xuiso@osiux.com.ar \
--cc=emacs-orgmode@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.