From mboxrd@z Thu Jan 1 00:00:00 1970 From: OSiUX Subject: Re: Reports on habits? Date: Tue, 18 Mar 2014 09:38:54 -0300 Message-ID: <20140318123854.GA12586@localhost> References: <20140316001932.319475d9@aga-netbook> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="W/nzBZO5zC0uMSeA" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPtIK-0004ni-Ix for emacs-orgmode@gnu.org; Tue, 18 Mar 2014 08:39:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPtIF-0006lN-Vn for emacs-orgmode@gnu.org; Tue, 18 Mar 2014 08:39:00 -0400 Received: from merlot.gcoop.coop ([67.208.113.123]:45567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPtIF-0006l4-NP for emacs-orgmode@gnu.org; Tue, 18 Mar 2014 08:38:55 -0400 Received: from localhost (merlot [127.0.0.1]) (Authenticated sender: xuiso@osiux.com.ar) by merlot.gcoop.coop (Postfix) with ESMTPSA id 739EB148182 for ; Tue, 18 Mar 2014 09:39:08 -0300 (ART) Content-Disposition: inline In-Reply-To: <20140316001932.319475d9@aga-netbook> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable El dom, 16 mar 2014, Marcin Borkowski dec=C3=ADa: > 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 =3Dorg-timeline=3D 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: =E2=94=8A =E2=94=8A =E2=94=8A =E2=94=8A =E2=94=8A= =E2=94=8A =E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A3=E2=96=A3=E2=94= =8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1= =E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1=E2=96=A1=E2= =96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96= =A1=E2=96=A1=E2=96=A1=E2=94=8A 2014-02-17 =3D=3D=3D=3D=3D> 180 =E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94= =8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1= =E2=96=A1=E2=96=A1=E2=96=A3=E2=96=A3=E2=96=A3=E2=94=8A=E2=96=A1=E2=96=A1=E2= =96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96= =A1=E2=96=A1=E2=96=A1=E2=94=8A 2014-02-18 =3D=3D=3D=3D=3D> 84 =E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94= =8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1= =E2=96=A3=E2=96=A3=E2=96=A3=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1=E2=96=A1=E2= =96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96= =A1=E2=96=A1=E2=96=A1=E2=94=8A 2014-02-28 =3D=3D=3D=3D=3D> 31 =E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94= =8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1= =E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A3=E2=96=A3=E2=94=8A=E2=96=A1=E2=96=A1=E2= =96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96= =A1=E2=96=A1=E2=96=A1=E2=94=8A 2014-02-10 =3D=3D=3D=3D=3D> 48 =E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94= =8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1= =E2=96=A1=E2=96=A1=E2=96=A3=E2=96=A3=E2=96=A1=E2=94=8A=E2=96=A3=E2=96=A3=E2= =96=A3=E2=96=A3=E2=96=A3=E2=96=A3=E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96= =A1=E2=96=A1=E2=96=A1=E2=94=8A 2014-02-20 =3D=3D=3D=3D=3D> 69 =E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94= =8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1= =E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A8=E2=94=8A=E2=96=A1=E2=96=A1=E2= =96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96= =A1=E2=96=A1=E2=96=A1=E2=94=8A 2014-02-13 =3D=3D=3D=3D=3D> 53 =E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94= =8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1= =E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A3=E2=96=A3=E2=94=8A=E2=96=A1=E2=96=A1=E2= =96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96= =A1=E2=96=A1=E2=96=A1=E2=94=8A 2014-02-04 =3D=3D=3D=3D=3D> 38 =E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94= =8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1= =E2=96=A1=E2=96=A1=E2=96=A3=E2=96=A3=E2=96=A3=E2=94=8A=E2=96=A1=E2=96=A1=E2= =96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96= =A1=E2=96=A1=E2=96=A1=E2=94=8A 2014-02-14 =3D=3D=3D=3D=3D> 60 =E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94= =8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1= =E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A3=E2=96=A3=E2= =96=A3=E2=96=A3=E2=96=A3=E2=96=A1=E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96= =A1=E2=96=A1=E2=96=A1=E2=94=8A 2014-02-24 =3D=3D=3D=3D=3D> 49 =E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94= =8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1= =E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1=E2=96=A1=E2= =96=A1=E2=96=A3=E2=96=A3=E2=96=A3=E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96= =A1=E2=96=A1=E2=96=A1=E2=94=8A 2014-02-06 =3D=3D=3D=3D=3D> 40 =E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94= =8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1= =E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A3=E2=96=A3=E2= =96=A3=E2=96=A3=E2=96=A3=E2=96=A3=E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96= =A1=E2=96=A1=E2=96=A1=E2=94=8A 2014-02-25 =3D=3D=3D=3D=3D> 60 =E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94= =8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1= =E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=96=A1=E2=94=8A=E2=96=A1=E2=96=A8=E2= =96=A3=E2=96=A3=E2=96=A3=E2=96=A3=E2=94=8A=E2=96=A1=E2=96=A1=E2=96=A1=E2=96= =A1=E2=96=A1=E2=96=A1=E2=94=8A 2014-02-07 =3D=3D=3D=3D=3D> 66 =E2=94=8A =E2=94=8A =E2=94=8A =E2=94=8A =E2=94=8A= =E2=94=8A TOTAL =3D=3D=3D=3D=3D> 778 #+end_example I need to improve the scripts to make them more friendly, but maybe you can try. Maybe a =3Dorg-habits=3D should show: #+begin_example | 01| 02| 03| 04| 05| 06| 07| 08| 09| 10| 11| 12| 13| 14| 15| 16| 17| 1= 8| 19| 20| 21| 22| 23| 24| 25| 26| 27| 28| | | | | | | | | | | | | | | | | | | = | | | | | | | | | | | | =E2=96=A1 | =E2=96=A1 | =E2=96=A1 | =E2=96=A3 | =E2=96=A1 | =E2=96=A3= | =E2=96=A3 | =E2=96=A1 | =E2=96=A1 | =E2=96=A3 | =E2=96=A1 | =E2=96=A1 | = =E2=96=A3 | =E2=96=A3 | =E2=96=A1 | =E2=96=A1 | =E2=96=A3 | =E2=96=A3 | =E2= =96=A1 | =E2=96=A1 | =E2=96=A1 | =E2=96=A1 | =E2=96=A1 | =E2=96=A3 | =E2=96= =A3 | =E2=96=A1 | =E2=96=A1 | =E2=96=A3 | almuerzo | | | | | | | | | | | | | | | | | | = | | | | | | | | | | | | | | | 38| | 40| 66| | | 48| | | 53| 60| | |180| 8= 4| | | | | | 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 --W/nzBZO5zC0uMSeA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBAgAGBQJTKD5dAAoJELMIpnGSN9NsykYQAJo3T/GNYgtnaYGmIqM73eDI qt8MOWir97qnlN26r59uN30PjmYd/RTy3uqqbsYAHzsdkmzJzpNSxD4CHjJpcm3Z j6cc/wIRYzHYtKYF/5zUY60eg2QdwS4CATqBY021cV9lh3ztG44eatXC++/7rnjc jC8rUWEkRRRypfmzMbbb4c4gzjkD7ywvUOTIi3KTFg6SKBGBCLzMHCLNNH0LAPKk f5WxsSC8e5XS0o0NqldrSU30WCp3e7V99oaUqBDnfu+aE2vsCjM+/bcQ+0NZwe6D 7OciThNNMW3w/kNPiKjx0gczBHj6lxzmp7ZahAVQLshtR9u7f+AShtP1PplHxQYt GRHKFyO7uMdg8JxFR4fMpLYO6pNU8NhdoyiRxahupnUofpTq73YvSQBo1wrQTkVK z2JFmOapVJLU78hkdboTzqZsveiUdUk0rNGOZGjigdooKg4FCZlZSVD63drqLtnb JdPDnT/wgj0UPRVpUGEM6oxqaIrRmhWJLc5/7ZPQI+wLTruokCpL5p5lXX6sUp1R g9vSeFWLM6eFC4fPADZ0YlSwqdqCMHaPCwZUQ/ZwcD30f1WYHOfOsnl6aN1pZ08B vpWT8vfSG0fr4wH/VYULn/6J8wn2uJzA+xfS8stFPbyaHnUC2xTIL50dMlM1yJQN BoXmzQ7fWQKIz5a/2hQr =SA7+ -----END PGP SIGNATURE----- --W/nzBZO5zC0uMSeA--