From db1368afef3b052ab50d70d4d61c7c88ceb2361e Mon Sep 17 00:00:00 2001 From: David O'Toole Date: Tue, 15 Nov 2022 16:04:33 -0500 Subject: [PATCH] use a full month of data --- example.org | 227 ++++++++++++++++++++++--- example.svg | 398 ++++++++++++++++++++++++++++++++++++-------- health-template.org | 16 +- 3 files changed, 546 insertions(+), 95 deletions(-) diff --git a/example.org b/example.org index 07164bc..225ed2b 100644 --- a/example.org +++ b/example.org @@ -88,6 +88,23 @@ data using 1:7 with lines title 'pain (scale)' lt 6 | Date | exercise minutes | sleep hours | nicotine doses | distress scale | missed doses | pain scale | |------------------+------------------+-------------+----------------+----------------+--------------+------------| | | | | | | | | +| [2022-09-13 Tue] | 0 | 12 | 8 | 5 | 0 | 0 | +| [2022-09-14 Wed] | 0 | 12 | 7 | 4 | 0 | 0 | +| [2022-09-15 Thu] | 20 | 12 | 8 | 3 | 1 | 0 | +| [2022-09-16 Fri] | 15 | 14 | 5 | 3 | 0 | 0 | +| [2022-09-17 Sat] | 30 | 12 | 7 | 4 | 0 | 1 | +| [2022-09-18 Sun] | 15 | 9 | 7 | 5 | 0 | 2 | +| [2022-09-19 Mon] | 0 | 7 | 6 | 6 | 0 | 3 | +| [2022-09-20 Tue] | 20 | 8 | 7 | 4 | 0 | 3 | +| [2022-09-21 Wed] | 15 | 10 | 5 | 3 | 0 | 3 | +| [2022-09-22 Thu] | 20 | 11 | 6 | 3.5 | 0 | 3 | +| [2022-09-23 Fri] | 0 | 9 | 6 | 3 | 0 | 3 | +| [2022-09-24 Sat] | 10 | 13 | 6 | 2 | 0 | 3 | +| [2022-09-25 Sun] | 0 | 8.5 | 5 | 2 | 0 | 2 | +| [2022-09-26 Mon] | 15 | 13 | 7 | 6 | 0 | 2 | +| [2022-09-27 Tue] | 0 | 10 | 5 | 5 | 1 | 2 | +| [2022-09-28 Wed] | 30 | 10 | 5 | 3 | 0 | 2 | +| [2022-09-29 Thu] | 0 | 12 | 4 | 3 | 0 | 2 | | [2022-09-30 Fri] | 20 | 6 | 4 | 4 | 0 | 2 | | [2022-10-01 Sat] | 10 | 7.5 | 6 | 3 | 0 | 2 | | [2022-10-02 Sun] | 15 | 8 | 7 | 2 | 0 | 2 | @@ -102,8 +119,8 @@ data using 1:7 with lines title 'pain (scale)' lt 6 | [2022-10-11 Tue] | 0 | 6.5 | 4 | 4 | 0 | 2 | | [2022-10-12 Wed] | 0 | 3 | 0 | 3 | 0 | 2 | | [2022-10-13 Thu] | 0 | 4.5 | 0 | 3 | 0 | 3 | -| [2022-10-14 Fri] | 0 | 4 | 0 | 3 | 1 | 3 | -| [2022-10-15 Sat] | 0 | 5 | 0 | 3 | 0 | 2 | +| [2022-10-14 Fri] | 0 | 4 | 0 | 3 | 0 | 3 | +| [2022-10-15 Sat] | 0 | 5 | 0 | 3 | 1 | 2 | | [2022-10-16 Sun] | 0 | 2 | 0 | 4 | 0 | 1 | | [2022-10-17 Mon] | 0 | 4.5 | 0 | 3 | 0 | 2 | #+END: @@ -115,15 +132,184 @@ data using 1:7 with lines title 'pain (scale)' lt 6 :ID: myid :END: - + +** <2022-09-13 Tue> +:PROPERTIES: +:exercise: 0 +:sleep: 12 +:nicotine: 8 +:distress: 5 +:missed: 0 +:pain: 0 +:END: + +** <2022-09-14 Wed> +:PROPERTIES: +:exercise: 0 +:sleep: 12 +:nicotine: 7 +:distress: 4 +:missed: 0 +:pain: 0 +:END: + +** <2022-09-15 Thu> +:PROPERTIES: +:exercise: 20 +:sleep: 12 +:nicotine: 8 +:distress: 3 +:missed: 1 +:pain: 0 +:END: + +** <2022-09-16 Fri> +:PROPERTIES: +:exercise: 15 +:sleep: 14 +:nicotine: 5 +:distress: 3 +:missed: 0 +:pain: 0 +:END: + +** <2022-09-17 Sat> +:PROPERTIES: +:exercise: 30 +:sleep: 12 +:nicotine: 7 +:distress: 4 +:missed: 0 +:pain: 1 +:END: + +** <2022-09-18 Sun> +:PROPERTIES: +:exercise: 15 +:sleep: 9 +:nicotine: 7 +:distress: 5 +:missed: 0 +:pain: 2 +:END: + +** <2022-09-19 Mon> +:PROPERTIES: +:exercise: 0 +:sleep: 7 +:nicotine: 6 +:distress: 6 +:missed: 0 +:pain: 3 +:END: + +** <2022-09-20 Tue> +:PROPERTIES: +:exercise: 20 +:sleep: 8 +:nicotine: 7 +:distress: 4 +:missed: 0 +:pain: 3 +:END: + +** <2022-09-21 Wed> +:PROPERTIES: +:exercise: 15 +:sleep: 10 +:nicotine: 5 +:distress: 3 +:missed: 0 +:pain: 3 +:END: + +** <2022-09-22 Thu> +:PROPERTIES: +:exercise: 20 +:sleep: 11 +:nicotine: 6 +:distress: 3.5 +:missed: 0 +:pain: 3 +:END: + +** <2022-09-23 Fri> +:PROPERTIES: +:exercise: 0 +:sleep: 9 +:nicotine: 6 +:distress: 3 +:missed: 0 +:pain: 3 +:END: + +** <2022-09-24 Sat> +:PROPERTIES: +:exercise: 10 +:sleep: 13 +:nicotine: 6 +:distress: 2 +:missed: 0 +:pain: 3 +:END: + +** <2022-09-25 Sun> +:PROPERTIES: +:exercise: 0 +:sleep: 8.5 +:nicotine: 5 +:distress: 2 +:missed: 0 +:pain: 2 +:END: + +** <2022-09-26 Mon> +:PROPERTIES: +:exercise: 15 +:sleep: 13 +:nicotine: 7 +:distress: 6 +:missed: 0 +:pain: 2 +:END: + +** <2022-09-27 Tue> +:PROPERTIES: +:exercise: 0 +:sleep: 10 +:nicotine: 5 +:distress: 5 +:missed: 1 +:pain: 2 +:END: + +** <2022-09-28 Wed> +:PROPERTIES: +:exercise: 30 +:sleep: 10 +:nicotine: 5 +:distress: 3 +:missed: 0 +:pain: 2 +:END: + +** <2022-09-29 Thu> +:PROPERTIES: +:exercise: 0 +:sleep: 12 +:nicotine: 4 +:distress: 3 +:missed: 0 +:pain: 2 +:END: ** <2022-09-30 Fri> :PROPERTIES: :exercise: 20 :sleep: 6 :nicotine: 4 :distress: 4 -:pain: 2 :missed: 0 +:pain: 2 :END: ** <2022-10-01 Sat> :PROPERTIES: @@ -131,28 +317,26 @@ data using 1:7 with lines title 'pain (scale)' lt 6 :sleep: 7.5 :nicotine: 6 :distress: 3 -:pain: 2 :missed: 0 +:pain: 2 :END: - ** <2022-10-02 Sun> :PROPERTIES: :exercise: 15 :sleep: 8 :nicotine: 7 :distress: 2 -:pain: 2 :missed: 0 +:pain: 2 :END: - ** <2022-10-03 Mon> :PROPERTIES: :exercise: 0 :sleep: 6 :nicotine: 5 :distress: 2 -:pain: 2 :missed: 0 +:pain: 2 :END: ** <2022-10-04 Tue> :PROPERTIES: @@ -160,8 +344,8 @@ data using 1:7 with lines title 'pain (scale)' lt 6 :sleep: 8.5 :nicotine: 5 :distress: 4 -:pain: 2 :missed: 0 +:pain: 2 :END: ** <2022-10-05 Wed> :PROPERTIES: @@ -169,8 +353,8 @@ data using 1:7 with lines title 'pain (scale)' lt 6 :sleep: 8 :nicotine: 5 :distress: 4 -:pain: 2 :missed: 0 +:pain: 2 :END: ** <2022-10-06 Thu> :PROPERTIES: @@ -178,8 +362,8 @@ data using 1:7 with lines title 'pain (scale)' lt 6 :sleep: 8.5 :nicotine: 5 :distress: 4 +:missed: 0 :pain: 2 -:missed: 0 :END: ** <2022-10-07 Fri> :PROPERTIES: @@ -187,8 +371,8 @@ data using 1:7 with lines title 'pain (scale)' lt 6 :sleep: 6 :nicotine: 5 :distress: 3 -:pain: 2 :missed: 0 +:pain: 2 :END: ** <2022-10-08 Sat> :PROPERTIES: @@ -196,8 +380,8 @@ data using 1:7 with lines title 'pain (scale)' lt 6 :sleep: 9 :nicotine: 0 :distress: 3 -:pain: 2 :missed: 0 +:pain: 2 :END: ** <2022-10-09 Sun> :PROPERTIES: @@ -205,9 +389,8 @@ data using 1:7 with lines title 'pain (scale)' lt 6 :sleep: 6 :nicotine: 3 :distress: 4 -:pain: 2 -:meditation: 0 :missed: 0 +:pain: 2 :END: ** <2022-10-10 Mon> :PROPERTIES: @@ -215,8 +398,8 @@ data using 1:7 with lines title 'pain (scale)' lt 6 :sleep: 6 :nicotine: 5 :distress: 5 -:pain: 2 :missed: 0 +:pain: 2 :END: ** <2022-10-11 Tue> :PROPERTIES: @@ -224,8 +407,8 @@ data using 1:7 with lines title 'pain (scale)' lt 6 :sleep: 6.5 :nicotine: 4 :distress: 4 -:pain: 2 :missed: 0 +:pain: 2 :END: ** <2022-10-12 Wed> :PROPERTIES: @@ -233,8 +416,8 @@ data using 1:7 with lines title 'pain (scale)' lt 6 :sleep: 3 :nicotine: 0 :distress: 3 -:pain: 2 :missed: 0 +:pain: 2 :END: ** <2022-10-13 Thu> :PROPERTIES: @@ -242,8 +425,8 @@ data using 1:7 with lines title 'pain (scale)' lt 6 :sleep: 4.5 :nicotine: 0 :distress: 3 -:pain: 3 :missed: 0 +:pain: 3 :END: ** <2022-10-14 Fri> :PROPERTIES: @@ -251,8 +434,8 @@ data using 1:7 with lines title 'pain (scale)' lt 6 :sleep: 4 :nicotine: 0 :distress: 3 +:missed: 0 :pain: 3 -:missed: 1 :END: ** <2022-10-15 Sat> :PROPERTIES: @@ -260,8 +443,8 @@ data using 1:7 with lines title 'pain (scale)' lt 6 :sleep: 5 :nicotine: 0 :distress: 3 +:missed: 1 :pain: 2 -:missed: 0 :END: ** <2022-10-16 Sun> :PROPERTIES: diff --git a/example.svg b/example.svg index ee7002b..879164e 100644 --- a/example.svg +++ b/example.svg @@ -96,12 +96,26 @@ - Fri 09/30 + Tue 09/13 - + + + + + + + + + + Wed 09/14 + + + + @@ -110,12 +124,26 @@ - Sat 10/01 + Thu 09/15 - + + + + + + + + + + Fri 09/16 + + + + @@ -124,12 +152,26 @@ - Sun 10/02 + Sat 09/17 - + + + + + + + + + + Sun 09/18 + + + + @@ -138,12 +180,26 @@ - Mon 10/03 + Mon 09/19 - + + + + + + + + + + Tue 09/20 + + + + @@ -152,12 +208,26 @@ - Tue 10/04 + Wed 09/21 - + + + + + + + + + + Thu 09/22 + + + + @@ -166,12 +236,26 @@ - Wed 10/05 + Fri 09/23 - + + + + + + + + + + Sat 09/24 + + + + @@ -180,12 +264,26 @@ - Thu 10/06 + Sun 09/25 - + + + + + + + + + + Mon 09/26 + + + + @@ -194,12 +292,26 @@ - Fri 10/07 + Tue 09/27 - + + + + + + + + + + Wed 09/28 + + + + @@ -208,12 +320,26 @@ - Sat 10/08 + Thu 09/29 - + + + + + + + + + + Fri 09/30 + + + + @@ -222,12 +348,26 @@ - Sun 10/09 + Sat 10/01 - + + + + + + + + + + Sun 10/02 + + + + @@ -236,12 +376,26 @@ - Mon 10/10 + Mon 10/03 - + + + + + + + + + + Tue 10/04 + + + + @@ -250,12 +404,26 @@ - Tue 10/11 + Wed 10/05 - + + + + + + + + + + Thu 10/06 + + + + @@ -264,12 +432,26 @@ - Wed 10/12 + Fri 10/07 - + + + + + + + + + + Sat 10/08 + + + + @@ -278,12 +460,26 @@ - Thu 10/13 + Sun 10/09 - + + + + + + + + + + Mon 10/10 + + + + @@ -292,12 +488,26 @@ - Fri 10/14 + Tue 10/11 - + + + + + + + + + + Wed 10/12 + + + + @@ -306,12 +516,26 @@ - Sat 10/15 + Thu 10/13 - + + + + + + + + + + Fri 10/14 + + + + @@ -320,12 +544,26 @@ + Sat 10/15 + + + + + + + + + + + + Sun 10/16 - + @@ -369,13 +607,23 @@ - - - - - - - + + + + + + + + + + + + + + + + + @@ -386,9 +634,11 @@ - + nicotine (doses) @@ -397,9 +647,11 @@ - + distress (scale) @@ -408,9 +660,11 @@ - + missed (doses) @@ -419,7 +673,9 @@ - + + + @@ -430,9 +686,11 @@ - + diff --git a/health-template.org b/health-template.org index b616b2c..14b5ce5 100644 --- a/health-template.org +++ b/health-template.org @@ -2,6 +2,16 @@ The Emacs Lisp code for this talk can be found at https://gitlab.com/dto/health-template -* TODO Show health-tracking.el -* TODO Eval definitions of health params -* TODO Show resulting template and graph +* TODO Show file:example.svg +* TODO Show file:health-template.el +** TODO Review definitions of health params +** TODO Run example and show resulting template +* TODO Show file:example.org + +* Benefits + +- Easy capture with org template +- Communication with health care professionals +- Power of org-mode and gnuplot +- Can plot org-tags and formulas (not shown) +- Version control