Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unity 3D - Read steps pedometer data realtime

ANSWERED

Hi, with Unity 3D engine I must develop a game app that read pedometer activity and heart rate tracked with Fitbit devices. Is possibile to read realtime device data? I read about a companion app to develop but how I can approch to this solution? I must develop 2 app, the companion and the unity game?  What I understand is that with Web API, data are only available from fitbit cloud but logically not in realtime because of delay time for the upload.

 

Thanks a lot for your suggestions.

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

The Web API data won't be realtime. You'll need to develop an app for a Fitbit OS device like Versa or Ionic. You can then get the data on the device in realtime, send it to the companion using the Messaging API, then from the companion to a web server via fetch() or WebSocket. The server could be local on your network, provided the mobile phone can access it.

 

https://dev.fitbit.com/build/guides/communications/

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

The Web API data won't be realtime. You'll need to develop an app for a Fitbit OS device like Versa or Ionic. You can then get the data on the device in realtime, send it to the companion using the Messaging API, then from the companion to a web server via fetch() or WebSocket. The server could be local on your network, provided the mobile phone can access it.

 

https://dev.fitbit.com/build/guides/communications/

Best Answer
0 Votes

What do you recommend to trigger the message?

 

I was thinking about setInterval() but is there a better way to trigger the messaging api to get realtime data?

Best Answer
0 Votes