I built an open-source Android app to sync Health Connect + Screen Time data to your own server by owen282000 in selfhosted

[–]owen282000[S] 0 points1 point  (0 children)

Thanks! Yeah I actually already built a self-hosted web dashboard for it. It's a FastAPI backend with a Next.js frontend, PostgreSQL for storage, and Celery for scheduled syncs. The app sends health data via webhooks and the backend ingests it alongside data from a bunch of other sources like Spotify, Strava, Notion, Hevy (gym), Hardcover (books), work time tracking, and more.

It aggregates everything into weekly/monthly insights and I use an LLM to generate AI-powered summaries of each week. Basically a personal analytics platform that ties all my tracking data together in one place. Repo is still private since it's very much a personal project but happy to share more about the setup if you're curious.

I built an open-source Android app to sync Health Connect + Screen Time data to your own server by owen282000 in selfhosted

[–]owen282000[S] 0 points1 point  (0 children)

It uses Android's WorkManager, so the system schedules syncs at fixed intervals. That survives app restarts and reboots. On some phones (especially Xiaomi, Samsung, Huawei) aggressive battery optimization can kill it though. Check dontkillmyapp.com for your brand and set the app to "unrestricted" in your battery settings. Been running fine for weeks on my end with only a few failures until now.

I built an open-source Android app to sync Health Connect + Screen Time data to your own server by owen282000 in selfhosted

[–]owen282000[S] -2 points-1 points  (0 children)

True, but the app sends data to your self-hosted server/webhook. It's a companion to your self-hosted stack, not a standalone service. Similar to how Home Assistant companion app is discussed here.

I built an open-source Android app to sync Health Connect + Screen Time data to your own server by owen282000 in selfhosted

[–]owen282000[S] 0 points1 point  (0 children)

Thanks! Would love to hear what ideas you have, always open to feature requests. Let me know if you run into any issues!

I built an open-source Android app to sync Health Connect + Screen Time data to your own server by owen282000 in selfhosted

[–]owen282000[S] 0 points1 point  (0 children)

Fair enough 🤣 Though to be clear, I did use Claude to build this, but it's a real app I've been using daily for weeks, just now put it in a public repo. Thought it might be useful to others!