Skip to content

Made this back when I first read up on REM cycles. Incomplete cause I stopped using this.

Notifications You must be signed in to change notification settings

dinesh-58/ideal-morning-alarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

test

Program to find ideal morning alarm. Basically just copying Sleep Calculator but I'm doing this to learn more, & test myself. Also, I have my browser set to be blocked after 10 pm so might as well make a simple .exe file to put on my desktop.

Basic functionality

  • 1. wake at x (keep deducting 90 mins, show between 4 & 6 cycles)
  • 2. go to bed at x (add 90 mins, show at same cycles as above)
    • call same f'n used for 3, just change arguement to custom user input.
  • 3. go to bed exactly now
    • convert to am/pm using strftime?
  • 4. power nap (wake up during N1,N2 stage or end of cycle)
        check how the site has done this
    • doesn't show print statements inside main() along with getch. instead, ends automatically after few seconds

Extra Functions after finishing above ones

  • instead of time, if 'b' entered, go back to menu

  • Order functions based on which ones may get called 1st. To improve code readability.

  • for go to beds & power naps, add 15 mins as time to sleep. inform user about this

  • Settings:

    • Change time to sleep. need to implement a way to make this change permanent. file handling prob
    • Daylight savings time. this should be permanent too prob have program read from file & assign values to variables at start of execution

About

Made this back when I first read up on REM cycles. Incomplete cause I stopped using this.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages