I am developing an app involving previous and current HR history, pulling from SensorHistory.getHeartRateHistory().
When using the ConnectIQ Simulator and testing my app, it gives some random history of heart rate of which I am unable to see or affect. For example, if I want to aggregate all time the user has spent in z1, z2, etc., it is automatically returning 48 "zone minutes" (vigorous or z3+ minutes) every app startup.
I have checked my calculations and code many times over and the only thing I can surmise is that there is some storage of HR history pulled when I run this code:
var iter = SensorHistory.getHeartRateHistory({
:startTime => getMidnight(),
:order => SensorHistory.ORDER_NEWEST_FIRST
});
Which I expected obviously but the problem is that I have literally no way to affect what the simulator is giving to my running application
When I upload the app to my Forerunner 970 it works completely normally and scores everything correctly since it's using real, accurate data. My issue is I have almost no way of accessing the HR history data uploaded to simulator.
The reason this is blocking me is that if I want to have something happen when most of the day is spent at a lower HR, I have literally no way to test that except being idle myself all day and uploading to my watch personally. There is 0 way for me to put in the simulator that the dummy user spent 0 minutes at an intense heart rate.
Does anyone have experience changing this data? I have tried resetting simulator, app data, etc., nothing changes