Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
My thing studio, composer is trial version.
There are two error.
I tried to connect Rasberry pi but failed to connect.
There are two problem.(Every coding and ideas are from developer tutorial)
1. Problem connecting Thingworx and Raspberry pi
https://developer.thingworx.com/resources/guides/thingworx-raspberry-pi-quickstart
(this tutorial )
[FORCE] 2018-05-18 09:24:37,696 Main: Exiting....
[DEBUG] 2018-05-18 09:24:37,696 jsonConfigurator::~jsonConfigurator: Deleting JSON object
my json file
{
"ws_servers": [{
"host": "4gqxcnlk.studio-trial.thingworx.io",
"port": 443
}],
"http_server": {
"host": "127.0.0.1",
"port": 8080
},
"appKey": "c***cd**-****-4458-b9a0-1611eb5f0f1b",
"logger": {
"level": "DEBUG"
},
"auto_bind": [{
"name": "PiThing",
"gateway": false
}],
"certificates": {
"validate": false,
"allow_self_signed":true
},
"ws_connection": {
"encryption": "none",
"verbose": true,
"msg_timeout": 1000
}
}
What should I do? I don't know what is the problem. I did everything same with tutorial.
2.Develop an AR Experience with Raspberry Pi
Connect DHT11 sensor to raspberry pie.
https://developer.thingworx.com/resources/guides/raspberry-pi-ar-tutorial/hook-sensors-optional
(this tutorial)
VDD (Red) - - Power (1 Pin)
DATA (WHITE) - BCM 2 (3 Pin)
GND (Black) - Ground (6 Pin)
sudo apt-get install build-essential python-dev
sudo apt-get update
sudo apt-get install -y python3 python3-pip python-dev
sudo pip3 install rpi.gpio
sudo apt-get update
git clone https://github.com/adafruit/Adafruit_Python_DHT.git
cd Adafruit_Python_DHT
sudo python setup.py install
and then
cd Adafruit_Python_DHT
cd examples
sudo ./AdafruitDHT.py 11 2
I checked the temperature and humidity in the pie.
Then I don't know how to connect the thing with the pie.
(script ..? i don't know )
Thanks in advance. Please help me
I just created a new Studio instance and the ThingWorx Core server that was provisioned is using https and running on port 8443
https://1vszcg8e.studio-trial.thingworx.io:8443/Thingworx/Composer/index.html
Check what port your server is using, if no port is shown it is using 443 for HTTPS or 80 for HTTP
I have read this, and I have modified it, but I get the same error.
https://4gqxcnlk.studio-trial.thingworx.io:8443/Thingworx/Composer/index.html
{
"ws_servers": [{
"host": "4gqxcnlk.studio-trial.thingworx.io",
"port": 8443
}],
"http_server": {
"host": "127.0.0.1",
"port": 8080
},
"appKey": "b969717c-2xxx-xxx8-9d1f-cd27xxxxba36",
"logger": {
"level": "DEBUG"
},
"auto_bind": [{
"name": "PiThing",
"gateway": false
}],
"certificates": {
"validate": false,
"allow_self_signed":true
},
"ws_connection": {
"encryption": "none",
"verbose": true,
"msg_timeout": 1000
}
}