2

For my bachelor's thesis, I chose to research the possibility to send real-time workout data such as heart rate, distance, calories, gps,... from a standalone Apple Watch app to a react web application (fitness dashboard). The project should make it easy for family and friends to track your run from home. When researching how to do this I came up with 2 possibilities. The first one is sending the data with socket io to my Python backend server and using WebSockets to send it to the web application. The second option was using the WebRTC technology to create a peer-to-peer connection between the Watch and frontend.

I chose to do the first one because of the complexity of using WebRTC for the first time and lost some time trying to implement it.

I can't help to feel that there should be a better way to do this. As I'm reflecting on the project in my thesis I would like to know if anyone knows a better solution for this use case.

8
  • The "best" solution totally depends on the specifics of the use case. From the broad explanation you provided I would recommend to go via the server and regard watch->server and server->browser as separate problems Commented May 18, 2021 at 10:23
  • But please make your question more specific, you will get better answers and better rating. Commented May 18, 2021 at 10:24
  • I updated my question, hope this is specific enough Commented May 18, 2021 at 15:01
  • 1
    This app was already made and works, even in the background. When starting a workout session on the Watch it keeps on reading new data, this gets send to my backend server with socketio, this last part I’m skeptical about. There should be a better way to send the data to my backend. (Socketio library for swift is outdated) Commented May 25, 2021 at 5:35
  • 2
    @VolkerStolz The code I wrote for this project can be found here: github.com/BerendVandenbussche/FitnessDashboard just note it can only send the data while the app is active on the watch. It stops sending data when going to the watch home screen Commented Aug 29, 2022 at 13:39

1 Answer 1

1

You should give StarScream a try, it still gets updates quite regularly and would work perfectly with the solution you have right now. When using WebSockets and therefore a backend it's also quite easy to expand upon this project and add a database if you aren't saving data to one already.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.