Random Bodyweight Workout with Video!

fitcypher

I have added a new workout page, this one will read a list of youtube videos from a json file, for example :

/src/fitcypher$ cat ui/data/darebee.json 
[
  {
    "id": "4XcGTvcSRxY",
    "title": "hop heel clicks",
    "duration": 8
  },
  {
    "id": "wqfRvXc7BHY",
    "title": "half squat walk",
    "duration": 19
  },
  {
    "id": "HAQvQXovwuo",
    "title": "side splits",
    "duration": 83
  }
]

and then will play a random youtube video for the user with a counter of the elapsed time :

alt text

Once the user has done the exercise for as long as they want, they click the Complete button, this will save the exercise and duration to the database.

If an exercise video comes up that you don’t like click the skip button and it will go to the next video and will not save the exercise to the database.

Checkout the FitCypher Workouts here :

https://alexlaverty.pythonanywhere.com/workouts

alt text

Or git clone the FitCypher github repo and run it locally :

https://github.com/alexlaverty/fitcypher