Stress monitoring - Advanced Health App

I am developing an app for monitoring stress levels. It reads the systems default BPM, but if over a threshold, does a continuous read for 60sec to see how your heart is beating and if you might be having issues. If it thinks you need to relax, provides breathing exercises with visuals, vibration and voice. I have already gotten most of this programmed but I am having a big hurdle. It seems only filtered and unfiltered BPM is the only heart data you can call. Is there any way to read exactly what the hardware is outputting and do my own filtering? I want to be able to read how the heart is beating, not just the BPM. The app is mostly built, I just need the correct dataset.

HealthMetricHeartRateRawBPM is the most “raw” you can get. Calling health_service_set_heart_rate_sample_period(1); may get you better results.

But no, the “rhythm” of the heart rate monitor is not available via the API (as of SDK version 4.9.169).

This is what I have designed. Seems to work pretty well so far Stress tracker - Pebble Appstore

I’ve got custom firmware that lets me access the raw PPG data. I’m working in a sort of similar direction to your app, though my focus is more towards metrics that might be of use for people with ME/CFS and POTS.

Recently they released an update that provides HRV and I started using that instead of trying to reverse engineer my own HRV from a 60sec reading. For the firmware, are you recommending the changes to the official build? I really don’t want to develop an app that is dependant on the user flashing a custom rom.

I’d like to get stuff into the official build, but it’ll be a while before I’m ready for that.