Share your HR in real time

Former Member
Former Member
Hi, I still didn't get what are the possibility with Connect IQ apps. What I would like to achieve is to broadcast in real time heart rate and steps for real time sharing.
So the use case is that a user send another user via the cloud a silent push, the watch listed to it and start broadcasting via websockets to another user for a specific amount of time.

Anyone knows if that is possible at all ?

M.
  • The watch isn't capable of making a direct socket connection. All you have is the bluetooth link to the mobile device and the functionality provided by that.

    It seems that you could do this by reading the heart rate data from the user and using makeJsonRequest() to use HTTP POST to upload heart rate data (and a timestamp presumably) to a service, and then have the client download it via an HTTP GET. I'm not sure how you'd work who is listening to the data for who, but it could definitely be done.
  • Former Member
    Former Member over 8 years ago
    Thanks for your clarification.
    so I guess there is no way for the watch to get an event to trigger an HTTP POST externally as we don't have a smartphone app that we can control right ?
    so the case is that the watch app allows user to set a threshold, like if the sensor reads >150BMP make a call (or several ones for few seconds) to the service passing along the value, timestamp and Garmin user ID, server side I can write to a table or send a request to another client via push or email.
    Question: does the app has to run in the watch or it can be executed seamlessly, I mean the whole thing here is that user shall not do anything bit whenever a threshold is reached a request is executed.

    Do you know any freelance who can help building this ?

    M
  • You don't need a smartphone app to control anything. You just need the smartphone to be nearby and to expose a bluetooth connection to the device. Software on the device can, for the most part, do everything you are talking about.

    This all will come at cost. I'm assuming it isn't sufficient to check the users heart rate for 15 seconds every 15 minutes. If so, the app needs to be running constantly. This means that, for many cases, the user wouldn't have access to other features of the watch (clock, activity recording, widgets, ...). Additionally, checking the heart rate frequently means communicating with a heart rate sensor or powering the built-in sensor constantly. This will use up the battery rather quickly, so the user would need to recharge very frequently (probably more than once a day for some devices).

    Travis
  • Former Member
    Former Member over 8 years ago
    Thank you very much for your answer, appreciated.
    Well the vivoactive HR is measuring HR activities constantly, I am actually very surprise about the battery life time, but it does. So I was hoping that my watch app could tap into the HR watch logs (I assume they are saved locally at intervals to be sent to the next bluetooth connection) and push them to a service when another user request them.
    But I understand that this is not possible as there is no way to get the app to run in background constantly and there is no way to get an external event to the watch to trigger this request. Right ?
    The ideal would be to have a dedicated smartphone app which receive a silent push, trigger a Bluetooth connection to the vivoactice, synch the data and send them back to the requestor, but I guess that is also not possible as there is no way to communicate to the device but the Garmin Connect app. Correct ?

    M