Updates for 2025

This commit is contained in:
2025-02-16 12:25:29 +00:00
parent f8d3efab55
commit 7904b8e4cd
3 changed files with 7 additions and 4 deletions

3
run.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
./sleep-day.sh && ./steps-day.sh && ./merge.sh >out.csv

View File

@@ -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

View File

@@ -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 |