Skip to content
Shreyansh Singh edited this page Apr 19, 2021 · 2 revisions

Usage

  • Put your audio files inside the directory Audio/.
  • Edit the audio.txt file with the name of the audio you want to play when the sleep starts. For example if you want to play my_file.mp3 present in the Audio/ directory then write Audio/my_file.mp3. Make sure that the file has just one line.
  • Run ./drmhk -h to explore what are the parameters which can be feeded as the input to the program.
  • Example: If you want to run the program as a simulation and set the beats per minute threshold to 70 then run ./drmhk -s 1 -t 70.
  • To run in default mode run ./drmhk

Parameters passed to the main program

The main program can be run with several parameters. To know them run the main program with -h parameters like this ./drmhk -h. Output of the ./drmhk -h is:

Usage:
-h for help-t [int] to put bpm threshold
-g [bool] 1 to plot in qtplot. Default: 1
-l [bool] 1 to play audio locally. Default: 1
-n [bool] 1 to set night time to now. Default: 0
-w [int] set waiting time to confirm sleep.
-s [bool, 0 or 1] 1 for simulated bpm. Default: