Apple Health Api Save

Create a personal Apple Health API using Shortcuts and Firebase

Project README

Personal Apple Health API

PS: For detailed usage please read the story on Medium.

A Firebase project to parse and store Apple Health data from your iPhone. Using a Firebase HTTP function to parse the data and Firestore to store the data. Use Firebase JS SDK to use it in your web applications.

See Firestore and Functions documentations for further details.

Shortcuts app is use to export health data. Unfortunetely Apple doesn't provide any API to use Health app data outside of iOS platforms. A shortcut is provided to export data in JSON format. In order for Firebase HTTP function to parse data you need to provide its URL to provided shortcut.

See Shurtcuts User Guide for further details.

Firestore Preview

Firestore Preview


Prerequisites

Before starting to use this project you need to do some manual work. Please see the below table.

Description
Shortcut Download the shortcut to export Health app data
Firebase Project Setup a Firebase project with default location selected
Firestore Setup a Firestore database in native mode

Install

# Clone the project
git clone [email protected]:emreyilmaz7c6/apple-health-api.git

# Go to project folder
cd apple-health-app

# Login to Firebase
npx firebase-tools login

# Init the firebase project
npx firebase-tools init

After running the init command just follow the interactive CLI. You will se the URL of Firebase function after the initialization. You need this URL to use in Shortcuts.

Deployment

npx firebase-tools deploy
Open Source Agenda is not affiliated with "Apple Health Api" Project. README Source: emreloper/apple-health-api

Open Source Agenda Badge

Open Source Agenda Rating