Giter VIP home page Giter VIP logo

mydiabetes's Introduction

๐Ÿ’™ MyDiabetes

Application for diabetes that help them calculate carbohydrates and protein-fat exchangers.

๐Ÿ” Table of contents

๐Ÿ“ General info

This project is to provide diabetics with faster counting of products and finding them, it will allow you to forget about searching a notebook with stored products and save us from mistakes in calculations. All these factors are supposed to improve the quality of life of the user and help him maintain balanced diabetes.

๐Ÿค“ Calculation methods

There are probably many different calculation methods, those that have been implemented in this application are tested and used by me on a daily basis.

๐Ÿž Carbohydrate exchangers

When it comes to carbohydrate exchangers, the matter is very simple. The user gives us carbohydrates and we divide them by 10.

fun carbohydrateExchanges(carbohydrates: Double): Double {
        return roundToOneDecimal(carbohydrates / 10)
}

๐Ÿฅš Protein-fat exchangers

In the case of calculating the protein and fat exchangers, we have two options:

  • The first option is to calculate the protein and fat values, multiply protein by 4 and fat by 9, add the results together and divide by 100.
fun proteinFatExchangers(protein: Double, fat: Double): Double{
        return roundToOneDecimal((protein * 4 + fat * 9) / 100)
}
  • The second option is to calculate from the caloric value of the product. Subtracting the carbohydrates multiplied by 4 and dividing the result by 100, this is a faster procedure considering it only requires carbohydrate and caloric values.
fun proteinFatExchangersByCal(cal: Double, carbohydrates: Double): Double{
        return roundToOneDecimal((cal - (carbohydrates * 4) ) / 100)
}

โ„น The end result of the calculation is rounded up to one decimal place.

๐Ÿ›  Technologies

Project is created with Kotlin and using Firebase.

๐Ÿ“š Libraries:

๐Ÿ’ก Features

  • Easliy calculate carbohydrates and protein-fat exchangers
  • Save your products
  • Searching by barcode
  • Food plate (just like shopping cart)
  • Support for English and Polish language
  • Saving meals
  • Creating a common database of products and meals by users

๐ŸŒ™ We support dark theme!

๐ŸŽฏ TO DO:

  • Searching by image

โ˜„ Download

mydiabetes's People

Contributors

piekarskipiotr avatar

Stargazers

 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.