7 ms·
Show HN: tttfi – Middleware for IFTTT
- jld 9y agoI wish IFTTT were faster. Many recipes only seem to be run a few times a day. I've been concocting a bunch of things in AWS Lamdba lately which should be in a service like IFTTT.
- gs1 9y agoThe infrequent pollings were an irritating aspect of IFTTT. Also, I wished for more advanced functionality similar to what Yahoo Pipes provided.
- mod 9y agoYahoo pipes is gone, right? So for us who didn't experience it, what kind of advanced functionality did it offer that is missing in ifttt?
- ahazred8ta 9y agoBriefly, Pipes worked with feeds and data streams. IFTTT triggers on events. https://google.com/search?q=ifttt+yahoo+pipes https://google.com/search?q=ifttt+yahoo+pipes https://www.import.io/post/5-yahoo-pipes-alternatives-that-are-actually-better-than-pipes/ https://www.import.io/post/5-yahoo-pipes-alternatives-that-a...
- rchakra3 9y agoI've started using stringify with IFTTT to get a lot of my home automation working now. I'd use stringify exclusively but IFTTT has a lot more integrations, so I end up using IFTTT as both a trigger and action in stringify. Ugly, but it works.
- dmerrick 9y agoWonderful idea. So wonderful, in fact, it makes one wonder what is taking IFTTT so long to offer up similar functionality.
- eli 9y agoI don't think it's compatible with their business model to allow arbitrary integrations.
- yjftsjthsd-h 9y agoWait, I thought they had the maker channel specifically for creating arbitrary custom integrations?
- sdoering 9y agoLegacy python nowadays? I really cannot understand why one would use legacy with a new project. Sorry but I could understand if you had to maintain a legacy code base.
- oxguy3 9y agoPython2 is still what comes installed as stock on many distros. I know Fedora/CentOS ship with it, in part because the package manager Yum/DNF is based in Python2.
- toyg 9y agoThat's not even true anymore. From https://fedoralovespython.org/ https://fedoralovespython.org/ : On Fedora, Python comes pre-installed with first class support for Python virtual environments. It is ready for use straight out of the box. No guessing package names, no installation, just dive in and go. Look: [fedora]$ python3 -m venv env [fedora]$ . env/bin/activate (env) [fedora]$ python ... Note the python3 ... EDIT: wow, 4 downvotes for stating a fact that Fedora developers themselves are shouting from rooftoops. The Python3 hate is strong today.
- OJFord 9y agoBut what's the output of python --version (note not python3)
- maweki 9y agoPEP 394 says that python should point to python2 for the time being. https://www.python.org/dev/peps/pep-0394/ https://www.python.org/dev/peps/pep-0394/
- toyg 9y agoYup, and it will be reviewed and likely changed at some point: This recommendation will be periodically reviewed over the next few years, and updated when the core development team judges it appropriate. So it's likely that at some point between here and 2020, or in 2020 at worst, the recommendation will change. IMHO Python 3 has now reached a level of maturity and backward-compatibility where it can safely take over as system python. It's now shipped by Fedora, which means the next RHEL will also ship it. Updating old scripts should mostly be a matter of grepping and shebanging from python to python2, and there is now no point in procrastinating further with this move.
- hengheng 9y agoSlightly OT: I signed up for the IFTTT newsletter a long time ago, in hopes to find out what people use the thing for. Turns out it's impossible to unsubscribe from that newsletter, which disqualified the whole service in my eyes.
- trillic 9y agoSet up and IFTTT action to delete all emails from IFTTT
- nothrabannosir 9y agoMark them as spam. Train your provider's filters and let the problem solve itself. Get enough people on board and suddenly poof unsubscribe links will appear like magic!
- swsieber 9y agoI endorse marking them as spam. If they don't let you unsubscribe, they are spam.
- nerdponx 9y agoI'm pretty sure that's illegal in the USA.
- OJFord 9y agoAlso in the UK, but the last list I tried to request an unsubscription from (and with references suggest they include an 'unsubscribe' link) bounced the email. What really are you going to do...
- 33W 9y agoI use IFTTT for a few different things: 1. Logged to a google spreadsheet when I enter and leave a radius around my work. I have to log hours worked, so this gives me a starting point at the end of the week for when I was physically here. 2. I get a stock price emailed to me when the market closes. I own a few shares of a single company (lowers my auto insurance premium, and keeps my engaged in the market), so this helps me see day-to-day changes. 3. I get the weather pushed to my phone at 6am every morning, so it is there on my lock screen as I'm getting up. 4. I get an email every time someone goes into space. SPACE.
- rockostrich 9y agoI'm not sure middleware is the right term for a server that responds to webhooks. Either way, I think this is a good introduction for someone who is looking to do very simple things with an IFTTT integration. I don't think a node.js server running a python script inside of a docker container is the best way to go about it. Anyone who is trying to learn how to write integrations to services (such as IFTTT) will get the wrong impression if they try to dissect this code.
- ehsankia 9y agoYeah. I made something similar with a raspberry pi I had around the house. Hosted a simple HTTP Server using 10 lines of Flask, and used IFTTT's Maker service to glue it all together. There are many ways of getting this setup, whatever you're most comfortable with. The key here is that this Maker service exists that let's you do basic REST input/output
- _Marak_ 9y agoIf you are interested in doing this locally ( without IFTTT dependency ), I'd suggest checking out: https://github.com/stackvana/microcule https://github.com/stackvana/microcule
- zrail 9y agoZapier has this built in. Granted you can only really write scripts that run directly on their platform in JavaScript, but within that scope you can do basically anything you want. You can also write your own private apps that execute on your own infrastructure in whatever language you want. https://zapier.com/developer/documentation/v2/scripting/ https://zapier.com/developer/documentation/v2/scripting/
- bryanh 9y agoAlso Python -- both as triggers and actions. https://zapier.com/help/code/ https://zapier.com/help/code/ https://zapier.com/help/code-python/ https://zapier.com/help/code-python/
- voltagex_ 9y agoIsn't Zapier a lot more expensive though?
- zrail 9y agoYes $20 per month is a lot more expensive than free, I suppose, but Zapier also has a limited free plan that would probably cover what OP is doing.
- OhSoHumble 9y agoThere is this website, donorschoose.org, that allows you to donate to schools within the United States. Teachers are able to post projects that are open to funding - art supplies, music, books, etc - and their projects would be posted in a public space and open to funding from individuals or organizations. Donors Choose also has an API that one can use to programmatically list projects. I paired that API with Zapier to notify me about projects that I cared about - namely, classrooms that were filled with lower income students who had trouble getting fed at home. Now I get a notification whenever a new project is created that fits the profile of what I want to donate to. Doing the same with IFTTT, from what I can tell, is kind of impossible. I looked into writing a shim API that would enable that type of notification but I couldn't get keys for the IFTTT service. I dunno. Zapier seemed to offer better functionality and I didn't even have to pay for it.