bottleneck
Choose style:

Author Topic: IFTTT Support coming soon?  (Read 11820 times)

0 Members and 1 Guest are viewing this topic.

Offline cconner57

  • Backer
  • *
  • Posts: 4
  • Thanks: 0
  • Registered : 22/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
IFTTT Support coming soon?
« on: September 01, 2014, 10:39:16 pm »
I've been trying to find a forum with a more recent answer to this question. I know the Almond+ has similar functionality but is there any news that IFTTT integration will happen soon? Hope it does!

Great product btw!

Offline SysErr

  • Backer
  • *
  • Posts: 8
  • Thanks: 0
  • Registered : 02/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: IFTTT Support coming soon?
« Reply #1 on: September 02, 2014, 10:13:03 pm »
I'm waiting for the firmware to be released (didn't buy a dev unit) so I can try and put together IFTTT myself... wanted to play with the IFTTT API, this is as good a project as I can think of :)
« Last Edit: September 02, 2014, 10:16:16 pm by SysErr »
-Blayne Watt
Lead Software Engineer
General Electric, Inc.

Offline Blueiris8

  • Backer
  • *
  • Posts: 112
  • Thanks: 0
  • Registered : 18/05/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: IFTTT Support coming soon?
« Reply #2 on: September 02, 2014, 11:17:56 pm »
Would love some IFTTT integration, so good luck to you.  If you have any success please report back.

Offline Myk

  • Backer
  • *
  • Posts: 8
  • Thanks: 0
  • Registered : 03/09/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: IFTTT Support coming soon?
« Reply #3 on: September 03, 2014, 01:28:05 am »
IFTTT integration would be good. Much easier than trying to replicate their work supporting various channels.

Offline rysmithjr

  • Backer
  • *
  • Posts: 10
  • Thanks: 0
  • Registered : 26/07/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: IFTTT Support coming soon?
« Reply #4 on: September 24, 2014, 04:13:21 pm »
I would love IFTTT support also!  Would make a nice bridge between different systems and services that are currently outside of the Almond+ world.

Offline syntax1269

  • Backer
  • *
  • Posts: 21
  • Thanks: 0
  • Registered : 07/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: IFTTT Support coming soon?
« Reply #5 on: September 25, 2014, 11:35:56 pm »
I would also love IFTTT support also! so many things that you can do with it!

Offline matt

  • Backer
  • *
  • Posts: 151
  • Thanks: 1
  • Registered : 26/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: IFTTT Support coming soon?
« Reply #6 on: September 26, 2014, 02:50:29 pm »
I would also love IFTTT support also! so many things that you can do with it!

There is currently a hack to use IFTTT as an http api which would be fairly easy to integrate. The main reason I haven't is because for some reason I can't get the PHP version running on my A+ accepted by IFTTT (the hosted version works fine):

https://github.com/captn3m0/ifttt-webhook/
https://github.com/sebauer/if-this-then-node

From there it would be relatively simple to write a little webapp to run on lighttpd on the A+ that talks to mochad, or directly with the A+ API if you're a little more ambitious.

I am currently more interested in OpenHAB integration, but I thought I would mention that in case someone else wants to tackle it. That and theoretically the official devs are working on IFTTT, so I wanted to add non-redundant functionality.

Offline matt

  • Backer
  • *
  • Posts: 151
  • Thanks: 1
  • Registered : 26/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: IFTTT Support coming soon?
« Reply #7 on: September 30, 2014, 03:53:09 am »
Alrighty, for a proof of concept I integrated IFTTT with my mochad. You could however just as easily integrate it with the sample switch app, or any other software on the Almond+. I will post my method of doing so here, but follow at your own risk. usual disclaimer applies, I am not responsible if this bricks your router, your friend's router, or your enemy's router. It worked for me, but I am almost certainly leaving out at least one step. Also, this uses a Wordpress API xmlrpc hack, and I don't know if IFTTT dislikes this practice.

I tried to make this have as few dependencies as possible (to the point where I rewrote the script in perl, then even replaced the Switch function to not rely on that). As such, I believe this actually has _no_ package dependencies. Also, this was tested on R065, I haven't installed R066 yet.

The only dependency my current setup has is that it relies on having a hostname for lighttpd to do some external service restrictions. You can formulate your own if you want.

Install perl script on Almond+:
I put it in
/www/iftttn/xmlrpc.pl
If you want to put it somewhere else, you should modify things later to suit.
Code: [Select]
mkdir /www/iftttn
cd /www/iftttn
wget http://remote.thejanky.org/mirrors/almondplus/code/xmlrpc.pl
chmod +x xmlrpc.pl

You can edit this file to create a username and password (at the top of the script). Obviously this is not great security, someone should probably change this to be better.

Modify lighttpd conf:
No clue if this is actually necessary, but I haven't tested if it works without it, so I put it here anyway. Add the following line somewhere, as I believe the usual xmlrpc connection is done with php, but we're going to fake it with our perl script (so we don't have to install php).
Code: [Select]
alias.url = ( "/xmlrpc.php" => "/www/iftttn/xmlrpc.pl" )

I also add a host-based restriction (change "my.hostname.com" to your hostname):
Code: [Select]
$HTTP["host"] == "my.hostname.com" {
  server.document-root = "/www/iftttn/"
  $HTTP["url"] !~ "^/xmlrpc.p(hp|l)" {
    url.access-deny = ( "" )
  }
}

Don't forget to restart lighttpd after these changes:
Code: [Select]
/etc/init.d/lighttpd restart
Then opened up the firewall. You can do so via the web interface. The relevant part of /etc/config/firewall for me was:
Code: [Select]
config 'rule'
        option 'target' 'ACCEPT'
        option 'src' 'wan'
        option 'proto' 'tcp'
        option 'name' 'routerwww'
        option 'dest_port' '80'

If you change the conf directly, I imagine you'll have to restart /etc/init.d/firewall.

Then just add it to IFTTT as a Wordpress installation. There are screenshots here of what to do:
https://github.com/captn3m0/ifttt-webhook/
URL: my.hostname.com/iftttn/
Username: whatever you set in the script
Password: whatever you set in the script

Finally, create your rules. If you're using mochad, you just pass a mochad command in the body of the wordpress post, the rest of the fields are ignored. If not, you should modify the process_command function in xmlrpc.pl to do whatever you want (currently the body is stored in $obj->{url}, modify/use at will).

For info on setting up mochad, see the forum post on it:
http://forum.securifi.com/index.php/topic,615.msg7006.html#msg7006

I believe that is everything. Let me know when it doesn't work and I will try to help figure out what I invariably left out of the instructions. I probably won't actually use this, so I'm not sure I'll support it long term, but I wanted to see how hard it would be to do, so here it is.
« Last Edit: September 30, 2014, 01:28:49 pm by matt »

Offline francehopper

  • Backer
  • *
  • Posts: 33
  • Thanks: 0
  • Registered : 19/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: IFTTT Support coming soon?
« Reply #8 on: October 01, 2014, 11:42:09 am »
IFTTT support would be beautiful. Especially text to reboot XD

LGNilsson

  • Guest
Re: IFTTT Support coming soon?
« Reply #9 on: October 01, 2014, 12:11:27 pm »
You can reboot from the app... just saying  ;)

Offline francehopper

  • Backer
  • *
  • Posts: 33
  • Thanks: 0
  • Registered : 19/08/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: IFTTT Support coming soon?
« Reply #10 on: October 01, 2014, 12:54:17 pm »
You can reboot from the app... just saying  ;)

Good point, but there are lovely areas here in Philly with cellular connections, but not the data kind. Just to complicate things >_>

Offline utrph77004

  • Backer
  • *
  • Posts: 58
  • Thanks: 1
  • Registered : 11/07/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: IFTTT Support coming soon?
« Reply #11 on: May 09, 2015, 03:07:39 am »
I guess a lot of other things have taken priority.

Offline kvandenh

  • Newbie
  • Posts: 1
  • Thanks: 0
  • Registered : 03/01/2015
    YearsYearsYearsYearsYearsYearsYearsYearsYears
Re: IFTTT Support coming soon?
« Reply #12 on: May 17, 2015, 12:07:30 pm »
I would also love to see ifttt support! Just now starting to automated and the potential with ifttt is amazing!

Offline Kazy

  • Backer
  • *
  • Posts: 50
  • Thanks: 0
  • Registered : 19/07/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: IFTTT Support coming soon?
« Reply #13 on: June 18, 2015, 12:04:09 pm »
Here's something:
https://ifttt.com/maker

Offline rpr69

  • Backer
  • *
  • Posts: 133
  • Thanks: 0
  • Registered : 08/09/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: IFTTT Support coming soon?
« Reply #14 on: June 18, 2015, 12:35:50 pm »
If you look up my IOT post in the wiki, you could certainly hook into the IFTTT maker web interface fairly easily. This could basically remove the need for any Cloud services from Securifi, and could potentially replace the HA portion of the Almond+ as well, with a number of caveats.

 

Page created in 0.054 seconds with 20 queries.