Continued from IFTTT & Twitter Fun – Part 1.

In part 1 of this three part series I described how to connect your Bitdog.io account to IFTTT. In this post I will describe how to create an FTTT applet that will send tweet events from Twitter to Bitdog Hub.

Connect Twitter Channel in IFTTT

This will require that you have a Twitter account and hook that account to an IFTTT channel.

Log into your IFTTT account on ifttt.com and find the Twitter service

ifttt-twitter-search

When you select the Twitter service IFTTT will ask you to connect it.

ifttt-twitter-connect

Enter your Twitter credentials to link the IFTTT channel with your Twitter account and you are ready to create a new IFTTT applet.

ifttt-twitter-authorize

 Create an IFTTT applet

Let’s create an applet that will monitor Twitter for anyone tweeting with the hashtag #iotrocks. When someone does. the recipe will send an event to our Maker channel that will post the event to Bitdog Hub.

On ifttt.com navigate to My Applets and click the New Applet button.

ifttt-applet-new

The first part of creating an applet is selecting which service to monitor for an event. Select “this” to choose the source service for this applet.

ifttt-this

Search for the Twitter service and select it as the source service for this applet.

ifttt-twitter-applet-choice

Choose what on Twitter will trigger an event. Select “New tweet from search“.

ifttt-twitter-new-tweet-from-search

Tell the trigger what to search for in new tweets. Type “(#iotrocks)” and click “Create trigger

ifttt-twitter-new-search

We have finished the first part of the applet. New tweets from Twitter that contain the hashtag #iotrocks will trigger new events. Lets configure what happens when an event is triggered.

Click “that“.

ifttt-applet-then

Search for the Maker Webhooks service and select it.

ifttt-applet-then-maker

Choose the action “Make a web request“.

ifttt-applet-then-choose-action

You will be presented a form to fill in about the details of the web request. Bitdog makes this easy by automatically generating the values for these fields in the Bitdog Remote app.

ifttt-applet-make-a-web-request-empty

Open Bitdog Remote on you mobile device and select “IFTTT” from the main menu.

ifttt-mobile-select

Select “Create Inbound Example

ifttt-mobile-create-inbound

The generator will create a unique secure URL, authentication key and message for you to use with the IFTTT Maker Action.

ifttt-inbound-example

Copy the values from the mobile app into the Make Web Request form in IFTTT.

ifttt-applet-make-a-web-request

You can add ingredients to the three value fields in the body that will be passed back to the Bitdog Hub when this applet fires.

ifttt-applet-make-a-web-request-2

The applet is complete and will start triggering events when you tweet with the hashtag #iotrocks. IFTTT Twitter channel triggers do not happen very quickly so you might have to wait quite  a bit after a tweet before it fires. If you followed the steps to setup your Bitdog Hub from part one of this series, you should see events coming to your Bitdog Hub when this applet fires.

In the next post we will discuss the IFTTT extension in detail.