Skip to content

Instantly share code, notes, and snippets.

@dmpayton
Created April 21, 2014 22:32
Show Gist options
  • Save dmpayton/11158831 to your computer and use it in GitHub Desktop.
Save dmpayton/11158831 to your computer and use it in GitHub Desktop.
Food Reminder
#!/usr/bin/env python
"""
Sends an SMS reminder to eat food at 10a, 1p, 4p, 7p, and 10p.
cron: 0 10,13,16,19,22 * * * /path/to/food_reminder.py
"""
from twilio.rest import TwilioRestClient
account = "ACXXXXXXXXXXXXXXXXX"
token = "YYYYYYYYYYYYYYYYYY"
to_number = "+12316851234" # your cell number
from_number = "+15555555555" # your twilio number
client = TwilioRestClient(account, token)
message = client.messages.create(
to=to_number,
from_=from_number,
body="EAT FOOD!"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment