Extended placeholder_resolver.py with: - 100+ new placeholders across 5 levels (meta-scores, categories, individual metrics, correlations, JSON) - Safe wrapper functions (_safe_int, _safe_float, _safe_str, _safe_json) - Integration with calculation engine (body, nutrition, activity, recovery, correlations, scores) - Dynamic Focus Areas v2.0 support (category progress/weights) - Top-weighted goals/focus areas (instead of deprecated primary goal) Placeholder categories: - Meta Scores: goal_progress_score, body/nutrition/activity/recovery_score (6) - Top-Weighted: top_goal_*, top_focus_area_* (5) - Category Scores: focus_cat_*_progress/weight for 7 categories (14) - Body Metrics: weight trends, FM/LBM changes, circumferences, recomposition (12) - Nutrition Metrics: energy balance, protein adequacy, macro consistency (7) - Activity Metrics: training volume, ability balance, load monitoring (13) - Recovery Metrics: HRV/RHR vs baseline, sleep quality/debt/regularity (7) - Correlation Metrics: lagged correlations, plateau detection, driver panel (7) - JSON/Markdown: active_goals, focus_areas, top drivers (8) TODO: Implement goal_utils extensions for JSON formatters TODO: Add unit tests for all placeholder functions |
||
|---|---|---|
| .gitea/workflows | ||
| backend | ||
| docs | ||
| frontend | ||
| nginx | ||
| .env.example | ||
| .gitignore | ||
| CLAUDE.md | ||
| docker-compose.dev-env.yml | ||
| docker-compose.dev.yml | ||
| docker-compose.yml | ||
| find-container.sh | ||
| README.md | ||
| SETUP.md | ||
| test-pipeline-api.sh | ||
| test-pipeline-backend.sh | ||
| test-unified-migration.sh | ||
BodyTrack
Körpervermessung & Körperfett Tracker – selbst gehostet, PWA-fähig.
Features
- Umfänge & Caliper-Messungen (4 Methoden) mit Verlauf
- Abgeleitete Werte: WHR, WHtR, FFMI, Magermasse
- Verlaufsdiagramme (Gewicht, KF%, Taille, …)
- KI-Interpretationen via Claude (Anthropic)
- Fortschrittsfotos mit Galerie
- PDF & CSV Export
- PWA – installierbar auf iPhone-Homescreen
- Alle Daten lokal auf deinem Server (SQLite)
Schnellstart
1. Voraussetzungen
# Docker & Docker Compose installieren (Ubuntu)
curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker $USER
# Neu einloggen
2. Projekt klonen / kopieren
mkdir ~/bodytrack && cd ~/bodytrack
# Dateien hierher kopieren
3. API Key setzen
cp .env.example .env
nano .env
# ANTHROPIC_API_KEY=sk-ant-... eintragen
4. Starten
docker compose up -d
App läuft auf: http://DEINE-IP:3000
5. iPhone – Als App installieren
- Safari öffnen →
http://DEINE-IP:3000 - Teilen-Button (□↑) → „Zum Home-Bildschirm"
- BodyTrack erscheint als App-Icon
6. Von außen erreichbar (optional)
# Tailscale (einfachste Lösung – VPN zu deinem MiniPC)
curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up
# Dann: http://TAILSCALE-IP:3000
Updates
docker compose pull
docker compose up -d --build
Backup
# Datenbank & Fotos sichern
docker run --rm -v bodytrack-data:/data -v bodytrack-photos:/photos \
-v $(pwd):/backup alpine \
tar czf /backup/bodytrack_backup_$(date +%Y%m%d).tar.gz /data /photos
Konfiguration
| Variable | Beschreibung | Standard |
|---|---|---|
ANTHROPIC_API_KEY |
Claude API Key (für KI-Analyse) | – |
Ports
| Port | Dienst |
|---|---|
| 3000 | Frontend (Nginx) |
| 8000 | Backend API (intern) |