Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
Update docs: reminder timezone is now auto-detected per user, not a server env var
Duarte Santos5a7ce13ca258
diff --git a/.env.example b/.env.exampleindex a92d75e83..8d30abe00 100644--- a/.env.example+++ b/.env.example@@ -20,11 +20,7 @@ RP_NAME=openGym# (Point your proxy at the web container's WEB_PORT. See docs/SELF_HOSTING.md.)# ── Notifications (optional) ───────────────────────────────────────────────-# Push works out of the box — VAPID keys are generated on first run and saved-# to ./data/vapid.json. The only thing worth setting yourself:-#-# TZ=Europe/Zurich-#-# Sets the container's timezone so the workout-day reminder fires at the time-# you actually pick, not UTC. Find your zone name at-# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones+# Push works out of the box — nothing to set. VAPID keys are generated on first+# run and saved to ./data/vapid.json. Each user's browser reports its own+# timezone automatically, so the workout-day reminder fires at their local+# time regardless of where the server runs or where they're travelling.diff --git a/docs/SELF_HOSTING.md b/docs/SELF_HOSTING.mdindex 70e91bfdc..b1ced3925 100644--- a/docs/SELF_HOSTING.md+++ b/docs/SELF_HOSTING.md@@ -109,14 +109,10 @@ rest-timer-over, and a reminder on days you have a workout planned but haven't lTurn it on per-profile in **Settings → Notifications** (requires a signed-in passkey profile andHTTPS — see section 3).-No setup needed server-side: VAPID keys are generated on first run and saved to `./data/vapid.json`.-The one thing worth setting is your timezone, so the day reminder fires at the time you actually-picked rather than UTC:--```bash-# .env-TZ=Europe/Zurich-```+No setup needed server-side, and nothing to configure per timezone: VAPID keys are generated on+first run and saved to `./data/vapid.json`, and each user's browser reports its own timezone+automatically when they turn the reminder on — it fires at their local time, and follows them if+they travel, regardless of what timezone the server itself runs in.## 7. Updating@@ -147,6 +143,6 @@ downloaded media are untouched.| Media didn't download | `docker compose logs media`. Re-run `docker compose up -d`, or run `./scripts/fetch-media.sh`. || Port 8080 already used | Set `WEB_PORT=9090` in `.env` (and update `ORIGIN` for local testing). || No "Notifications" option in Settings | Requires a signed-in profile and HTTPS (or `localhost`) — guest mode and plain HTTP over LAN can't subscribe. |-| Day reminder fires at the wrong time | Set `TZ=Continent/City` in `.env` and restart (see section 6). Defaults to UTC. |+| Day reminder fires at the wrong time | Toggle it off and on in Settings so it re-detects your browser's timezone (also happens automatically on every app load — see section 6). || Want to reset a stuck login | Delete the cookie in your browser; sessions are just signed cookies. || `docker compose pull` fails with "denied" / "unauthorized" | The prebuilt images aren't published yet, or need to be, or the GHCR package is still private — build from source instead (`docker compose up -d --build`). |