derky1202 / apple-health-exporter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to apple-health-exporter 👋

License: MIT Twitter: fuergaosi

Explore your apple health with Grafana

Dashbaord

update

  • 使用如下命令,可以直接将json文件推送到server,最后到数据库。可以配合shortcut使用 curl -X POST "http://192.168.2.21:38001/upload/lin" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "file=@test.json"

  • 也可以配合shortcut使用,比如

cd ~ && cd Downloads && curl -X POST "http://192.168.2.21:38001/upload/lin" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "file=@$(ls -t HealthAutoExport-*.json | head -n1)" && rm HealthAutoExport*.json

🏠 Homepage | ✨ Demo

Deploy on Railway

Install

copy .env.example .env
# edit .env
docker compose up -d

Config Grafana

  1. Config Postgresql DB (Timescale) DB
  2. Import dashboard.json to your dashboard DB
  3. Enjoy it

Start Sync data

  1. Download Health Auto Export - JSON+CSV from App Store
  2. Config Automations like this Config

You might have to pay for it. There's a not free app. You can use Shortcuts to do this. But I don't know how to do it. If you know, please tell me.

URL is <your domain>/upload
Such as
http://localhost:8000/upload
https://xxx.railway.app/upload

  1. Click Update

👤 Holegots

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

About


Languages

Language:Python 94.7%Language:Dockerfile 5.3%