Private Exercise Tracking with Android, Tasker, OpenTracks, and FitTrackee
Intro
Recently I set up a private and self-hosted exercise tracker, like Strava but without sharing my data with them and their 700 advertising partners.
OpenTracks is a sport tracking application that completely respects your privacy, and it's so private, that it doesn't even request Internet permissions, and can't upload to your Google Drive either.
FitTrackee is a simple self-hosted, web-based, workout/activity tracker.
OpenTracks can export activity records to a file, and FitTrackee can import them, but how can we automatically get the record from one to the other? This post is about doing that with Tasker.
Task
Tasker is a total automation app for Android and here I'll share the task I wrote to solve this problem. It watches a folder for the activity record, then uploads it over HTTPS.
First, set OpenTracks to export a track to storage after recording is finished. For where, use a folder named Opentracks/ on the root of the filesystem.
Then, import this profile and task.
Then:
- Change the URL to that of your FitTrackee instance in 3 places.
- Change the login email and password to that of your FitTrackee user.
- If needed, change the folder the profile watches.
Finally, try recording an activity with OpenTracks and opening FitTrackee.
