Inspiration

In the current world, many people are not getting enough sleep. So that I want to make a sleep tracker that tells people how many hours of sleep they need according to their age each night before they sleep. This way, people can be more conscious on how many hours they are getting and their sleep quality.

What it does

Once you run the program, you will be prompted to enter your age. After you enter your age, it tells you a recommended sleep hours for your age. Then you can enter the number of hours you want to get and it tells you when the alarm will be. However, if you do not like the alarm, you can change the time to your desirable time.

How I built it

I used python input and other methods to build this program.

Challenges I ran into

One problem I ran into is that not being able to play sound, I researched online for a while to figure it out. Also finding the time difference was very hard, It took be a while to find a clever solution to solve the problem.

Accomplishments that I'm proud of

I am very proud of how I can calculate the time difference between two times using very few lines of code.

What I learned

I learned how to use time and play sound in python

What's next for Sleep Tracker

Expand more functionalities for this program(keeps track of total hours of sleep in a week, more alarm sound, etc) and fix some bugs.

Built With

Share this project:

Updates