Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
Hello I am new to Thingworx and I want to monitor IR sensor status connected to my raspberry pi 3 GPIO using a python script. Do I need a SDK for the sensor? Or else how can I identify the sensor on Thingworx. Please share the link if anyone has the Step by step process.
Hello,
I'd advise checking out the Help Center for the EMS and then asking more specific questions from there. To give you a short answer, you will need some kind of server on the device with the sensor, which in your case is the Raspberry Pi. You can use the EMS, but if you need a more custom solution, you can choose from one of several SDKs and go from there. Getting the EMS up and running is as simple as putting it on the device (download it under PTC Software Downloads on support.ptc.com), configuring it (see the config.json.complete file for a full list of configuration options, but you should just need the Platform IP, port, and an Application Key), and then creating a remote thing on the Platform which can be bound to your device.
For more details on this, you can see the EMS Developer's Guide
Hi Thanks for the help. I have a raspberry pi 3 with VNC server in it. I am using python code to get data from IR sensors and transfer them to a mysql Instance on my local system as well as on Azure cloud instance. How can implement all this using Thingworx platform ?
You can also follow the below link in addtion to what Tori mentioned in her comment.
http://developer.thingworx.com/guides/thingworx-raspberry-pi-quickstart
In this QuickStart Guide, you will configure an edge agent to quickly connect edge devices to the ThingWorx platform. This edge agent utilizes Node.js to extend the ThingWorx Edge C SDK to communicate with the ThingWorx platform.
Thanks Ravi
Here's another excellent resource:
https://www.thingworx.com/ecosystem/academic-program/iot-projects/weather-app-raspberry-pi/
That tutorial shows how to connect humidity and temperature sensors to a Raspberry Pi, and then send that data to the ThingWorx platform. I should be fairly simple to adapt the techniques demonstrated there to your IR sensor.