Code Monkey home page Code Monkey logo

betterrest's Introduction

BetterRest

BetterRest is an iOS app designed to assist coffee drinkers in achieving a better night's sleep by analyzing their sleep preferences. By answering three key questions—wake-up time, desired sleep duration, and daily coffee intake—the app provides personalized sleep recommendations using machine learning powered by CoreML APIs.

Overview

This project focuses on gathering user input via a date picker, stepper, and picker to determine their preferred wake-up time, sleep duration, and caffeine consumption. Leveraging the CoreML APIs, BetterRest employs a machine learning model to predict optimal sleep patterns based on user input.

Features

  • Wake-up Time Selection: Allows users to choose their desired wake-up time using a date picker.
  • Sleep Duration Preference: Determines the ideal duration of sleep users aim for through a stepper view.
  • Coffee Intake Input: Asks users about their daily coffee consumption using a picker.

Technologies and Learnings

  • Swift's Date API: Utilized for handling date and time in the app's user interface.
  • Machine Learning with CoreML: Created a custom machine learning model using CreateML and implemented it in the app using CoreML APIs.
  • Stepper View: Introduced the use of a stepper view to navigate and select through a range of values.
  • Picker: Employed a picker to facilitate the selection of options for coffee intake.

Screenshots

Screenshot 1 Screenshot 2 Screenshot 3

Getting Started

To explore and run the BetterRest app:

  1. Clone this repository.
  2. Open the project in Xcode.
  3. Build and run the app on a simulator or a physical device.
  4. Input your preferred wake-up time, sleep duration, and daily coffee intake to receive personalized sleep recommendations.

Acknowledgments

This project was created as a learning exercise inspired by Hacking with Swift's 100 Days of SwiftUI. The implementation was guided by resources from the Swift community, Apple's documentation, and tutorials on CoreML and SwiftUI integration.

betterrest's People

Contributors

wojuadeaa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.