This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Recovery Heart Rate stored?

I currently have a 230, but I'm really tempted to get the 945, mostly because of training load focus, though the ability to have podcasts and maps (and perhaps even Garmin Pay) are pretty cool/exciting.

I'm curious if this watch will save my recovery hear rate? On the 230 it shows up 2 minutes after my run, but it's not save in such a way to be displayed anywhere. I'm comfortable digging through files if this info is stored in some file, but I don't know what directory/file to look for this. That way I could extract this info and plot it myself.

I'm sort of surprised this info isn't displayed as it's considered an indicator of fitness, even if it requires the user to wait 2 minutes. If he/she does, why not allow it to be tracked/displayed?
  • Thanks for the script. So I installed Pythin 3.7 and created an rhr.py file, put a .fit in the same folder and ran it and get :

    "C:\Python>rhr.py
    File "C:\Python\rhr.py", line 16
    print '{}: is running ({}), scanning for recovery HR'.format(fname, sport.get('name').value)
    ^
    SyntaxError: invalid syntax"

    Am I doing something wrong ? Thanks !


    I haven't had time to try out the script yet (but I will shortly), however, in Python 3 you need to change all print statements to have (), i.e.,

    print '{}: is running ({}), scanning for recovery HR'.format(fname, sport.get('name').value)

    should become

    print('{}: is running ({}), scanning for recovery HR'.format(fname, sport.get('name').value))

    check for other print statements too.

    Hope that helps.

  • Thanks for the script. So I installed Pythin 3.7 and created an rhr.py file, put a .fit in the same folder and ran it and get :

    "C:\Python>rhr.py
    File "C:\Python\rhr.py", line 16
    print '{}: is running ({}), scanning for recovery HR'.format(fname, sport.get('name').value)
    ^
    SyntaxError: invalid syntax"

    Am I doing something wrong ? Thanks !


    FWIW, I got the script to work with some modifications with Python 3

    In Python indentation levels are crucial, I think some of the indentation got mangled during up- or download, so I had to look at the code and surmise the different levels. I got this mostly right. I tweaked the console output for myself, but the .csv file output is perfect and contains just the information I was looking for, so thanks @mcbadger for doing this.
  • Most welcome! Yes, my workplace is stuck at Python 2 for the moment as there's a key library we use which has not yet been updated for Python 3. There are people working on it so we'll migrate eventually.

    Not sure what happened with the indentations - copying it back from the web page into Notepad++ looks ok for me, with the same indentations of multiples of 2 spaces.
  • Not sure what happened with the indentations - copying it back from the web page into Notepad++ looks ok for me, with the same indentations of multiples of 2 spaces.


    So maybe it's just an issue with the print function for @webvan.

    I copied this to emacs, the first time it didn't run, but once I looked over the various indentations (and sort of PEP8'ified it somewhat :) it ran nicely.

    PS: I also held on to Python2 for a bit, but now most of the stuff I need/use is working in 3 so happy about that.
  • Thanks for the hints and after adding fitparse from https://github.com/dtcooper/python-fitparse here C:\Users\[YOUR USERNAME]\AppData\Local\Programs\Python\Python37\Lib\ It produces a nice .csv.
    Now to extract all the recent .fit files...I remember I'd used a tool to migrate Garmin data to Runalyze but hopefully Runalyze has a .fit export option ? Well it seems not :-(
  • Thanks for the hints and after adding fitparse from https://github.com/dtcooper/python-fitparse here C:\Users\[YOUR USERNAME]\AppData\Local\Programs\Python\Python37\Lib\ It produces a nice .csv.
    Now to extract all the recent .fit files...I remember I'd used a tool to migrate Garmin data to Runalyze but hopefully Runalyze has a .fit export option ? Well it seems not :-(


    When I connect my watch to my computer via the charging cable it pops open a folder that contains the ACTIVITY folder, all the .FIT files can be found there. I just dragged a copy of that folder to my desktop.

    And yes, you needed to install the fitparse library :) ..

    pip install fitparse

    glad you got it sorted out.
  • ok so I found a link on a Runalyze help page to request data from Garmin, let's see : https://www.garmin.com/en-US/account/datamanagement/exportdata/
    And within 30 minutes they sent me a link with all my data since early 2017, nice. I then ran the script and got a nice .csv.
  • Former Member
    0 Former Member over 6 years ago

    Levon, you are going to love this one
    Garmin devices with music capability show up as a media device !!! mtp protocol without mass storage choice...
    all my lovely batch files are for the BIN :(

    usb-mode-mass-storage-or-garmin

  • Levon, you are going to love this one
    Garmin devices with music capability show up as a media device !!! mtp protocol without mass storage choice...
    all my lovely batch files are for the BIN :(

    ">usb-mode-mass-storage-or-garmin">usb-mode-mass-storage-or-garmin



    So I'm not very familiar with the file system on the Garmin, or the versions of the watches that provide music (I currently have the 230, though super-seriously considering the 945), but does this mean I can simply drag my podcasts/music into a specific folder on the Garmin?

    Was the previously not possible, hence the need for scripts/bat files?
  • If this helps, on Windows you can use a nice app called MTPdrive to map letters to media devices.