Skip to content

interlock/door-buzz

Repository files navigation

Door Buzz

Direct a door buzzer to this project, and press the 9 button to let people in when a google calendar ical file has anything scheduled.

Requirements

  • Twilio account with a number for your buzzer to call
  • Heroku account for deployment (ideally you pay for a small dyno, the spin up time on hobby leads to dropped calls)
  • A free heroku mongodb database to record metrics
  • A public Google Calendar you want to define events in
  • Google API Service account keys with scoped access to read calendar data
  • Optionally a number to forward call to after hours (default is to say we are closed)

Setup

  • Setup a google developer app and create some service account credentials
  • Convert the json file above to environment variables:
  • Configure the GCAL_ID to your public calendar
  • Configure the AFTER_HOURS_NUMBER to point to the number you want calls to go to when closed
  • Configure the AFTER_HOURS_CODE to set a four digit code to unlock after hours
  • Configure the SECRET if you want to use the /admin?secret= url
  • Point your Twilio numbers call handling to: https://.herokuapp.com/twilio/call (POST or GET, does not matter)

Operation

Create events in the calendar for periods of time you want door-buzz to open the door.

Manually override door-buzz on the admin panel.

Admin Panel Url: https://.herokuapp.com/admin?secret=SECRET

About

Let people in to telecom buzz systems via twilio

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published