Skip to content

Conversation

@RKBoss6
Copy link
Contributor

@RKBoss6 RKBoss6 commented Jan 25, 2026

This is just a draft right now, but creates an app for calorie tracking based on #4092, that counts calories burned in a day and splits it by BMR, Active, and total calories. Uses MyProfile to get user health data, and hooks onto health events for new data. Also, modifies health to keep the RHR reading, as it's a better way of getting min hr, and modifies myprofile to use RHR readings in health instead, for getting minimum hr. Keeps minHr, and updates it, just for backwards compatibility.

Check it out at my app loader

RKBoss6 and others added 30 commits January 23, 2026 19:09
Add metadata for Calorie Tracker application
Expanded the README to include the calorie calculation formula and its components, enhancing user understanding of the app's functionality.
Refactor logic for setting resting heart rate and round max heart rate calculation.
Added instructions for taking Resting Heart Rate (RHR) measurements, including tips for optimal conditions and app navigation.
@RKBoss6
Copy link
Contributor Author

RKBoss6 commented Jan 26, 2026

Ah sorry - an RHR reading is a measurement of the body's resting heart rate, which is a lot more accurate than the old way of setting it, which was just a guess and check method of entering a number and hoping it's correct. It should help the minHRM value be more accurate for each person in the long run, rather than setting it to 60 and forgetting about it.
To be backwards compatible, it adds a field restingHr and also sets the minHrm value to be the measured value as well, for apps that still use the minHrm field.

@RKBoss6 RKBoss6 marked this pull request as draft January 26, 2026 21:15
@thyttan
Copy link
Collaborator

thyttan commented Jan 26, 2026

an RHR reading is a measurement of the body's resting heart rate, which is a lot more accurate than the old way of setting it, which was just a guess and check method of entering a number and hoping it's correct.

This is an assumption. We don't know how the user worked out their minimum heart rate. Right? I may be misinterpretting what you mean.

It should help the minHRM value be more accurate for each person in the long run, rather than setting it to 60 and forgetting about it.

Is it automatically adjusted over time? Otherwise I don't see how it helps against forgetting to update it?

On a broader point. If it's meant as an aided way for the user to work out their minimum hr /RHR to store in myprofile - it sounds like the logic should be put in myprofile and not the health app.

@thyttan
Copy link
Collaborator

thyttan commented Jan 26, 2026

Are RHR and minimum heart rate synonymous? RHR being the common term?

@RKBoss6
Copy link
Contributor Author

RKBoss6 commented Jan 27, 2026

I believe so for this context, but I think min hr is the overall lowest heart rate. What we can do is just store it as two separate variables instead...

On a broader point. If it's meant as an aided way for the user to work out their minimum hr /RHR to store in myprofile - it sounds like the logic should be put in myprofile and not the health app.

That does sound like a good idea, I'll get to work on that!

@RKBoss6
Copy link
Contributor Author

RKBoss6 commented Jan 27, 2026

I think this is good to go now

@RKBoss6 RKBoss6 marked this pull request as ready for review January 27, 2026 21:36
Co-authored-by: thyttan <97237430+thyttan@users.noreply.github.com>
@thyttan
Copy link
Collaborator

thyttan commented Jan 27, 2026

I'll try to get to this Thursday night but no promises 🙂

@RKBoss6
Copy link
Contributor Author

RKBoss6 commented Jan 27, 2026

No worries!!

@RKBoss6 RKBoss6 marked this pull request as draft January 30, 2026 02:51
@RKBoss6
Copy link
Contributor Author

RKBoss6 commented Jan 30, 2026

Hey - sorry about the delay. I'm testing a (hopefully) much more accurate formula that involves the MaxHr, minHr and Resting Hr, as well as age-specific formulas, so I've put it into draft for now, until that's sorted out. Thanks for sticking by while I iron out a few more kinks in the app!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants