Difference between revisions of "IFTTT (IF This, Then That)/ru"
Jump to navigation
Jump to search
(Created page with "IFTTT (IF This, Then That)") |
(Created page with "Интеграция IFTTT и Larnitech через Webhook возможна с помощью событий и действий на вкладке Webhooks в програм...") |
||
Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
− | + | Интеграция IFTTT и Larnitech через Webhook возможна с помощью событий и действий на вкладке Webhooks в программе LT Setup. Событие — это событие в системе Larnitech, посредством которого отправляется запрос на веб-хук сервера IFTTT (означает «ЭТО» в IFTTT). Действие — это операция в системе Ларнитек, которая выполняется запросом к вебхуку сервера Ларнитек из IFTTT (означает «ТО» в IFTTT). | |
<ol class="l2"><li class="nummered">To setup an event: | <ol class="l2"><li class="nummered">To setup an event: |
Revision as of 13:13, 18 January 2022
Интеграция IFTTT и Larnitech через Webhook возможна с помощью событий и действий на вкладке Webhooks в программе LT Setup. Событие — это событие в системе Larnitech, посредством которого отправляется запрос на веб-хук сервера IFTTT (означает «ЭТО» в IFTTT). Действие — это операция в системе Ларнитек, которая выполняется запросом к вебхуку сервера Ларнитек из IFTTT (означает «ТО» в IFTTT).
- To setup an event:
- Follow to the IFTTT website (https://ifttt.com/).
- Sign up/log into your account.
- Choose My Applets at the top menu.
- Follow to Services.
- Find and connect the Webhooks sevice.
- Press Settings on the Services page.
- Copy the URL end-code of the account (the last word in the URL-string).
- Open the Webhooks Tab in LTSetup.
- At the Events tab, add an event (You can see the examples by clicking the Help button).
- At the URL string change the key to the copied one at 1.7 and save event.
- Follow to IFTTT – My Applets
- Press New Applet
- Press "this".
- Find and choose Webhooks.
- 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.
- Choose any service and connect it.
- Finish the adding of an applet.
- 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.
- Enjoy!
- To add an action:
- Follow to IFTTT website (https://ifttt.com/).
- Sign up/log into your account.
- Choose My Applets at the top menu.
- Follow to Services tab.
- Find and connect the Webhooks service.
- Open the Webhooks tab in LTSetup.
- Add action at the Actions tab (You can see the examples by clicking the Help button.).
- Save the changes.
- Follow to IFTTT – My Applets.
- Press New Applet.
- Choose "this".
- Choose an event, by which the action will be executed.
- Find and add Webhooks service at the "Choose action service" textfield.
- 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.
- Save the Applet.
- Enjoy!