I wanted to make my apartment buzzer acessible without a physical key, so I created these Twilio Functions to make my buzzer smarter. Features include:
I kind of went overboard I think, given my original goal. But this was actually really easy to develop and set up. And also really cheap.
git clone https://github.com/jlian/smart-door-buzzer-twilio-functions.git
, but it’s not critical..js
files into its own function with names that you’d remember.TWILIO_PHONE
with the Twilio number you boughtPASSPHRASE
for voice passwordPASSCODE
for PINJOHN_PHONE
and others for your cellphone numberbuzzer-activated.js
.Twilio Functions is pretty sweet. It’s completely serverless so you don’t need a VM or computer to keep running an app. It’s perfect for something small scale like your apartment buzzer. The flow of this program goes like this:
buzzer-activated.js
runs.door-open.js
dials a 9
to the buzzer (my building’s buzzer code, yours may be different), which opens the door.call-residents.js
calls all the residents until someone picks up and manually dial 9
to open the door.text-me.js
texts a specified number with info on what happened.According to Twilio docs, collecting speech is charged at $.02 per 15 seconds. A Twilio number costs $1/month. Looking at my own billing dashboard, it never exceeds $2/month - pretty reasonable.