Author Topic: IFTTT Service  (Read 134 times)

HeneryH

  • Full Member
  • ***
  • Posts: 229
IFTTT Service
« on: February 16, 2020, 07:46:19 PM »
FYI - I ran into a pretty cool If This Then That service.  There is a free plan that only restricts on the frequency of polling (on-demand web hooks are allowable).

I used to keep a database of allowable keys/clients/SMS numbers hardcoded into my node-js app but that was unwieldy and not friendly to edit.

Now I am using Integromat.com for all of the logic and databases (actually a GoogSheet).

My use-case is that when a client sends an SMS message to Twilio, then I check it for allowable senders and if authorized then I send a web callback to the Mot Gateway to open the door.

The Twilio service used to call directly to the RaspberryPi gateway where i had hardcoded the list of allowable clients.  Not the Twilio Services send the callback to Integromat and Integromat checks the GoogleSheet for authorization, sends a reply back to the sender and calls the Gateway to open the gate.

Sharing a cool technology...



The webhook on the front end listens for inbound SMS via Twilio, the inbound sender is checked against the list of allowable senders in the G-Sheet. depending on the result, the message is replied to with a customized note such as "Welcome back <name>, access granted." or "Unauthorized" and I get an email of the results.  if allowed, the upper right is the callback to the Gateway to open the gate.

HeneryH

  • Full Member
  • ***
  • Posts: 229
Re: IFTTT Service
« Reply #1 on: February 16, 2020, 07:47:16 PM »

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6279
  • Country: us
    • LowPowerLab
Re: IFTTT Service
« Reply #2 on: February 17, 2020, 10:48:56 AM »
My 2 cents on data and smart automation stuff:

- nothing free is free. And not around for a long time, we've seen many free services come and go, or bought out and swallowed by larger companies, your data gone or sold or hacked.
- keep your data in your own cloud if you can, most likely you will do a better job keeping it secure than some no name company

I started the PiGateway for this very reason. And its actually free lol.

HeneryH

  • Full Member
  • ***
  • Posts: 229
Re: IFTTT Service
« Reply #3 on: February 17, 2020, 06:44:07 PM »
I need an easy way to store a list of valid users (name and phone number at least) who should be able to access the property.

The gate needs to open or not based on the sender of the SMS message being in the valid list.

The service noted works quite well for me..  I suppose I could spend a few weeks of figuring out to do this on the Pi or maybe spin up another VM to handle it but...  eh, I'd rather not.

The service noted has a free tier that limits the I/O and frequency of polling.

Classic Freemium model.  You may have heard of the model.

Your objection is noted.

And thanks for the Free gateway, I probably spend several hundred dollars on various Motes that work with your FREE gateway.