Streaming from IFTTT

 IFTTTLogo.png


If This Then That (IFTTT) is a service that lets you setup triggers between supported services using "Applets". An example would be "If it starts to rain, change my Hue light bulb color to blue." 

There are quite a few IFTTT integrations that allow certain sensor readings to trigger an action in another service. One of these services is called "Webhooks". The Webhooks service allows you to make or receive web requests. Since Initial State accepts web requests, you can stream events whenever a certain condition in IFTTT is met.

 

Choosing your Applet


Create an Initial State Bucket

The first thing you'll need to do is create an Initial State Bucket from your bucket shelf. The API endpoint from this bucket is what you'll enter in the applet to send data from IFTTT to Initial State. 

Inside IFTTT

After selecting your "this", select the Webhooks service as your "that". Select "Make a web request".

In the URL box copy and paste your API endpoint from the bucket you created. It will look something like this:

https://groker.init.st/api/events?accessKey=YOURINITIALSTATEACCESSKEY&bucketKey=YOURBUCKETKEY

Treat this the same as streaming via URL parameters now. Add to the end of the URL an "&", stream name, and "=". Click "Add ingredient" and choose the value you want to track.

The Method is “GET”, and leave the Content Type & Body blank. 

Initial State Dashboard

Depending on the type of Applet you are creating, your data may send immediately or make take a day to send (Fitbit sends each day's full stats each morning). You can check that an applet has worked by going to the Activity Summary in IFTTT. 

 

Attachments

IFTTTLogo.png