Live data from Hacker News

Show HN: Workout Tracker – self-hosted, single binary web application

github.com

11–20 of 102 posts

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#12
Sweet! 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 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

#13
post #8
post #6

I 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

Synology NASes are a popular choice.

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#14

Sweet! 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…

I'm interested in your Python script!

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#15
post #8
post #6

I 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

I do think there's a niche hole in the market for a cloud host that's as easy to use as the major app stores. Fiddling with hardware and network routing is way too technical.

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#16

nice. How do you track teh distance (walked or running?)

Not sure exactly what you are asking about, so I'll be verbose :-)

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

#17

Sweet! 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…

Would you mind cleaning up your script and open-sourcing it? It could be a sort of external component to many such projects...

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#18
Slightly 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 workout and use that and the weight from last session to guide what I'll be doing in the current session. I don't need a graph as I can clearly see the values going up or stagnating. I honestly feel like the analog process has helped me keep consistent. It's motivated me to get more notebooks to track stuff like household chores. Sometimes the best app is a piece of paper.

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#19
post #5

This 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

I did some evaluation of HTMX a few weeks ago; while I understand the appeal, it does not yet ... vibe with me. Also, the use for HTMX is still very limited in this project. I don't think this will really change, because the project is fairly focused and will remain so for the time being. Maybe there is an opportunity with the statistics and graphs? Like switch the buckets between km, miles, and number of those (1 km, 5 km, etc), of zoom to more years.

Re: Show HN: Workout Tracker – self-hosted, single binary web application

#20

Slightly 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…

[deleted]
Post reply on HN