Giter Club home page Giter Club logo

hiitimer's Introduction

HIIT Timer

I made a basic HIIT timer so I wouldn't have to rely on online pages and really terrible HIIT phone apps that do too much for me anyway. It's the bare minimum:

  • Say (with TTS) and display the current state of the routine (exercise name, rest, upcoming exercise)
  • Make your routine on the fly
  • Load up created plaintext routines

It doesn't do anything else and there is no reason I can find for it to do anything more.

Preset Routines

Preset routines can be loaded into HIITimer with the -f flag followed by the filename:

python3 hiitimer.py -f preset1.hiit

There are four fields necessary for a successful routine file:

  • exercises: - A list of exercises which will comprise one rep. This list is comprised of an exercises: line, followed by an exercise on each subsequent line.
  • exercise_time: - How long to spend on one exercise in seconds. This and all the following fields are to be comprised of the key and value on the same line.
  • rest_time: - How long to spend resting between exercises in seconds.
  • reps: - How many cycles of the list of exercises to do in total.

The parser overlooks blank lines and lines that begin with #.

A sample routine looks like this:

# Sample Exercise Routine 1

exercises:
	Pushups
	Squats
	Plank
	Jumping Jacks

exercise_time: 30

rest_time: 10

reps: 4

This program and all the TTS has only been tested on OSX, so please let me know if you get any errors, as I'd love to figure it out :)

hiitimer's People

Contributors

milofultz avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.