MomBot was ideated when I got to work one morning soaked by the rain. I remembered the good days when my Mom would remind me to bring am umbrella.
- Set your configurations in configs.py
- Open a python interpreter and type:
> from sms import SMTPServer
> server = SMTPServer()
> server.sendText("parth", "Sup dude?")
MomBot's server API is dead simple, making it easy to build a variety of sms based apps. Here are some of my scripts:
- Weather: Sends me a text every morning with a description of the current weather conditions and temperature in SOMA. She will also tell me whether I should bring an umbrella.
@todo Store the mean from the past N days and only notify me of the weather change if it is more than M stdevs away from mean.
TODO: I should also check for rain at any point of the work day, not just in the morning.
-
GameDay: Perhaps the most useful. The quality of my 2 hour bart commute is greatly affected by how crowded it is. This module lets MomBot only send me a notification at 5:00pm with a name and time for every Raiders, A's, and Warriors game that will be happening that evening.
-
Inspiration: Sends me a new inpsirational quote of the day every morning right before I wake up. :D
The last 2 were simpler and added for a friend.
-
Epipen: For people with anaphylactic allergies, even the smallest amount of contact, even through cross contamination at restuarents can trigger a life-threatening anaphylaxis reaction. They must inject them selves with epinephrine immediately and be rushed to the hospital. This module let's MomBot reminds the user to carry their epinephrine when dinner time is approaching.
-
Rent: Pay your rent!
On the side, MomBot also has a side gig as a WikiBot . This let's a user text momBot a query prefaced by the word wiki . And wikibot will go and fetch a one-liner from the closest matching wikipedia article:
1/13/17 Update: WikiBot has been decommisioned, mostly because my Twilio free trial expired ages ago.