You are reading a single comment by @Ganblejs and its replies. Click here to read the full conversation.
  • I'll see about updating my health app for the dynamic time check. I assume the check delay is a variable, and I can just modify the heartrate check method in the code so that if the HR is over a certain amount, it sets the delay dynamically shouldn't be very hard....

    Great to hear the health app stores days of data... do you know how many days it stores?

  • do you know how many days it stores?

    Not really sure if records are ever deleted automatically at all. I'd refer you to the code/readme/PRs or have someone else answer.

    Two notes on implementing dynamic hrm logging:

    • You could use the step counting as indicator for exertion level and to change hrm logging interval. Or just look at the latest hrm reading like you've said.

    • The syncing logic will probably break with changing the logging interval. I think Gadgetbridge expects 10 min intervals. So that would probably need tweaking as well.

    EDIT:

    Also just to make sure, you're aware of the recorder app? Maybe you'd want to trigger that automatically instead of changing the health app. Another way to acheive your goal maybe.

  • You could use the step counting as indicator for exertion level and to change hrm logging >interval. Or just look at the latest hrm reading like you've said.

    The syncing logic will probably break with changing the logging interval. I think >Gadgetbridge >expects 10 min intervals. So that would probably need tweaking as well.

    Could someone point me to the code that measures the heart rate? Sorry im not familiar with the codebase at all. I'll try and make the adjustment. The health app appears to be a display app for data (not the code that does the actual measuring?).

    As for synching, not an issue for me, i'll only sync once a week or so.

    Will have a look at recorder, not sure i noticed it when i scanned the apps.

About

Avatar for Ganblejs @Ganblejs started