Live data from Hacker News

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

github.com

51–60 of 102 posts

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

#51
post #48

Earlier quoted context omitted.

I think a good question to ask is, what is gained here by being a web app? Couldn't this just be an Android or iPhone (or even desktop!) app?

Web app = Always on. No interruption from power outages or wifi problems. Higher bandwidth and more anonymous (if it's going to make requests). Virtual android device in the cloud might be a great model for it since Android has good built-in security and process isolation.

> Web app = Always on. No interruption from power outages or wifi problems

Web apps don't magically produce their own compute, power and networking. They still need to be run on something.

(Web app does not automatically equal SaaS, especially in this case that is explicitly billed as self-hosted.)

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

#52
post #24

Looks great! Any chance you plan for it to work with .fit files? Thanks for making this!

Yes, as stated in the README... I would love to. There seem to be some libraries to parse the .fit file, so when I have more time, I'll take a look at that.

https://github.com/jovandeginste/workout-tracker/pull/5

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

#53
post #37

Anyone has good resources on importing such data from apple - I’m using Apple Watch but would love to visualize raw data myself with grafana

Sibling mentions HealthFit, and there's RunGap as well. I use RunGap simply because HealthFit doesn't do Garmin. With the exception of Garmin, either could be a good choice.

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

#54
post #49
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.

That was the promise of Sandstorm. "Easy to install" is important but sandboxing and data protection _even of the data you give the app itself_ is just as important. I really hope it or something like it succeeds someday. Edit: this app would probably make for a great Sandstorm app.

Cloudron and YunoHost are Sandstorm alternatives that seem to have more traction.

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

#55
post #3

This looks truly excellent, nice work! I've been using RideWithGPS, which is a great tool, but doesn't scratch my "self-host everything, own my own data" itch, so I'll definitely be checking this out. I've built (and use daily) my own barebones workout tracker [1], but it's for non-distance-based workouts (i.e. rep-based stuff/lifts), so this compliments that nicely. [1] https://github.com/bcspragu/stronk

How many things do you self host and how do you manage them all?

  $ kubectl get deployments.apps | wc -l
  25
Minus the header, looks like ~24. I use a single-node Kubernetes cluster running Talos [1]. Running a single-node cluster is kinda dumb architecturally, but adding a new service takes
  deployment: : spec: template: spec: {
   containers: [{
    ports: [...]
    command: [...]
    volumeMounts: [...]
   }]
   volumes: [...]
  }
And then running:

  cue export \
    --out yaml \
    --expression 'deployment.' \
    --expression 'service.' \
    kube.cue /.cue | kubectl apply -f -
Where `kube.cue` sets reasonable defaults (e.g. image is /). The "cluster" runs on a mini PC in my basement, and I have a small Digital Ocean VM with a static IP acting as an ingress (networking via Tailscale). Backups to cloud storage with restic, alerting/monitoring with Prometheus/Grafana, Caddy/Tailscale for local ingress.

[1] https://www.talos.dev/

[2] https://cuelang.org/

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

#56
post #48

Earlier quoted context omitted.

I think a good question to ask is, what is gained here by being a web app? Couldn't this just be an Android or iPhone (or even desktop!) app?

Web app = Always on. No interruption from power outages or wifi problems. Higher bandwidth and more anonymous (if it's going to make requests). Virtual android device in the cloud might be a great model for it since Android has good built-in security and process isolation.

I still can't use it if my power or internet are out though, even if the server still has both.

(Rephrased to be less mean.)

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

#57
post #50

Earlier quoted context omitted.

I've only been using it since I saw it recommended a few weeks ago, but for Hacker's Diet[RIP, 0]-style diet tracking MacroFactor has been unbeatable. Nothing dumb or meaninglessly social, just weight+nutrition tracking. In recognition that humans are imperfect and that both sides of CI/CO are more complicated than is apparent, they have built the system around a "best effort" vibe; systematic bias gets filtered out…

CI/CO is what I used to lose weight (back to normal BMI as of today, actually). I won’t lie and say it was “easy”. I had to make real changes, and some were not easy for me (cheese. Peanuts…). But after I bought a scale and weighed my portions, it was readily apparent what was wrong for me. The other things most “experts” (who are trying to sell you their brand of dieting) will sell you about CICO not being “everythi…

Congrats on your loss! I used the aforementioned Hacker's Diet (CI/CO with some habit-forming structure) a decade ago to get my BMI from ~33 to ~23 (at which point people started telling me I looked sick, so I backed off).

CI/CO definitely works, but both sides of the equation need to track a feedback loop in order to function correctly. On the one hand, your body will reduce its base metabolic rate as you start depriving it of nutrition; on the other, the nutrition labels on food aren't necessarily representative of what your body can get out of them.

The other issue is that often the foods people with weight issues eat aren't the same foods that are conducive to weight loss... it's psychologically very difficult to maintain a calorie deficit when many of those calories are taken up by sugar water, for example, where it's much easier when the calories come from nutritionally complete, fresh foods.

As usual, proactive lifestyle change is rarely about the facts of what should be done (literally everyone knows they should be eating vegetables and exercising) as much as the psychology (it's difficult to consistently make decisions that add stress to your life).

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

#58
post #48

Earlier quoted context omitted.

Web app = Always on. No interruption from power outages or wifi problems. Higher bandwidth and more anonymous (if it's going to make requests). Virtual android device in the cloud might be a great model for it since Android has good built-in security and process isolation.

I still can't use it if my power or internet are out though, even if the server still has both. (Rephrased to be less mean.)

I think this comment is unnecessarily rude

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

#59

Earlier quoted context omitted.

I still can't use it if my power or internet are out though, even if the server still has both. (Rephrased to be less mean.)

I think this comment is unnecessarily rude

You're right. Thanks for calling me out on it. I've toned down the snark.
Post reply on HN