IFTTT Webhooks

IFTTT-extension
Extension Description
Send data to the cloud using IFTTT Webhooks.

Introduction

What is IFTTT?

IFTTT is short for If This Then That, and is the best way to integrate apps, devices, and services. It helps devices, services, and apps work together in new and powerful ways.

IFTTT has founded on the belief that everything works better together. Tech incompatibility has become challenging for anyone trying to build a smart home or create automatic routines in their life. IFTTT makes it easy.

Create IFTTT Account

Follow the steps:

  1. Go to the IFTTT website and click on Sign UP: https://ifttt.com/explore
  2. Add your email ID and password. Click on Get Started.
  3. Select the appropriate device.
  4. Choose any of the Applets and go forward.
  5. You will see Start Your Trail. Click on Not Now.

Your Account is Ready.

Install IFTTT on Phone

  1. Android: https://play.google.com/store/apps/details?id=com.ifttt.ifttt
  2. iOS: https://apps.apple.com/app/apple-store/id660944635

Creating an IFTTT Workflow

In this example we are going to create a workflow where when the flame is detected on the IoT house, a webhook request is sent to IFTTT by Quarky. On receiving the request, an SMS will be sent to the designated phone number as an alert.

Follow the steps:

  1. Click on Create on the Menu.
  2. You will see the IFTTT flow. You have to click on Add.
  3. Next, you have to choose Webhooks as a service.
  4. Inside webhooks, there are 2 options. Select – Receive a web request with a JSON payload.
  5. Next, you have to connect the service. Click on Connect.
  6. Finally, give the name of the event. For this example let’s give Fire_Alert.
  7. Our IF is now complete. Click on Add.
  8. Choose Android SMS as the service.
  9. Choose – Send an SMS.
  10. Next, you have to connect the service. Click on Connect.
  11. Add your phone number and the message. Click on Create Action.
  12. The Action is also complete. Click on Continue.
  13. Review and click on Finish.
  14. Your IFTTT workflow is set.

Accessing IFTTT Webhooks Extension in PictoBlox

Following is the process to add IFTTT Webhooks capability to the PictoBlox Project.

  1. Open PictoBlox and create a new file.
  2. Select the coding environment as Block Coding.
  3. Next, click on the Add Extension button and add the IFTTT Webhooks extension.
  4. You can find the IFTTT Webhooks blocks available in the project.

Webhook API Key

The webhook setting can be found here: https://ifttt.com/maker_webhooks/settings

On visiting the URL you will find the API Key:

Read More

PictoBlox Blocks

The block sets the IFTTT event name and the webhook key for the project. 
The block sets the defined value 1, 2, or 3 in the body of the IFTTT request to the specified value.
The block triggers the event to send a webhook request.
The block clears the values of the body.
The block reports the value 1 of the webhook event.
The block reports value 2 of the webhook event.
The block reports value 3 of the webhook event.
All articles loaded
No more articles to load

Block Coding Examples

All articles loaded
No more articles to load

Python Functions

The function initialize and sets the event name and API key for the IFTTT webhooks.
Syntax: setifttt(event_name = “event name”, key = “key”)
The function sets the specified parameter (1, 2, or 3) to the specified value. 
Syntax: setvalues(value = “your value”, parameter = 1)
The function triggers the IFTTT webhook event.
Syntax: triggerevent()
The function clear the parameter values of the IFTTT webhook.
Syntax: clearvalues()
The function returns the parameter 1 value set during the program.
Syntax: value1()
The function returns the parameter 2 value set during the program.
Syntax: value2()
The function returns the parameter 3 value set during the program.
Syntax: value3()
All articles loaded
No more articles to load

Python Coding Examples

All articles loaded
No more articles to load
Table of Contents