Updates for 2025
This commit is contained in:
3
run.sh
Executable file
3
run.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
./sleep-day.sh && ./steps-day.sh && ./merge.sh >out.csv
|
||||
@@ -4,8 +4,8 @@
|
||||
# into a csv file
|
||||
|
||||
cat export.xml |
|
||||
grep 2024- |
|
||||
grep 'type="HKCategoryTypeIdentifierSleepAnalysis" sourceName="HUAWEI Health"' |
|
||||
grep -e 202[4567]- |
|
||||
grep 'type="HKCategoryTypeIdentifierSleepAnalysis" sourceName="HUAWEI Health' |
|
||||
egrep -o 'startDate[^ ]+ [^ ]+ [^ ]+ [^ ]+ [^ ]+ [^ ]+ ' |
|
||||
while read line
|
||||
do
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
# into a csv file
|
||||
|
||||
cat export.xml |
|
||||
grep 2024- |
|
||||
grep 'type="HKQuantityTypeIdentifierStepCount" sourceName="HUAWEI Health"' |
|
||||
egrep 202[45678]- |
|
||||
grep 'type="HKQuantityTypeIdentifierStepCount" sourceName="HUAWEI Health' |
|
||||
cut -d\" -f 14,16 |
|
||||
tr \" \ |
|
||||
cut -d\ -f 1,4 |
|
||||
|
||||
Reference in New Issue
Block a user