Difference between revisions of "If This Then That"

From csn
Jump to navigation Jump to search
Line 5: Line 5:
 
In this exercise, we will build a contactless virtual doorbell using If This Then That (IFTT). Go to https://ifttt.com/ and create an account.  
 
In this exercise, we will build a contactless virtual doorbell using If This Then That (IFTT). Go to https://ifttt.com/ and create an account.  
  
After you have created an account go to create or https://ifttt.com/create.
+
After you have created an account go to create or https://ifttt.com/create
  
 
Click on this
 
Click on this
Line 29: Line 29:
 
Copy the URL, mine is shown below:
 
Copy the URL, mine is shown below:
  
https://maker.ifttt.com/trigger/[app_name_goes_here]/with/key/dTJObOgVj3RHOCghZtMch
+
https://maker.ifttt.com/trigger/[app_name_goes_here]/with/key/dTJObOgVj3RHOCghZtMch
  
 
and paste this into a text editor. Replace:
 
and paste this into a text editor. Replace:
Line 41: Line 41:
 
So for my example
 
So for my example
  
https://maker.ifttt.com/trigger/doorbell/with/key/dTJObOgVj3RHOCghZtMch
+
https://maker.ifttt.com/trigger/doorbell/with/key/dTJObOgVj3RHOCghZtMch
  
You should notice that, you have received an email in your inbox, indicating that someone is at the door.
+
You should notice that you have received an email in your inbox, indicating that someone is at the door.
  
If you think creatively the trigger could of course be anything, a motion sensor, the action could also be anything, turn on some lights, send an SMS.
+
If you think creatively the trigger could, of course, be anything, a motion sensor, the action could also be anything, turn on some lights, send an SMS.
  
 
=== QRcodes ===
 
=== QRcodes ===
Line 53: Line 53:
 
Go to this website https://www.qr-code-generator.com/ and paste in your trigger URL. Generate a QR code and then display it on your computer screen.  
 
Go to this website https://www.qr-code-generator.com/ and paste in your trigger URL. Generate a QR code and then display it on your computer screen.  
  
Open the camera app on your phone and then point it at the screen. It should identify the qrcode, you can click to visit the link and generate the email.
+
Open the camera app on your phone and then point it at the screen. It should identify the QRcode, you can click to visit the link and generate the email.

Revision as of 05:32, 25 May 2020

If this then that is...

IFTT Doorbell

In this exercise, we will build a contactless virtual doorbell using If This Then That (IFTT). Go to https://ifttt.com/ and create an account.

After you have created an account go to create or https://ifttt.com/create

Click on this

Then search for and click on Webhooks then click receive a web request.

Create and name you event "Doorbell"

You will be brought back to the section where you can click on that.

Click on That

Then search for and click on email then click on send me an email. You will have to verify your inbox with a pin.

Change the subject line to Doorbell then click create.

Click Finish to end the task.

Click the user icon in the top right of the page and then click on my services.

Then click on webhooks then settings. Copy the URL, then place it into a new browser window.

Copy the URL, mine is shown below:

https://maker.ifttt.com/trigger/[app_name_goes_here]/with/key/dTJObOgVj3RHOCghZtMch

and paste this into a text editor. Replace:

[app_name_goes_here]

With:

doorbell

So for my example

https://maker.ifttt.com/trigger/doorbell/with/key/dTJObOgVj3RHOCghZtMch

You should notice that you have received an email in your inbox, indicating that someone is at the door.

If you think creatively the trigger could, of course, be anything, a motion sensor, the action could also be anything, turn on some lights, send an SMS.

QRcodes

Users don't like long URLs. Pressing a doorbell is easy but typing in a long URL is hard so we will turn the URL trigger into a QRcode.

Go to this website https://www.qr-code-generator.com/ and paste in your trigger URL. Generate a QR code and then display it on your computer screen.

Open the camera app on your phone and then point it at the screen. It should identify the QRcode, you can click to visit the link and generate the email.