In this section, we will connect to a text message transmission service and send a text message from our Raspberry Pi to our phone. We will use this information, and what we've learned so far about publishing sensory information, to create an enhancement to our security dashboard in Chapter 18, Building a Home Security Dashboard.
Twilio is a service that gives software developers the ability to create and receive text and phone calls programmatically through the use of its web service APIs. Let's start by setting up a Twilio account:
- In a web browser, navigate to www.twilio.com
- Click on the red sign up at the top-right corner of the page
- Enter the appropriate personal information and a password, and then select
SMS
,Arrival Alerts
, andPython
for the fields below the password:
- Provide a phone number to receive an authorization code via SMS, as follows:
- Enter the authorization code you receive, as shown here:
- The next...