A simple demo to get acceleration data from a mobile device and identify how many squat repetitions we've made using moonsense recording.
- generate a new virtual envrionment.
virtualenv -p python3 venv
source activate venv/bin/activate
pip install -r reqquirements.txt
- Run our example script. It will iterate on all the seessions and display our identified squat repetitions. See the blog post for reference.
To get data, you'll want to sign up to moonsense. You'll get an api token like your_secret_token
export MOONSENSE_SECRET_TOKEN=your_secret_token python scripts/squat_counter.py
If you prefer jupyter notebooks, you can run scripts/squat_counter.ipynb instead.
Contributions and github issues are welcome!