Show HN: Workout Tracker – self-hosted, single binary web application
11–20 of 102 posts
Re: Show HN: Workout Tracker – self-hosted, single binary web application
#12I wrote a Python script that iterates through all of my activities there and downloads the `.gpx` for each - I could share the code if interested! Not sure how you'd integrate it into your app - maybe a "import from Strava" page could handle the Strava API auth?
I also love this idea of self-hosting some web apps (especially if they're containerized). I setup a `util.` subdomain and have started putting a few things there at different root directories. It's fun!
Re: Show HN: Workout Tracker – self-hosted, single binary web application
#13Re: Show HN: Workout Tracker – self-hosted, single binary web application
#14Sweet! Would love to host this myself and get rid of my Strava subscription. I wrote a Python script that iterates through all of my activities there and downloads the `.gpx` for each - I could share the code if interested! Not sure how you'd integrate it into your app - maybe a "import from Strava" page could handle the Strava API auth? I also love this idea of self-hosting some web apps (especially if they're conta…
Re: Show HN: Workout Tracker – self-hosted, single binary web application
#15I love the minor movement toward self-hosted web apps. I wish they were easy enough to setup as installing an app on Android or iPhone.
Hole in the market? Maybe a NAS-type system for self host? Something a bit stronger than a raspberry
Re: Show HN: Workout Tracker – self-hosted, single binary web application
#16nice. How do you track teh distance (walked or running?)
I use an app called FitoTrack (also FOSS), which records my location while running. It stores my GPS position every few seconds. When I'm done, it auto-exports a GPX file to a folder on my phone, which is synced via syncthing. Then I (manually, for now) upload the file to my self-hosted workout tracker.
The GPX file contains some data per measurement point; this is the second point in some random GPX file:
56.72105575919558
1.8200000524520874
2024-02-28T09:28:26Z
So it contains speed (average since previous point), elevation, location and time (offtopic: it took me a while to understand that this elevation is not the actual elevation above sea level; only yesterday I figured that out and fixed it in the code!).The Go GPX library some of this information, and some extras (like max and min elevation, max speed, total up and down, etc. over the whole track). Then I perform some more calculations (like putting the points in buckets per km and per minute), and calculate the estimated location using a geocoder library.
Then, finally, to estimate the difference between walking, running, or cycling, I take the average speed and guesstimate from there. This may be wrong some times for some people, and could be improved on. Or maybe I should include an AI here? (just kidding)
Re: Show HN: Workout Tracker – self-hosted, single binary web application
#17Sweet! Would love to host this myself and get rid of my Strava subscription. I wrote a Python script that iterates through all of my activities there and downloads the `.gpx` for each - I could share the code if interested! Not sure how you'd integrate it into your app - maybe a "import from Strava" page could handle the Strava API auth? I also love this idea of self-hosting some web apps (especially if they're conta…
Re: Show HN: Workout Tracker – self-hosted, single binary web application
#18Re: Show HN: Workout Tracker – self-hosted, single binary web application
#19This is great! Am a fan of this kind of focused, self hosted application. Clean UI, too. Interested to hear your thoughts on HTMX when you get around to eval-ing it
Re: Show HN: Workout Tracker – self-hosted, single binary web application
#20Slightly off topic, but I got tired of looking for a good weight training tracker, so instead I bought a notebook and a pencil and I've been using it for nearly two years. If I want to change up how I long my workouts, I just write them in a different way. I've changed how I log number of sets/reps, weight per set, etc, a few times and I've never had to re-program how the info is displayed. I log how I feel after the…