If This Then That BeagleBoard channel

I see littlbits[1] has an IF This Then That channel[2]. Is anyone working on a BeagleBone channel for ifttt?

If you haven’t looked at ifttt[3], check it out. It’s a slick way to interface to the Internet of Things.

–Mark

[1] http://littlebits.cc/
[2] littleBits works better with IFTTT
[3] https://ifttt.com

Good question. It appears IFTTT has just announced a new Maker channel[1]. Looks like the Bone is supported.

–Mark

Good question. It appears IFTTT has just announced a new Maker channel[1].
Looks like the Bone is supported.

It looks easy enough to use the Bone, but I don't see any straight-up
Bone examples. Did I miss them?

I couldn't find any examples. Here is what I have so far.
1. Go to https://ifttt.com/myrecipes/personal and create a new recipe
2. For 'this' select the 'Maker' channel
3. Choose the only trigger: "Receive a web request"
4. Name it "my_test"
5. For 'that' select what you would like to have happen. I picked email.
6. Set it up.

Then on the Bone run:

#!/usr/bin/env node
var request = require('request');
var qs = require('querystring');
var event = 'my_test';
var key = XXXXX;
var string = {value1: 'My', value2: 'Test', value3: 'BeagleBone'};

var url = ‘https://maker.ifttt.com/trigger/’ + event + ‘/with/key/’ + key +
            ‘?’ + qs.stringify(string);

console.log(url);

request(url, function (error, response, body) {
  if (!error && response.statusCode == 200) {
    console.log(body);
  } else {
    console.log("error=" + error + " response=" + JSON.stringify(response));
  }
});

After a couple of minutes an email should show up in response to the script. You can pass three values. They have to be named value1, value2 and value3.

I'm working on an example going the other way.

--Mark

I just posted a recipe on ifttt: https://ifttt.com/recipes/301640-beaglebone-test

It points to my code of github. send.js sends an event to ifttt and receive.js is a simple server that ifttt accesses when the even occurs.

–Mark