- Install the Twilio python libraries: sudo pip install twilio
- Set up a feature branch for Twilio: git checkout -b twilio-plugin
- Set up tests and code to load credentials from twilio.secret file
- From the secret file load the account_sid and auth_token
- Write the update_state() method to send an SMS with Twilio
- Decided not to unittest the SMS sending as this is just simple interface code with no logic
- Used the python code documented at: https://www.twilio.com/user/account/developer-tools/api-explorer/message-create
- With a bit of Blu Tack, and some dominoes the system worked: http://youtu.be/Vj7IvwIN0r4
Monday, 5 May 2014
Twilio Interface for the Rube Goldberg Machine
Here's how I built the Twilio interface to the Rube Goldberg machine...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment