The inspiration for the app is that many people overlook sleep habits. This app will help users track their sleep and promote healthier sleeping habits. Some of the features that are included in the app come from other sleep tracker apps that are available.
What it does
The app asks the user to type in what time they went to sleep and what time they woke up. The app calculates the elapsed time and adds it to the weekly table of sleep times, along with the date. A recommendation is given to the user based on their sleep time for that day, as well as the average sleep time. Once the user is finished, they close out the app and open it the next day, repeating the process. Over time, the user will notice patterns from the sleep time table, so they will be aware of how they could improve their sleep habits.
How I built it
I built the app with the MIT App Inventor, an online mobile app creator.
Challenges I ran into
I ran into multiple difficulties with saving the sleep times from one day to the next so that the user can see their average sleep time for the week, as well as logic errors when calculating the sleep times from the times entered.
Accomplishments that I'm proud of
I'm proud of successfully creating a system that can calculate the sleep time from the times entered, save the sleep time of the user for up to 7 days, and provide the average sleep time. The background doesn't look too bad either.
What I learned
I learned how to save data even after the app is closed with the TinyDB feature on the MIT App Inventor.
What's next for CodeRed SleepTracker
Possible improvements to CodeRed SleepTracker include better animations or graphics, a graph of the sleep times instead of a table, and music played in the background during the first screen.
Tony Dong, Daniel F, Neel P, Jgar