A personalized way to calculate your sleep schedule.
Sleep Scheduler is an iOS app created using React Native that calculates the optimal sleep schedule based on user input, and offer small rewards based on how well its schedule is followed.
NodeJS (6.7.0+)
Install NodeJS https://nodejs.org/en/download/
Expo for iOS
Install on iOS Device: https://itunes.apple.com/us/app/expo-client/id982107779?mt=8
Note: Get the LATEST version for each to make sure it will install properly. For the app to run properly, it must be run on an iPhone due to it using iOS-dependent features.
For Developers:
- Clone the github repository into an empty folder
- Navigate into the 4pm-sleep-scheduler folder
- git checkout matthewho_reworkAlert
- Run the command npm install, then run the command npm start
Then, with iPhone that has expo installed as an app, go to your camera app and scan the QR code. This will prompt you to open expo and the app should be running there.
Note: In order for the app to run properly, you MUST be on the same wifi as the computer with the QR code.
Enter in a time that you want to wake up the next day, and our app will return the time you should go to sleep the night before so you can get the optimal number of hours of sleep.
Pressing the button will set an alarm, as well as a pop-up that informs you to which time the alarm is set. Once that time is reached, a pop-up alert will show up in the app to inform you that it is time to go to sleep.
If you wish to change the way your sleep is calculated, you can switch between strict hours and calculating the sleep time from your sleep cycle in the settings page.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D