Skip to content

Conversation

@sm9cc
Copy link

@sm9cc sm9cc commented Dec 2, 2025

This PR adds the missing metrics to RealtimeIrl (heading, steps, heart rate, cycling power, cycling crank and cycling wheel rpm.

It prefers metrics from Apple Watch if they are available otherwise it uses the metrics available from device.

Unable to compile or test, so feel free to suggest any changes.

} else {
pedometerStepsDevice = steps
}
}
Copy link
Owner

@eerimoq eerimoq Dec 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this class have to know about the source (watch or device) of the measurement? Not needed imo.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because we should prefer using watch as it should be more precise I think

Copy link
Owner

@eerimoq eerimoq Dec 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we are lucky the watch work at all =) I probably didn't officially added to to text widget because it didn't work, but maybe..

either way, logic like this should not be part of this class, but some other class that can be used by the text widget as well.

@sm9cc sm9cc marked this pull request as draft December 3, 2025 06:25
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