emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Reports on habits?


From: OSiUX
Subject: Re: [O] Reports on habits?
Date: Tue, 18 Mar 2014 09:38:54 -0300
User-agent: Mutt/1.5.21 (2010-09-15)

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) address@hidden
  DC44 95D2 0D5D D544 FC1A F00F B308 A671 9237 D36C
  http://www.osiux.com.ar http://www.altermundi.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]