Coder Social home page Coder Social logo

wim_hof_method_cmdline_timers's Introduction

Wim Hof Method command line breathing timer scripts

These scripts are for exercising the Wim Hof Method breathing with timers in the command line interface.

More info: https://www.wimhofmethod.com/breathing-exercises

I plan to build more sophisticated scripts and there is the possibility of a graphical interface in the future.

Visit my website: https://tomsitcafe.com

Scripts

whm.py

This is a simple Python3 script with a simple user interface for setting the breathing rounds, the number of breaths, the retention time and the recovery breath time.

The script requires the progress.bar library.

Install it with

pip install progress

then the script is functional.

Usage:

usage: whm.py [-h] [--breaths BREATHS] [--retentions RETENTIONS RETENTIONS RETENTIONS] [--recovery RECOVERY] [--rounds ROUNDS]

optional arguments:
  -h, --help            show this help message and exit
  --breaths BREATHS     Number of breaths per round
  --retentions RETENTIONS RETENTIONS RETENTIONS
                        Retention times in seconds
  --recovery RECOVERY   Recovery time in seconds
  --rounds ROUNDS       Number of rounds

Defaults:

  • 3 rounds
  • 30 breaths per round
  • 30, 60 and 90 seconds retentions
  • 15 seconds recovery breaths

whm.sh

Basic shell script written in BASH for even simpler environments.

Usage:

./whm.sh

The first lines of the script can be modified to change the default breathing session.

# Define the number of rounds
rounds=3

# Define the number of breaths per round
breaths=30

# Define breath lenght in seconds
breath_length=3

# Define the retention times
retention1=30
retention2=60
retention3=90

# Define the recovery time
recovery=15

Defaults:

  • 3 rounds
  • 30 breaths per round
  • 30, 60 and 90 seconds retentions
  • 15 seconds recovery breaths

Author

Tamas Molnar - [email protected] - https://tomsitcafe.com

License

MIT

wim_hof_method_cmdline_timers's People

Contributors

tmolnar0831 avatar

Stargazers

 avatar

Watchers

 avatar  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.