1Steps to get Xtencion working with other Devices and Services.
Step 1: You will have to set up an IFTTT account. Go to https://ifttt.com/
Step 2: Sign up with either your Google account or Facebook account.
Step 3: Once you have your IFTTT account, click on “My Applets” and then click on “New Applet”.
Step 4: Click on “this” and then search for “Webhooks”. Click on the Webhooks block and then select “Receive a Web Request”. It may ask you to connect the Webhooks block when you do this the first time. Just click Connect in that case.
Step 5: Here, enter an event name. You can establish which event triggers your recipe. For this example, we will name the event “personal_swipe”. Then click on Create Trigger.
Step 6: Click on “that” and look for the type of event you want to trigger. For this example I want to send a text message to my friend. Search for SMS and select the Android SMS block. Here, select “Send an SMS”.
Step 7: You can now enter the phone number you want to send an SMS to and the contents of the SMS. After this, just click on “Create Action”.
Step 8: Review your IFTTT Recipe and click “Finish”. Congratulations! You have just created an IFTTT recipe and you can use it with your Xtencion Device.
Step 9: Now that you have the recipe created. You just have to associate it with a swipe. Open the Arduino file called “Xtencion.ino” in the Arduino IDE and go down to line 170.
Step 10: Remove the two backslash symbols at the beginning of the line and enter the url from IFTTT. It should read like the line below.
Replace <EVENT_NAME> with the event name you chose while making the recipe. In this example, we chose “personal_swipe” and replace <KEY> with your key which you can find by going to this site and clicking “Documentation”. Also ensure that the url is within double quotes.
NOTE: The URL is likely to start with “https”. However, for the function to work please remove the ‘s’ to make it “http”.
Step 11: Now simply upload this code to your Xtencion device and test out your newest feature that you created!
As you can see, in just a few simple steps you can add new functionalities to your Xtencion and have it run as you like it.
In our example, we chose to simply send an SMS to a friend. However, you can choose from the very large number of Services offered on IFTTT. This can range from getting a simple notification on your phone to controlling your Philips Hue bulb at your house!