I've been using my own made Watch Face for a few years now and I'd like to add my current/last heart rate and resting heart rate as shown in the heart rate widget. None of the API options I've tried gives me the same data as the widget.
- Toybox::UserProfile::Profile.restingHeartRate always gives me "0".
- Toybox::ActivityMonitor.getHeartRateHistory using the iterator with a duration of 4 hours I get numbers that close to the widget, but there never the same. The max heart rate is even higher than the max heart according to the widget, so something is definitely there.
- Toybox::Activity::Info.averageHeartRate and currentHeartRate gives me similar stats to the ActivityMonitor option above, but slightly different and still different from the heart rate widget.
I'm using the Vivoactive HR and the heart rate widget shows a graph of my heart rate of the last 4 hours, current heart rate, resting heart rate, lowest heart rate of the last 4 hours and highest heart rate of the last 4 hours.
Can someone tell me how to retrieve the same heart rate numbers as this widget uses?