Difference between revisions of "IFTTT (IF This, Then That)"

From Larnitech wiki page
Jump to navigation Jump to search
(Marked this version for translation)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
+
<languages/>
 +
<translate>
 +
<!--T:1-->
 
Integration of IFTTT and Larnitech through Webhook is possible by using events and actions at Webhooks tab in LT Setup. Event is a happening in Larnitech system, by which a request is sent to webhook of IFTTT server (means "THIS" in IFTTT). Action is a operation at Larnitech system, which is executed by a request to webhook of Larnitech server from IFTTT (means "THAT" in IFTTT).
 
Integration of IFTTT and Larnitech through Webhook is possible by using events and actions at Webhooks tab in LT Setup. Event is a happening in Larnitech system, by which a request is sent to webhook of IFTTT server (means "THIS" in IFTTT). Action is a operation at Larnitech system, which is executed by a request to webhook of Larnitech server from IFTTT (means "THAT" in IFTTT).
  
 +
<!--T:2-->
 
<ol class="l2"><li class="nummered">To setup an event:
 
<ol class="l2"><li class="nummered">To setup an event:
  
 +
<!--T:3-->
 
<ol><li class="nummered">Follow to the IFTTT website ([https://ifttt.com/ https://ifttt.com/]).</li>
 
<ol><li class="nummered">Follow to the IFTTT website ([https://ifttt.com/ https://ifttt.com/]).</li>
 
<li class="nummered">Sign up/log into your account.
 
<li class="nummered">Sign up/log into your account.
Line 41: Line 45:
 
<li class="nummered">The last required step is adding the script into Blockly, using the following instruciton:
 
<li class="nummered">The last required step is adding the script into Blockly, using the following instruciton:
  
 +
<!--T:4-->
 
<ul><li>Find Scripts – Scripts from logic – Add Blockly scripts menu at LTSetup;</li>
 
<ul><li>Find Scripts – Scripts from logic – Add Blockly scripts menu at LTSetup;</li>
 
<li>choose the Triggers tab at the script window, then choose and add required Device event to a workspace;</li>
 
<li>choose the Triggers tab at the script window, then choose and add required Device event to a workspace;</li>
Line 53: Line 58:
 
<li class="nummered">Enjoy!</li></ol></li></li>
 
<li class="nummered">Enjoy!</li></ol></li></li>
  
 +
<!--T:5-->
 
<li class="nummered">To add an action:
 
<li class="nummered">To add an action:
  
 +
<!--T:6-->
 
<ol><li class="nummered">Follow to IFTTT  website ([https://ifttt.com/ https://ifttt.com/]).</li>
 
<ol><li class="nummered">Follow to IFTTT  website ([https://ifttt.com/ https://ifttt.com/]).</li>
 
<li class="nummered">Sign up/log into your account.
 
<li class="nummered">Sign up/log into your account.
Line 82: Line 89:
 
<li class="nummered">Enter the link https://service.larnitech.com/webhook/?key=API_KEY&sn=SERIAL&name=ACTION_NAME into URL field, where:
 
<li class="nummered">Enter the link https://service.larnitech.com/webhook/?key=API_KEY&sn=SERIAL&name=ACTION_NAME into URL field, where:
  
 +
<!--T:7-->
 
<ul><li>API_KEY: is a key from the Key field in LTSetup – Plugins – API – Configure;</li>
 
<ul><li>API_KEY: is a key from the Key field in LTSetup – Plugins – API – Configure;</li>
 
<li>SERIAL:  is a serial number that can be copied from the Serial Number field at Overview page of LTSetup;</li>
 
<li>SERIAL:  is a serial number that can be copied from the Serial Number field at Overview page of LTSetup;</li>
Line 94: Line 102:
 
<br>[[file:ifttt41.png|500px]]<br></li>
 
<br>[[file:ifttt41.png|500px]]<br></li>
 
<li class="nummered">Enjoy!</li></ol></li></ol>
 
<li class="nummered">Enjoy!</li></ol></li></ol>
 +
</translate>

Latest revision as of 15:10, 15 January 2022

Other languages:
English • ‎русский

Integration of IFTTT and Larnitech through Webhook is possible by using events and actions at Webhooks tab in LT Setup. Event is a happening in Larnitech system, by which a request is sent to webhook of IFTTT server (means "THIS" in IFTTT). Action is a operation at Larnitech system, which is executed by a request to webhook of Larnitech server from IFTTT (means "THAT" in IFTTT).

  1. To setup an event:
    1. Follow to the IFTTT website (https://ifttt.com/).
    2. Sign up/log into your account.
      Ifttt1.png
    3. Choose My Applets at the top menu.
      Ifttt2.png
    4. Follow to Services.
    5. Find and connect the Webhooks sevice.
      Ifttt3.png
    6. Press Settings on the Services page.
      Ifttt4.png
    7. Copy the URL end-code of the account (the last word in the URL-string).
      Ifttt5.png
    8. Open the Webhooks Tab in LTSetup.
      Ifttt6.png
    9. At the Events tab, add an event (You can see the examples by clicking the Help button).
      Ifttt7.png

      Ifttt8.png
    10. At the URL string change the key to the copied one at 1.7 and save event.
      Ifttt9.png

      Ifttt10.png
    11. Follow to IFTTT – My Applets
    12. Press New Applet
      Ifttt11.png
    13. Press "this".
      Ifttt12.png
    14. Find and choose Webhooks.
      Ifttt13.png

      Ifttt14.png
    15. At the "Event Name" field it is required to enter the event’s name from the page Events in LTSetup – Webhooks. After filling "Event Name", press "Create trigger" button.
      Ifttt15.png

      Ifttt16.png
    16. Choose any service and connect it.
      Ifttt17.png
    17. Finish the adding of an applet.
      Ifttt18.png
    18. The last required step is adding the script into Blockly, using the following instruciton:
      • Find Scripts – Scripts from logic – Add Blockly scripts menu at LTSetup;
      • choose the Triggers tab at the script window, then choose and add required Device event to a workspace;
      • paste the Make webhook block from the Automation tab to the script’s event;
      • set name for script, choose the module where it will be executed and its location, then save the changes.


      Ifttt19.png

      Ifttt20.png

      Ifttt21.png

      Ifttt22.png

      Ifttt23.png

    19. Enjoy!
  2. To add an action:
    1. Follow to IFTTT website (https://ifttt.com/).
    2. Sign up/log into your account.
      Ifttt24.png
    3. Choose My Applets at the top menu.
      Ifttt25.png
    4. Follow to Services tab.
    5. Find and connect the Webhooks service.
      Ifttt26.png
    6. Open the Webhooks tab in LTSetup.
      Ifttt27.png
    7. Add action at the Actions tab (You can see the examples by clicking the Help button.).
      Ifttt28.png

      Ifttt29.png
    8. Save the changes.
      Ifttt30.png
    9. Follow to IFTTT – My Applets.
    10. Press New Applet.
      Ifttt31.png
    11. Choose "this".
      Ifttt32.png
    12. Choose an event, by which the action will be executed.
      Ifttt33.png
    13. Find and add Webhooks service at the "Choose action service" textfield.
      Ifttt34.png

      Ifttt35.png
    14. Enter the link https://service.larnitech.com/webhook/?key=API_KEY&sn=SERIAL&name=ACTION_NAME into URL field, where:
      • API_KEY: is a key from the Key field in LTSetup – Plugins – API – Configure;
      • SERIAL: is a serial number that can be copied from the Serial Number field at Overview page of LTSetup;
      • ACTION_NAME: name of an action from the Name field at LTSetup – Webhooks – Actions.


      Ifttt36.png

      Ifttt37.png

      Ifttt38.png

      Ifttt39.png

      Ifttt40.png

    15. Save the Applet.
      Ifttt41.png
    16. Enjoy!