Skip to content

jtaavola/nurse-button-diy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nurse-button-diy

Python Raspberry Pi Twilio

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.

Development

Assemble nurse button

Follow this guide to assemble the kit and install the Voice Kit image to your Raspberry Pi.

Clone

From your Raspberry Pi, clone this repo.

git clone https://github.com/jtaavola/nurse-button-diy

Install dependencies

pip3 install twilio python-dotenv

Configure environment variables

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

python3 nurse_button.py

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

Releases

No releases published

Packages

No packages published

Languages