IFTTT/IRKit Integration

If X then send infrared signal.


Turn on TV at 08:00 AM on Mon Tue Wed Thu Fri.

Turn on Air Conditioner when Bot Tweets.

How to use

  1. Prepare clientkey and deviceid.

    clientkey authenticates the client, in this case IFTTT.
    deviceid identifies the IRKit device which you want to send infrared signals from.

    First, issue a POST /keys request to IRKit.
    see http://getirkit.com/#IRKit-Device-POST-keys for details.

    # Search for IRKit on Wi-Fi network.
    % dns-sd -B _irkit._tcp
    Browsing for _irkit._tcp
    DATE: ---Sun 15 Feb 2015---
    22:48:57.082  ...STARTING...
    Timestamp     A/R    Flags  if Domain               Service Type         Instance Name
    22:48:57.427  Add        2   4 local.               _irkit._tcp.         irkitae42
    # Get IRKit's IP address.
    % dns-sd -G v4 irkitae42.local
    DATE: ---Sun 15 Feb 2015---
    22:49:22.863  ...STARTING...
    Timestamp     A/R Flags if Hostname                               Address                                      TTL
    22:49:23.159  Add     2  4 irkitae42.local.                                              15
    % curl -i "" -d ''
    HTTP/1.0 200 OK
    Access-Control-Allow-Origin: *
    Server: IRKit/
    Content-Type: text/plain

    Next, issue a POST /1/keys request to our server on Internet using the clienttoken.
    see http://getirkit.com/#IRKit-Internet-POST-1-keys for details.

    % curl -i -d "clienttoken=0DA15AE27F0A4615981227FA38023B72" "https://api.getirkit.com/1/keys"
    HTTP/1.1 200 OK
    Server: ngx_openresty
    Date: Mon, 16 Feb 2015 06:52:09 GMT
    Content-Type: application/json; charset=utf-8
    Content-Length: 94
    Connection: keep-alive
    Access-Control-Allow-Origin: *
    Access-Control-Allow-Headers: X-Requested-With
    X-Content-Type-Options: nosniff

    Now you've got a clientkey and deviceid.

  2. Prepare the Infrared Signal JSON representation.

    Press your boring Infrared remote's button towards IRKit, and issue a GET /messages request to IRKit.
    This signal is going to be sent from IRKit when the trigger fires.

    % curl -i ""
    HTTP/1.0 200 OK
    Access-Control-Allow-Origin: *
    Server: IRKit/
    Content-Type: text/plain

    The response JSON is the Infrared Signal JSON representation.

  3. Create a Recipe on IFTTT, and Activate WordPress Trigger.

    Open IFTTT and Sign in, and click the "Create a Recipe" button. create a recipe

    Choose any Trigger Channel.

    And choose WordPress Action Channel.
    choose wordpress action channel

    Click Activate.

    Input Blog URL, Username and Password field.
    Blog URL must be http://ifttt.getirkit.com/,
    Username and Password field can be anything.

    Click Activate again.

  4. Input clientkey, deviceid and the Infrared Signal JSON Representation.

    Click Create a post.

    Input your clientkey in the Title field,
    and your Infrared Signal JSON representation in the Body field,
    and your deviceid in the Categories field.


  5. Press "Create Action"!

    create action

    Your done!