I repurposed an old AIY Google Voice Kit (V1) to make a simple nurse button. If the button is pressed, a text message is sent to designated recipients using Twilio. The voice kit speaker and mic aren't used at all.
The aiy/
code was taken from Voice Kit SD image.
Follow this guide to assemble the kit and install the Voice Kit image to your Raspberry Pi.
From your Raspberry Pi, clone this repo.
git clone https://github.com/jtaavola/nurse-button-diy
pip3 install twilio python-dotenv
Create a .env
file at the root of the project to set the environment variables
# sid and auth token from https://console.twilio.com/
TWILIO_ACCOUNT_SID=<account_sid>
TWILIO_AUTH_TOKEN=<auth_token>
# phone numbers must be in E.164 format
TWILIO_FROM_NUMBER=+1234567890
# comma separate list of phone numbers to send the SMS to
TWILIO_TO_NUMBERS=+12345678901,+13456789012
Run the nurse button program. If you want this to run on startup, you can add a cron job.
Run
crontab -e
and add
@reboot python3 /path/to/nurse_button.py