thingworx alexa skill's account linking middleware to get thingworx platform variables from user in bootstrap UI
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Procfile
README.md
index.js
package.json

README.md

alexa-skill-thingworx-basic-middleware

thingworx alexa skill's account linking middleware to get thingworx platform variables from user in bootstrap UI

can work on heroku.

developed to work with alexa-skill-thingworx-basic amazon skill.

this does nothing, just avoiding hard coded parameters like server IP, port, thing name while connecting thingworx things to alexa skill. this gets parameters from user via amazon alexa app, returns parameters seperated with commas as accessToken.

access_token=thingworxServer+","+thingName+","+appkey;

so you can use these variables to connect thingworx api; have a look thingworx-alexa-skill repo;

accessToken = accessToken.split(',');
var options = {
	host: accessToken[0],
	path: '/Thingworx/Things/'+accessToken[1]+'/Properties/'+parameterVal,
	headers: {
		"Accept": "application/json",
		"appkey": accessToken[2]
	}
};

Visit wiki and learn more about Alexa Skill Development and read detailed section for this sample skill; eercanayar/alexa-skills-ask-tutorial/wiki/Alexa-Skills-Kit-(ASK)-Development-Tutorial#step-4-more-ioting-alexa-skill---thingworx-integration

eercan @Accenture Istanbul