This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
How to load Apple Watch Health data from the export folder
marcjulianschwarz edited this page Mar 3, 2022
·
1 revision
This How-To shows how to load Apple Watch data from the export folder (-> How to export Apple Watch health data).
Import the DataLoader like this:
from watchlib.data_handler import DataLoader
Create a DataLoader and pass it the path to your apple_health_export
folder like this:
from watchlib.data_handler import DataLoader
dl = DataLoader("path/to/apple_health_export")
You can load all of the routes (-> WorkoutRoute) in path/to/apple_health_export/workout_routes
using the load_routes()
method like this:
from watchlib.data_handler import DataLoader
dl = DataLoader("path/to/apple_health_export")
routes = dl.load_routes()
You can load all of the ECGs (-> ECG) in path/to/apple_health_export/electrocardiograms
using the load_ecgs()
method like this:
from watchlib.data_handler import DataLoader
dl = DataLoader("path/to/apple_health_export")
ecgs = dl.load_ecgs()
You can load all other health data in path/to/apple_health_export/Export.xml
using the load_health_data()
method like this:
from watchlib.data_handler import DataLoader
dl = DataLoader("path/to/apple_health_export")
other_health_data = dl.load_health_data()