mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-07 21:15:19 +03:00
;examples:self-tracking: add missing files
This commit is contained in:
parent
eda114d56a
commit
6a629289c9
8
examples/self-tracking/d.csv
Normal file
8
examples/self-tracking/d.csv
Normal file
@ -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
|
|
35
examples/self-tracking/d.csv.rules
Normal file
35
examples/self-tracking/d.csv.rules
Normal file
@ -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
|
8
examples/self-tracking/d.dat
Normal file
8
examples/self-tracking/d.dat
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user