GithubHelp home page GithubHelp logo

gatekeeper's Introduction

Gatekeeper

A serverless Python lambda script to open gates.

How this works

The apartments I live at use a tele-entry box for entry. A guest enters a code that then dials my phone. When I answer, I can talk to the person at the gate and dial the number 9 on my phone to command the system to open the gates.

I don't always have my cell phone around with me to answer it if I have a guests or food delivery/packages. Therefore, the script is set up to answer requests from Twilio.

I registered a number with Twilio that I then gave to the apartment community. When the tele-entry boxes calls the Twilio number, it makes an API request to the Lambda script which then decides what to do with the request. If we recognize the number that's calling as being from the tele-entry box, we just send the 9 dial tone command so the gates open up automatically. It also sends me a text that the apartment gates were opened. If we receive a call from any other number, it forwards to my phone.

In the event that the script fails, or there's an issue with the lambda function, Twilio is set up to forward the call to my personal phone number, and it also sends me an email to let me know the HTTP call failed.

Requirements

Uses https://serverless.com/blog/serverless-python-packaging/ for local development.

This is also based on a much simpler version of: https://blog.expo.io/how-to-never-miss-or-even-answer-a-buzzer-call-from-friends-ever-again-1-2-ad90144030c4

There's no additional verification or security measures in this system, but I may look into adding it without using Facebook.

gatekeeper's People

Contributors

mgtrrz avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.