05-17-2021 15:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-17-2021 15:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I'm trying to figure out a way to get a live-stream of my heart rate from the Versa 2 to a program on my computer. I know that the companion (which I believe runs on my desktop's fitbit app?) can communicate with other web API's, but that's about the extent of my knowledge. Any info about sending messages from the companion to programs on my computer, or even just a way of having the companion write to a csv file on my computer would solve my problem. Thanks in advance
Answered! Go to the Best Answer.
Accepted Solutions
05-18-2021 13:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


05-18-2021 13:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
fetch or WebSockets are the only options. WebSockets are probably more suitable for near-real-time streaming of data. You need server software to capture the data.
I don't think there's a simple way to do it.
Gondwana Software

05-18-2021 05:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-18-2021 05:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Hello there 🙂
As far as i know, the companion app is supposed to run on your smartphone, on fitbit app. Unless you're using the simulator to dev, but that will be just for the development part.
Anyway, if you need to communicate with your home computer, you can use the fetch API to communicate with it, but then your programs needs to act as REST Api.
Do you want to communicate with existing programs, or one your going to write by yourself ?
05-18-2021 12:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-18-2021 12:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hey, thanks for replying so fast! 🙂
I would like to communicate with an existing program, is this easily done? I saw a post about the fetch API (https://community.fitbit.com/t5/SDK-Development/Post-data-using-fetch-Api/td-p/4175263) that mentioned posting the data to a server using fetch(), so would that be the best avenue to persue? I have never done any of this sort of thing, and all I'm really looking for is a simple way to access the real time heart rate on my computer (even load it into a variable in a python file or somthing like that), but I am not sure where to begin. I will have a look at the fetch API and see if I can find some examples, but any further direction would be greatly appreciated.
Thanks!

05-18-2021 13:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


05-18-2021 13:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
fetch or WebSockets are the only options. WebSockets are probably more suitable for near-real-time streaming of data. You need server software to capture the data.
I don't think there's a simple way to do it.
Gondwana Software

