Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.
/ H2O Public archive

Water Intake Reminder. Calculate and notify users of personalized hydration needs based on user profile and environmental factors.

Notifications You must be signed in to change notification settings

suvanbanerjee/H2O

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

H²O

[This Project is Archived]

H²O is a personal project I built to help track daily water intake. It’s a simple Python program that calculates how much water you should drink daily and sends you timely notifications to stay hydrated. It uses the pyler library for cross-platform notifications.

Installation

To install the program, you need to have python installed on your computer. If you don't have python installed, you can download it from here.

  • Clone the repository
  • Open the terminal and navigate to the project directory
  • run config.py file to set your details
  • add main.pyw to your startup folder to run the program on startup

Note: Make sure to edit the path of the JSON file in the main.py file to match the path of the son file on your computer. If you do not know, just put the JSON file in the same directory as the main.py file, which is in the startup folder.

How it works

The program uses the following formula to calculate the water you should drink daily.

base_intake = 0.033 * weight(KG)

Alternate Method (Miffin-St Jeor Equation)

caloric_expenditure = 10 * weight + 6.25 * height - 5 * age * activity_factor

dividing the caloric_expenditure by 1000 gives the amount of water you should drink daily.

Then it compares the base intake by both methods and selects the highest value.

It divides one day (16 hours ie, 24-8[sleep]) into n equal parts so you can drink water at regular intervals and completes the amount of water you should drink daily.and sends you notifications to remind you to drink water.

FAQ

How do i change the amount of water i should drink daily?

You dont need to as the program calculates the amount of water you should drink daily based on your weight and height. Anyway if you want to change it, in main.pyw file, change the value of base_intake to the amount of water you want to drink daily.

Woudn't it be better be a mobile app?

Yes, it would be better as a mobile app but i am not a mobile developer. If you are a mobile developer, do send a PR to this repository.

Note project is archived besause of unavalability of proper research on the topic moreover its overengineered and kind of not needed but if you want to use it plug in the function to calculate the amount of water you should drink daily in the main.pyw file and run the program.

License

This project is not licensed. You can use it for whatever you want.

About

Water Intake Reminder. Calculate and notify users of personalized hydration needs based on user profile and environmental factors.

Topics

Resources

Stars

Watchers

Forks

Languages