Skip to content

tolik518/strong-api-workout-fetch

Repository files navigation

Strong APP Workout Fetch

This is a Rust-based service to fetch workouts from the Strong App (available for Apple and Android) and store them in a Clickhouse database.

The URL to the API backend is not provided here, for now, because it's not entirely public and because of possible legal implications.

If using docker-compose, the service will run 18:00, 18:30, 19:00, 19:30, 20:00 and 20:30, but you can change this in the Dockerfile.

Why?

So you can do fun stuff with your workout data, like doing silly grafana dashboards. For example, you can use the Grafana Clickhouse plugin to visualize your workout data.

You can make heatmaps, like the one you have on github, or you can make a dashboard that shows your progress over time, or you can make a dashboard that shows your workout history.

heatmap You can find the Grafana JSON for the heatmap and for the excercises per week in the examples folder.

How to use

  1. Have your Clckhouse database ready and running
  2. Clone this repo
  3. Create .env file in the root directory with the following content:
    STRONG_BACKEND=https://strong_backend_url.com
    
    STRONG_USER=your_strong_user
    STRONG_PASS=your_strong_pass
    
    CLICKHOUSE_HOST=clickhouse
    CLICKHOUSE_USER=default
    CLICKHOUSE_PASS=
    CLICKHOUSE_TABLE=strong
  4. Run with cargo run

Alternatively: Use Docker Compose to run the service:

  1. Make sure you have Docker and Docker Compose installed.
  2. Create a .env file in the root directory with the same content as above. 3Start the service with docker compose up -d.

About

Fetch your own workout data from your "Strong" app

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •