Skip to content

shinjitumala/gym

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is it?

This tool can track your progressive overload and weight using local databases and lets you view them in an interactive graph in your browser.

Images

Progressive overload (mixed) Progressive overload (single) Weight and bodyfat

Quickstart

$ git clone https://github.com/shinjitumala/gym.git
$ cd gym
$ cat ./install.sh
...
$ ./install.sh
$ echo '{"db": "<path to your database file>"}' > ~/.config/gym.json
$ sqlite3 "<path to your database file" < up.sql

Prerequisites

  • rust
  • sqlite3

Examples

Add a place

$ gym place --name "my personal gym" --desc "Near my house at foo."

Add data

$ cat 2024-10-24.csv
bench press,30x8,50x4,72.5x8x4x2
lat pull down,75x13x6x4
...
$ gym add --data 2024-10-24.csv
# Follow the prompt
...

Generate graphs

Manually generating graphs (optional)

Usually, the data gets updated when you add new data using the gym add command. You can manually generate them using the following if necessary.

$ gym upd

Viewing the graph

Local file

Open s/index.html with a browser of your choise.

vivaldi s/index.html

Web server

Alternatively, you can use the built in web server.

[shinji@fpr0 gym]$ gym web
Starting web server at '0.0.0.0:8080'...

You can now access the graphs via your browser at "localhost:8080" or from any device in your local network with the appropriate ip address, etc.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published