Watch App : HRV

Former Member
Former Member
HRV app. Discussion, report bugs, suggested features, etc...

HRV
Get the app.

Graphing.
The design currently only saves to 1 location per day. The timestamp is taken when the test starts, so autostart will take the timestamp at the scheduled time. This means that any saved test will overwrite any previous test of that same day. A day is calculated from the local timezone, so travelling won't disrupt the storage so long as you have updated the timezone before starting the test. The averages are a 30 day mean average.

Description & Explanation
Wouldn't that be nice. Will happen, but might take a while.
This page could be useful.

Notes
- Your device must have firmware that supports Connect IQ Apps.
- You can save the results by creating a log file. To do this you must work out which name has been applied to the HRV app file. The apps are in the /GARMIN/APPS folder. It will be a name something like A6227C9B.PRG. You then create a log file with the same name, e.g /GARMIN/APPS/LOGS/A6227C9B.TXT. Each reading you save will output a result formatted as ISO8601 date & time, hrv, avg pulse, 30 day hrv avg, 30 day pulse avg.
  • Former Member
    Former Member over 10 years ago
    Do you want the light for the guided breathing?


    Yup! :)
  • Former Member
    Former Member over 10 years ago
    1/ I came up with 1.0512712 by a using a method that could find a comparable value to the other players. All in all you should find the results very similar, but I can guarantee you they will never be identical from the same input.

    2/ My current plan is the graph will display a 30 day average. I may also leave an extra 30 days in the memory, so 60 in total. They are stored in a permanent location, with a pointer that iterates to the next location. I am also thinking to create a dump option where you can save the history to file.
  • I see, thanks. Is there any way to build a widget/module for Garmin Connect that will track data over time? Possibly with a moving average and a red/yellow/green based on your current reading vs. that moving average? Or is that beyond the scope of what Connect IQ allows?
  • Former Member
    Former Member over 10 years ago
    I hadn't thought much beyond the device at the moment.

    You presently will just keep overwriting results on any one day, then the next day the graph will move back 1 place to make room for that day. There are both a current reading line, and a 30 day average line, and both for each pulse and hrv.
  • Former Member
    Former Member over 10 years ago
    Sharkbait,

    I have done some analysis on your app, and have found that it is creating circular memory references. Because MonkeyC uses reference counting for its memory management, this is creating leaks in the device heap, which will eventually lead to a device crash.

    We are actively working on improvements that will recover this memory when applications are closed, as well as tools in the simulator to detect and report these issues.

    In the short term, you may want to identify the circular references in your app and attempt to prevent them, or remove them when the application closes.
    You might want to look at the confirmation dialog. Even the CIQ sample eats up memory :(
  • Former Member
    Former Member over 10 years ago
    HRV v0.9.7 beta
  • SHARKBAIT_AU I love what you're doing with your app! Thank you so much!
    I've been following it since day one.
    0.9.7 beta isn't very stable. It caused me two reboots, stuck to the IQ! logo once.
    The HRV test is stable and gives results every time. Pages are circling fine. Colours are very nice!
    I'm not sure if it saves results, although I press "save". Whenever I re-open the app, values on the second page are all "0" and there is no entry in the graph.
    Cheers!
  • Former Member
    Former Member over 10 years ago
    With regards to saving. 1/ It should say "Result saved". 2/ The second page is only for the current test. 3/ I have written an explanation as to what to expect from the graph, both in the first post of this thread, and on the app page.

    In the event that I have missed something you could try manually clearing the memory. Navigate to /GARMIN/APPS/DATA and delete the data file associated with the app. If unsure which file belongs to HRV you should be able to view them in a text editor. You should see "HRV" & "v0.9.7 beta" in readable characters near the start.
  • Former Member
    Former Member over 10 years ago
    Great app!
    the app page states that you can select auto test, how? I only get timer test
  • Former Member
    Former Member over 10 years ago
    Navigate through the menu.

    To select the test. Menu > Test Type > Timer / Manual / Auto

    To edit the test settings where available. Menu > Settings > Timer test / Auto test