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
|
# into a csv file
|
||||||
|
|
||||||
cat export.xml |
|
cat export.xml |
|
||||||
grep 2024- |
|
grep -e 202[4567]- |
|
||||||
grep 'type="HKCategoryTypeIdentifierSleepAnalysis" sourceName="HUAWEI Health"' |
|
grep 'type="HKCategoryTypeIdentifierSleepAnalysis" sourceName="HUAWEI Health' |
|
||||||
egrep -o 'startDate[^ ]+ [^ ]+ [^ ]+ [^ ]+ [^ ]+ [^ ]+ ' |
|
egrep -o 'startDate[^ ]+ [^ ]+ [^ ]+ [^ ]+ [^ ]+ [^ ]+ ' |
|
||||||
while read line
|
while read line
|
||||||
do
|
do
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
# into a csv file
|
# into a csv file
|
||||||
|
|
||||||
cat export.xml |
|
cat export.xml |
|
||||||
grep 2024- |
|
egrep 202[45678]- |
|
||||||
grep 'type="HKQuantityTypeIdentifierStepCount" sourceName="HUAWEI Health"' |
|
grep 'type="HKQuantityTypeIdentifierStepCount" sourceName="HUAWEI Health' |
|
||||||
cut -d\" -f 14,16 |
|
cut -d\" -f 14,16 |
|
||||||
tr \" \ |
|
tr \" \ |
|
||||||
cut -d\ -f 1,4 |
|
cut -d\ -f 1,4 |
|
||||||
|
|||||||
Reference in New Issue
Block a user