From 6a629289c91deb73ed6ff6419e9dcd6b6194bbc9 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 27 Jun 2023 18:55:08 -1000 Subject: [PATCH] ;examples:self-tracking: add missing files --- examples/self-tracking/d.csv | 8 +++++++ examples/self-tracking/d.csv.rules | 35 ++++++++++++++++++++++++++++++ examples/self-tracking/d.dat | 8 +++++++ 3 files changed, 51 insertions(+) create mode 100644 examples/self-tracking/d.csv create mode 100644 examples/self-tracking/d.csv.rules create mode 100644 examples/self-tracking/d.dat diff --git a/examples/self-tracking/d.csv b/examples/self-tracking/d.csv new file mode 100644 index 000000000..93a46d2fd --- /dev/null +++ b/examples/self-tracking/d.csv @@ -0,0 +1,8 @@ +2023-06-27|06:40|Wakeup +2023-06-27|06:40|Last_night_sleep_time|07h21 +2023-06-27|06:40|Last_night_sleep_interruptions|1 +2023-06-27|06:40|Yesterdays_Steps|11898 +2023-06-27|08:49|Temperature|24.8 +2023-06-27|08:49|Humidity|40% +2023-06-27|09:21|Take_Iron?|No +2023-06-27|09:21|Take_VitaminD3?|No diff --git a/examples/self-tracking/d.csv.rules b/examples/self-tracking/d.csv.rules new file mode 100644 index 000000000..b462cd687 --- /dev/null +++ b/examples/self-tracking/d.csv.rules @@ -0,0 +1,35 @@ +separator | +fields date, time, description, value + +comment time:%time, value:%value + +account1 (events) + +amount1 1 events +if %value ^[0-9]+$ + amount1 %value events +if steps + amount1 %value steps +if %value no + amount1 0 events +if %value yes + amount1 1 events + +if +wake +sleep + account1 (body:sleep) + +if +steps + account1 (body:exercise) + +if +iron +vitamin + account1 (body:supplements) + +if +pizza + account1 (food) + amount1 200 cal diff --git a/examples/self-tracking/d.dat b/examples/self-tracking/d.dat new file mode 100644 index 000000000..d75e1f698 --- /dev/null +++ b/examples/self-tracking/d.dat @@ -0,0 +1,8 @@ +2023-06-27 06:40 Wakeup +2023-06-27 06:40 Last_night_sleep_time: 07h21 +2023-06-27 06:40 Last_night_sleep_interruptions: 1 +2023-06-27 06:40 Yesterdays_Steps: 11898 +2023-06-27 08:49 Temperature: 24.8 +2023-06-27 08:49 Humidity: 40% +2023-06-27 09:21 Take_Iron? No +2023-06-27 09:21 Take_VitaminD3? No