Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

There are two components in alxIFTTT, Triggers and Actions.  Triggers send events to IFTTT and Actions receive events from IFTTT.  Both of these components utilize the IFTTT "Maker" channel service which is a generic channel service for sending and receiving events.  

...

Triggers allow the Niagara Station to send an action with values to the IFTTT API.  These are the "this" portion of an if-this-thanthen-that recipeapplet.  The "Event Name" property can be set to any unique name, this is the ID that IFTTT will use when matching it to an action.  Each Trigger allows three optional values which can also be used in an IFTTT recipeapplet.

To set up a Trigger for the "this" portion of your recipeapplet, first select the "Maker" Trigger Channel Service followed by selecting "Receive a Web Request".  In Step 3 type in the exact event name you supplied in your MakerTrigger component.

...

Actions are blocks that receive an event and information from an IFTTT recipeapplet.  They're the "that" portion of an if-this-thanthen-that.  An Action has a single property called "URL" which is the URL that IFTTT will be using to communicate with the Action.  This URL should reflect the username, password, public IP, and HTTPS settings you configured in the IFTTT Service.  

...

To receive an Action from IFTTT as the "that" portion of a RecipeApplet

  1. Select the "Maker" channel
  2. Choose "Make a Web Request"
  3. Paste in the URL from your "MakerAction" block into the URL field

If you would like to receive data from the recipeapplet, select Method "POST" and Content Type of "application/x-www-form-urlencoded".  Then each value needs to be formatted in a URL form-encoded manner.  The URL form-encoded format is name=value&name2=value2& (etc.).  IFTTT provides a list of usable values from the "this" portion of the Recipe Applet which can be accessed by clicking on the beaker on the right-side of the "Body" input.  This will place dynamic values in double curlys.

...

temperature={{Temperature}}&status={{Status}}