Application - HR Sleep

Former Member
Former Member
Now .. Your Heart and the Vivoactive HR device teams up to 'Measure your Sleep'

Get HR Sleep in the Garmin Connect IQ Store here ..

https://apps.garmin.com/en-US/apps/b...2-c9fe3f777fc0

Now measure your Sleep Performance with HR Sleep .. see how your sleep improves over time using your HR data.

Be sure that your battery is charged to at least 30% before running HR Sleep overnight. That green light .. is a little hungry.

Sleep Zones Example ..

Set Minimum Sleep HR - 40

Sleep Zone 0 .. less than 40 bpm
Sleep Zone 1 .. 40 - 43 bpm
Sleep Zone 2 .. 44 - 47 bpm
Sleep Zone 3 .. 48 - 51 bpm
Sleep Zone 4 .. 52 - 55 bpm
Sleep Zone 5 .. over 55 bpm

Thank you ..
VivoactiveHRGuy
  • Also would anyone be interested in being able to upload summary data to a FIT file upon exiting HR Sleep ?

    What would we be able to do with this FIT file?

    I had a look at the logfile it creates and I am thinking of building an application (in Oracle, since I am an Oracle programmer :D) to process the data and to be able to do some data analysis on it over time. Since there are 2 records per day in the file, it would be nice if each of them could have a record type to identify what data is in the record. I could workaround this by just looking at the number of data fields in each record (or some other method), but it would be nice to have.:) And it also would be nice if at least one of the 2 records would also contain the minimum HR setting you were using at the date of data capture, since that setting impacts the calculation of the different HR zones.

    Btw, how are HR zones calculated based on the minimum HR setting? Is it that zone 0 are values less than your min HR setting, zone 1 starts at your HR setting and each higher zone start at +4 compared to the start HR of the previous zone?
  • Former Member
    Former Member over 8 years ago
    What would we be able to do with this FIT file?

    I had a look at the logfile it creates and I am thinking of building an application (in Oracle, since I am an Oracle programmer :D) to process the data and to be able to do some data analysis on it over time. Since there are 2 records per day in the file, it would be nice if each of them could have a record type to identify what data is in the record. I could workaround this by just looking at the number of data fields in each record (or some other method), but it would be nice to have.:) And it also would be nice if at least one of the 2 records would also contain the minimum HR setting you were using at the date of data capture, since that setting impacts the calculation of the different HR zones.

    Btw, how are HR zones calculated based on the minimum HR setting? Is it that zone 0 are values less than your min HR setting, zone 1 starts at your HR setting and each higher zone start at +4 compared to the start HR of the previous zone?


    The data .. would be exactly like other FIT files, the data would be at the bottom of the screen in Garmin Connect and honestly to me, it makes no sense to do it. The data btw .. would be the exact data you see on the summary screen. So, a lot of work for little gain in my mind. If someone really wants the data long term .. I see the CSV data as being a suitable solution for them.

    So like you, I am ok with giving the data in CSV format .. as that is an industry standard and people can do with it what they wish at that point.

    As I am waiting for my sister anyways .. here you go.

    The CSV log data is as follows (as the latest version on Feb 20/2017) .. the reason it is split to 2 lines is cause it will error on me when I put too much data on one line.

    Line 1:

    If you have it set to display times on summary:

    Year/Month/Day,MinHRValue, EndingHour:EndingMin:EndingSeconds,SleepZone0Hour:Min:Sec ... to SleepZone5Hour:Min:Sec,MinimumHRValueCapturedInTheNight, HRAverageFromTheNight

    If you have it set to display percentage on summary:

    Year/Month/Day, MinHRValue,EndingHour:EndingMin:EndingSeconds,SleepZone0Percentage... to SleepZone5Percentage,MinimumHRValueCapturedInTheNight, HRAverageFromTheNight

    Line 2:
    Year/Month/Day,MinHRValue,AverageHRFromHours0-2,AverageHRFromHours2-4,AverageHRFromHours4-6,AverageHRFromHours6-8,AverageHRFromHours8-10

    Re the Sleep Zones ..

    Sleep Zone 0 is anything less than your set minimum.
    Sleep Zone 1 is min to min + 3
    Sleep Zone 2 is min + 4 to min + 7
    Sleep Zone 3 is min + 8 to min + 11
    Sleep Zone 4 is min + 12 to min + 15
    Sleep Zone 5 is anything over min + 15

    Oh .. re the Minimum, I have to say sorry, I am a bit distracted. Yes .. I will add that minimum to the log files and release a new version.

    I hope this helps .. if you have any other questions let me know.

    Take care ..
    VivoactiveHRGuy
  • Former Member
    Former Member over 8 years ago
    New HR Sleep Version today ..

    [Version 1.157] February 20 / 2017

    - Added the Minimum HR value to the log file data. This is to allow future data analysis if needed.
  • Thanks for the detailed answer and quick update of the app! Now I just need to capture the data for a few weeks and see what I can do with it!:D
  • I have been using the app for a few days and it works very well.:D The battery drains faster, but that's is expected and fine with me. It is still working longer one one full battery charge than my Fitbit did.

    However, I tried to look at the log data today after a few days, but it did not log any data since the first day I started using it. The reason for it seems to be that the latest update of the app also changed the filename of the app on the watch, so the filename did not match anymore with the filename of the logfile I created earlier. So the statement that was made earlier that an update of the app would not change the name is not correct? So, I removed the old log file and created a new one with the new filename. I will check again tomorrow to see if that fixed the problem.
  • Former Member
    Former Member over 8 years ago
    I have been using the app for a few days and it works very well.:D The battery drains faster, but that's is expected and fine with me. It is still working longer one one full battery charge than my Fitbit did.

    However, I tried to look at the log data today after a few days, but it did not log any data since the first day I started using it. The reason for it seems to be that the latest update of the app also changed the filename of the app on the watch, so the filename did not match anymore with the filename of the logfile I created earlier. So the statement that was made earlier that an update of the app would not change the name is not correct? So, I removed the old log file and created a new one with the new filename. I will check again tomorrow to see if that fixed the problem.


    Absolutely it will use the battery more, checking your HR once every 95 seconds vs 1 second. Even that is suspect as Garmin does not turn on the green light every 95 seconds but does a reading that often. I think they likely use some algorithm to allow them to guess at the number.

    Re the logging .. yes you may see that they change the name of the PRG. It does not happen all the time .. but it does absolutely happen. It is a pain and I wish that Garmin would just leave it the same for an app. But that would make sense. So yes, you have to check the name when doing an upgrade and absolutely nothing I can do about it.
  • Thanks for making an FR230/235 version even it it's not (yet?) as elaborate as the VAHR version, possibly because it's CIQ1 and not CIQ2 ?
    Got logging to work ok.
  • Former Member
    Former Member over 8 years ago
    Well done

    Good morning.

    I purchased my VAHR just after Christmas and found your Sleep app earlier after. I quite like what you've done.

    I also just realized they changed the program name so I've missed a couple of days of logging. I can't image what use it is to Garmin to do that to you.

    Am I correct that I can only see the data on the watch while the app is running? (Not in "Paused" mode?)

    I like your Pause time-out. I've started using it as a delayed start so that my heart rate can slow down as I drift off.

    I wish you all the best with your iOS apps!

    Don
  • Former Member
    Former Member over 8 years ago
    Thanks for making an FR230/235 version even it it's not (yet?) as elaborate as the VAHR version, possibly because it's CIQ1 and not CIQ2 ?
    Got logging to work ok.


    The reason .. nothing to do with CIQ at all. The only reason .. because it is a round device. The Vivoactive HR is rectangular and much better to display data on the screen. Just how it is .. as a result, the Forerunner version will be this way .. as I just cannot fit all the data on the screen that I can on the Vivoactive HR.
  • Former Member
    Former Member over 8 years ago
    Good morning.

    I purchased my VAHR just after Christmas and found your Sleep app earlier after. I quite like what you've done.

    I also just realized they changed the program name so I've missed a couple of days of logging. I can't image what use it is to Garmin to do that to you.

    Am I correct that I can only see the data on the watch while the app is running? (Not in "Paused" mode?)

    I like your Pause time-out. I've started using it as a delayed start so that my heart rate can slow down as I drift off.

    I wish you all the best with your iOS apps!

    Don


    The name change is a huge frustration to me. They should just leave it the same for the application, as like you I see no advantage of changing the name once it is established. However .. this is a thing that is not really designed for end users and more for a developer debugging item. As a result .. it is not as nice as I would love it to be.

    Yes .. the app does not collect data while in pause mode. That is on purpose. :)

    The one thing you may want to take advantage of .. is the pause timeout feature, where you can set a time (I use 300 seconds) where the pause will automatically disengage after that time has expired. I use it as I often may remember to pause it .. but often would forget to un-pause it. You could use this as well when you went to bed .. to allow your HR to sink some. I set the limit to 15 min (900 seconds).

    I do find the VAHR sometimes has elevated HR values (like over 100) .. and this would allow it to be a bit more under control, however really I find that it is usually only when you go to bed and in a not too long period of time .. your HR and average will drop to normal (and correct) levels.

    The iOS thing will be a work in progress as I am quite busy right now. I will still be supporting my apps here as always as time allows.