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