This Python 2 program checks a gmail account every few minutes. When an SMS from a phone matching a particular message is received, it executes a function and sends a confirmation message. As many functions (matching different messages) as the user desires can be added. You must have IMAP enabled in the gmail account used by the program. Since the password is in plain text, I use a special dedicated Gmail account for this program.

Features

  • Gmail recieves text from phone
  • Python script checks gmail
  • If a new email contains a certain phrase (ex. "please turn on the light") a function (ex. turn_on_light) is run.
  • A confirmation will be sent to the phone (ex. "OK, turned on the light")
  • Be sure to add the email to the SENDER and RECIPIENT variables, and the phone number to the PHONE variable.

Project Activity

See All Activity >

Follow python-sms-responder

python-sms-responder Web Site

Other Useful Business Software
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

Build gen AI apps with an all-in-one modern database: MongoDB Atlas

MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of python-sms-responder!

Additional Project Details

Registered

2015-02-28