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

creating a line chart of heart rata data

ANSWERED

is it possible to an external tool lile lightening chart js 

https://www.googleadservices.com/pagead/aclk?sa=L&ai=DChcSEwjv-f6mt7DzAhXErZYKHSA8ANcYABAAGgJ0bA&ae=...

 

to create line charts of heart rate data versus time and displayed on the monitor screen  while qpp is running in the developer mode on the watch ?

 

thank you 

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Yes, it's possible, but difficult. The trick is to send data via companion to a server, via fetch or WebSocket. (WebSocket is probably better for real-time.) The server can run on the same device as the companion, which can simplify security issues. The server can draw the graph, or onforward it to some other app to do so.

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
6 REPLIES 6

Do you mean real-time data (as opposed to synced)?

Peter McLennan
Gondwana Software
Best Answer
0 Votes

yes the real time data 

Best Answer
0 Votes

Yes, it's possible, but difficult. The trick is to send data via companion to a server, via fetch or WebSocket. (WebSocket is probably better for real-time.) The server can run on the same device as the companion, which can simplify security issues. The server can draw the graph, or onforward it to some other app to do so.

Peter McLennan
Gondwana Software
Best Answer

ahaa i understand 

that makes sense 

thank you so much for the help

one more question 

can we similar create a watch app that has the same functionality and shows a line chart of heartrate vs time data ?

thank you 

Best Answer
0 Votes

Yes. That's easier because you don't need all the communications stuff. However, drawing graphs on the watch is tricky because you need to do it by manipulating an array of SVG elements (eg, lines).

 

In either case, your app will need to be running to collect real-time data.

Peter McLennan
Gondwana Software
Best Answer

thank you so much thats vry helpful     

 

Best Answer
0 Votes