Training & Fitness with Chat GPT
Following on from my previous post, I set about creating something that will go someway of getting me fit again. My main goal was to get rid of my belly fat, drop a few waist sizes and lose 2 or 3 stone.
I started out by asking Chat GPT to create me a quick 10 min exercise routine that will aim at losing belly fat.

My thinking here was that I could do this quickly before I go to work in the morning.
However reading this, I wanted to know more about what the exercises are and how to do them. So I asked Chat GPT to create me something that shows me pictures of someone performing the exercise. It spat out 4 images showing the exercise and with explanations on how to do them.

It got a couple of pictures wrong and after asking for these to be corrected, I asked for a bit of colour.
I then thought about the timings. How will I know when 45 secs is up. Sure I could set a timer on my phone to sound when that happens but then I would need to time 15 Secs of rest and then at the end of this start the 45 sec timer again for the next exercise. This seemed a little annoying and took away from the training I was wanting to do.
So Chat GPT to the rescue again and I asked it to create me a timer that would count down 45 seconds and then beep and then immediately start a 15 sec timer and then beep again and then repeat this 3 more times. Great! It spat out a python script I could use.
It then suggested to convert this into an HTML webpage

and this got me thinking that I could turn this into a website and not only have a timer available quickly and easily but also incorporate the images and explanations of the exercise onto the page at the same time.
So I set about creating a docker container running NGINX where I could then host the HTML content provided here. I of course put it behind my Traefik proxy/load balancer where I could control who had access and also give it an SSL certificate.
I added some CSS styling which gave it a nice colour theme and obtained from the web some GIF's of the exercises I was performing. Chat GPT was then asked to edit the HTML to show the correct GIF for the exercise being performed.
I gave it a few buttons to start and pause the exercises, a reset button to start over and a skip button to skip the current exercise. I also added in a "rounds" toggle so you could repeat the exercises 2 or even 3 times.
The rest period (which also has its own GIF) also indicates what exercise is coming next

The quick 10 min workout I originally set out to create has had a few more exercises added, each exercise has increased to 60 secs and including the rest periods of 15 secs each, a full round takes 7m 15s. Do this twice (like originally intended) and its 14 and a half minutes.