Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
Hello,
I want to get polar band application live data in thingworx .I refer this POST but I don't want to used raspberry pi. please suggest :
How do I get live polar band application data in thingworx ??
Is there other way to getting polar application data in thingworx ??
Solved! Go to Solution.
@RM12 ,
I do not know what options the Polar Band provides for communication. One method of extracting information from another system would be using a REST API. You could have ThingWorx making a request for data from the device or the Polar Band web site. The device might have the ability to make a REST call into ThingWorx.
If you want ThingWorx to request information from a Polar Band REST API, you could do something like
var urlParams = "?uid="+<userid>+"&AuthToken="+<token>;
var params = {
url: "https://<domain>/<restAPI>"+urlParams
};
var result = Resources["ContentLoaderFunctions"].GetText(params);
This function does a POST type transaction and the information is returned as an infotable.
If there is a REST API the tool POSTMAN can be very useful in working out the connection parameters.
There are also REST API which can send information to ThingWorx.
In your previous post you said that you had a Android application which was extracting information from the Polar Band. If you created the Android application which is receiving the data you can send it to ThingWorx by making a REST API to add the data.
Another method of getting data into ThingWorx is to use Kepware which can communicate with devices which are capable of sending message on the network. You will need to configure Kepware or add a driver which can accept the communication. Because Polar Band is a wireless device some method of getting the information from the device needs to be provided.
Let me know if any of this is helpful.
Peter
Hello @RM12 ,
Have you reviewed Article - CS280188 - ThingWorx Protocol Adapter Toolkit - MQTT Sample Project hands-on.
I understand you do not want to use the Raspberry PI, What is the communication path which you have available? It appears as if the Polar Band uses Bluetooth to communicate between device and the phone based Application. In your case what device is receiving the information from the Polar Band and sending it to ThingWorx?
The Article - CS330044 -In Thingworx platform, how to connect devices to Thingworx system and transfer data to the system lists communication methods.
Have you looked at Kepware? This software provides communication into a data store. This information is then available to Thingworx. If you were talking about industrial equipment there are drivers which can be configured to allow the communication between the equipment, and Kepware KEPServer with ThingWorx.
You can also create custom drivers which can receive the data from other devices.
Please let me know if this information helps.
Thanks for your reply ,I have polar H10 band and build our own custom application and polar band is now communicate with application now the question is :
1) How do I send that polar application data in thingworx ??
2) In thingworx, Is there any way to connect android application to thingworx ??
Hello @RM12 ,
Have you looked at http://support.ptc.com/help/thingworx_hc/thingworx_edge_sdks_ems/#page/thingworx_edge_sdks_ems%2Fc_edge_sdks_wsems_helpcenter_introduction.html%23
There is also information on supported SDK's
https://www.ptc.com/en/support/article/CS302181
Let me know if these assist you in your search
Peter
yes I refer this site but I didn't get any steps about so can you please explain in detail :
1) how Do I integration polar band application with thingworx SDK??
2) In thingworx ,Is there any way to integrate polar band directly to Thingworx??
@RM12 ,
I do not know what options the Polar Band provides for communication. One method of extracting information from another system would be using a REST API. You could have ThingWorx making a request for data from the device or the Polar Band web site. The device might have the ability to make a REST call into ThingWorx.
If you want ThingWorx to request information from a Polar Band REST API, you could do something like
var urlParams = "?uid="+<userid>+"&AuthToken="+<token>;
var params = {
url: "https://<domain>/<restAPI>"+urlParams
};
var result = Resources["ContentLoaderFunctions"].GetText(params);
This function does a POST type transaction and the information is returned as an infotable.
If there is a REST API the tool POSTMAN can be very useful in working out the connection parameters.
There are also REST API which can send information to ThingWorx.
In your previous post you said that you had a Android application which was extracting information from the Polar Band. If you created the Android application which is receiving the data you can send it to ThingWorx by making a REST API to add the data.
Another method of getting data into ThingWorx is to use Kepware which can communicate with devices which are capable of sending message on the network. You will need to configure Kepware or add a driver which can accept the communication. Because Polar Band is a wireless device some method of getting the information from the device needs to be provided.
Let me know if any of this is helpful.
Peter
Hi @RM12.
If one of the previous responses were helpful, please mark the appropriate one as the Accepted Solution for the benefit of others with the same question.
Regards.
--Sharon