Python Twilio SMS client
The Python Twilio SMS client demonstrates how to control the Hamilton Microlab Prep via SMS using the Twilio API. This example allows users to start protocols, check status, and receive run reports directly through text messages.
This sample client is for demonstration purposes only and not intended for production.
Features
-
Start, abort, and resume protocols via SMS commands
-
Real-time status updates sent to your phone
-
Automatic run report delivery via MMS
-
Interactive volume and sample count configuration
-
WebSocket-based event monitoring
-
Runtime error handling with SMS-based recovery options
Prerequisites
-
Prep 3.3.0 or later
-
Python v3.12^
-
Twilio account with SMS capabilities
-
Twilio phone number configured for messaging
Download
The source code is a downloadable ZIP package. Further installation steps and environment setup instructions are provided in the source code's README.md file. and package.json.
SMS commands
Once configured, the following SMS commands are supported:
-
run: Start a protocol run
-
abort: Abort the current protocol
-
resume: Resume a paused protocol
-
status: Get current status
-
disco: Trigger a fun lighting effect
Additional resources
For more information about the sample client, download the project's ZIP package and refer to the README.md file in the project's folder.
-
Twilio SMS documentation: https://www.twilio.com/docs/sms